TA的每日心情 | 无聊 2021-9-17 23:16 |
---|
签到天数: 341 天 [LV.8]以坛为家I
|
发表于 2017-10-15 18:26:09
|
显示全部楼层
本帖最后由 wantyu 于 2017-10-15 18:40 编辑
8 R, M- O4 A# q0 @+ S5 b; i) r7 U9 G/ M+ [$ a: Z; j
goldendict源代码中config.hh中有这么一段定义:
# H' n( n/ ^& G1 Q! J0 l' Y- struct DictionaryRef# ?# Z+ ~# W$ x0 n- _$ c2 }
- {
3 V+ O, m5 n% X/ x- h - QString id; // Dictionrary id, which is usually an md5 hash: z/ B4 R2 B9 u
- QString name; // Dictionary name, used to recover when its id changes2 R/ U) a& b5 j: j# P1 ^1 P0 ^ x
3 o1 `/ A6 f) a- DictionaryRef()
$ {6 G1 `5 h( q; _; j! O* r: a - {}* x$ y0 D3 t# k' k7 r- c
$ _5 J, O' W; z- DictionaryRef( QString const & id_, QString const & name_ ):- L% g4 a- j) L
- id( id_ ), name( name_ ) {}
8 N0 }# v: b3 d( I# [ - 2 T4 _/ o9 m3 H1 k; U) N5 I
- bool operator == ( DictionaryRef const & other ) const+ B3 `) M$ _0 @/ u1 v7 I% Y
- { return id == other.id && name == other.name; }& q4 _7 @7 T0 k$ Y- s! J6 e8 G
- };
复制代码 ' s! c8 L8 t0 {0 B% P" r( K
' @, Y( \, o2 v
具体是那个文件或者字符串的md5值就不得而知了 |
|