TA的每日心情 | 无聊 2021-9-17 23:16 |
---|
签到天数: 341 天 [LV.8]以坛为家I
|
发表于 2017-10-15 18:26:09
|
显示全部楼层
本帖最后由 wantyu 于 2017-10-15 18:40 编辑 " N8 E: k9 r, d- n' V
: W2 t2 f" W( Y( ^3 g* u: z
goldendict源代码中config.hh中有这么一段定义:
$ V2 f% k2 W( d$ z1 {- struct DictionaryRef
, _) W M* _% V: a; C8 [) \, t9 d; m - { u; ^, E2 D, x2 A, k. r+ m
- QString id; // Dictionrary id, which is usually an md5 hash; r- U7 [/ B$ i x) Z
- QString name; // Dictionary name, used to recover when its id changes+ w3 q% C8 D. h8 n, L8 S
9 F- r+ A/ F* J' k- DictionaryRef()- P! r& W0 Z4 x$ G
- {}1 \! C' R+ }3 T1 m; V3 x0 A6 G
- & Z L( q! H3 Q( ?" u
- DictionaryRef( QString const & id_, QString const & name_ ):
, a) y& P$ R5 O4 ]( ~0 \; A - id( id_ ), name( name_ ) {}
& K; t" P/ J8 J/ \& X" c$ s# _
1 A$ R0 U% C$ R# `3 b5 q- bool operator == ( DictionaryRef const & other ) const& c. P' l4 o$ w7 F- `" R
- { return id == other.id && name == other.name; }
) Z7 [3 s" C, {3 b9 q - };
复制代码 ; ~, `6 d3 K4 H$ e0 O/ e
; a* O1 `- T% Y* [8 Y9 b9 j具体是那个文件或者字符串的md5值就不得而知了 |
|