Changeset 13660 for trunk/indexers/mg
- Timestamp:
- 2007-01-17T12:13:03+13:00 (17 years ago)
- Location:
- trunk/indexers/mg/src/text
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/indexers/mg/src/text/hash.h
r3745 r13660 34 34 register unsigned long hval; \ 35 35 if (len>25) len = 25; \ 36 for (hval=0; len; len--) \36 for (hval=0; len; --len) \ 37 37 hval = (hval << 5) - hval + *p++; \ 38 38 step = hval % (tablesize - 2) + 1; \ -
trunk/indexers/mg/src/text/words.h
r8694 r13660 84 84 /* It determines whether a given place in a UTF-8 encoded 85 85 Unicode string is a unicode space. */ 86 86 87 87 u_char *skipspace(u_char *here, u_char *end); 88 /* Return a the UTF-8 encoded Unicode string with 89 begining unicode spaces skipped. */ 88 /* Return a the UTF-8 encoded Unicode string with beginning 89 unicode spaces skipped. */ 90 90 91 91 92 /* ========================================================================= … … 115 116 ++numeric <= maxnumeric))) { \ 116 117 while (charlength-- > 0) { \ 117 *wptr++ = *(s_in)++; length++; \118 *wptr++ = *(s_in)++; ++length; \ 118 119 } \ 119 120 charlength = parse_utf8_char((s_in),(end),&c); \ … … 135 136 break; \ 136 137 *wptr++ = c; \ 137 length++; \138 ++length; \ 138 139 c = *++(s_in); \ 139 140 } \ … … 162 163 !is_unicode_letdig(c)) { \ 163 164 while (charlength-- > 0) { \ 164 *wptr++ = *(s_in)++; length++; \165 *wptr++ = *(s_in)++; ++length; \ 165 166 } \ 166 167 charlength = parse_utf8_char((s_in),(end),&c); \ … … 179 180 { \ 180 181 *wptr++ = c; \ 181 length++; \182 ++length; \ 182 183 c = *++(s_in); \ 183 184 } \ … … 213 214 ++numeric <= maxnumeric))) { \ 214 215 while (charlength-- > 0) { \ 215 *wptr++ = *(s_in)++; length++; \216 *wptr++ = *(s_in)++; ++length; \ 216 217 } \ 217 218 charlength = parse_utf8_char((s_in),(end),&c); \ … … 233 234 break; \ 234 235 *wptr++ = c; \ 235 length++; \236 ++length; \ 236 237 c = *++(s_in); \ 237 238 } \ … … 346 347 { \ 347 348 *wptr++ = c; \ 348 length++; \349 ++length; \ 349 350 c = *++(s_in); \ 350 351 } \
Note:
See TracChangeset
for help on using the changeset viewer.