...int mode) { s->mode &= ~SCWS_MULTI_MASK; @@ -1135,6 +1148,11 @@ ch = txt[off]; if (ch mode & SCWS_USE_RULE)) + { + if (!(pflag & PFLAG_WITH_MB)) { // pure single-byte -> multibyte (2bytes) @@ -1192,6 +1210,9 @@ clen += (i - off - 1); } + + }//end lee + /* hight...
... rule_t r; unsigned char *mblen; unsigned int mode; unsigned char *txt; int len; int off; scws_res_t res0; scws_res_t res1; word_t **wmap; struct scws_zchar *zmap; } scws_st, *scws_t; struct scws_zchar { int start; int end; }; 注:xdict_t 和 rule_t 分别是词典和规则...