Lines Matching full:prev
46 * Additionally, "prev" is moved from anywhere in the Unihan and Hangul
50 * "prev" is reset for C0 controls but not for space.
53 /* initial value for "prev": middle of the ASCII range */
236 /* compute new prev */
259 * fromUnicodeStatus encoder's prev (0 will be interpreted as BOCU1_ASCII_PREV)
261 * toUnicodeStatus decoder's prev (0 will be interpreted as BOCU1_ASCII_PREV)
398 int32_t prev, c, diff;
414 prev=(int32_t)cnv->fromUnicodeStatus;
415 if(prev==0) {
416 prev=BOCU1_ASCII_PREV;
438 prev=BOCU1_ASCII_PREV;
445 diff=c-prev;
447 prev=BOCU1_SIMPLE_PREV(c);
474 prev=BOCU1_ASCII_PREV;
503 * are encoded with the difference c-prev
505 * a new prev is computed from c,
510 diff=c-prev;
511 prev=BOCU1_PREV(c);
628 cnv->fromUnicodeStatus=(uint32_t)prev;
651 int32_t prev, c, diff;
662 prev=(int32_t)cnv->fromUnicodeStatus;
663 if(prev==0) {
664 prev=BOCU1_ASCII_PREV;
682 prev=BOCU1_ASCII_PREV;
686 diff=c-prev;
688 prev=BOCU1_SIMPLE_PREV(c);
712 prev=BOCU1_ASCII_PREV;
737 * are encoded with the difference c-prev
739 * a new prev is computed from c,
744 diff=c-prev;
745 prev=BOCU1_PREV(c);
849 cnv->fromUnicodeStatus=(uint32_t)prev;
947 int32_t prev, count, diff, c;
963 prev=(int32_t)cnv->toUnicodeStatus;
964 if(prev==0) {
965 prev=BOCU1_ASCII_PREV;
993 c=prev+(c-BOCU1_MIDDLE);
997 prev=BOCU1_SIMPLE_PREV(c);
1003 prev=BOCU1_ASCII_PREV;
1027 c=prev+(c-BOCU1_MIDDLE);
1031 prev=BOCU1_SIMPLE_PREV(c);
1038 * Reset prev for C0 control codes but not for space.
1041 prev=BOCU1_ASCII_PREV;
1058 if(c<0 || (uint32_t)(c=prev+diff+c)>0x10ffff) {
1067 prev=BOCU1_ASCII_PREV;
1101 c=prev+diff;
1111 /* calculate the next prev and output c */
1112 prev=BOCU1_PREV(c);
1142 cnv->toUnicodeStatus=(uint32_t)prev;
1169 int32_t prev, count, diff, c;
1184 prev=(int32_t)cnv->toUnicodeStatus;
1185 if(prev==0) {
1186 prev=BOCU1_ASCII_PREV;
1210 c=prev+(c-BOCU1_MIDDLE);
1213 prev=BOCU1_SIMPLE_PREV(c);
1219 prev=BOCU1_ASCII_PREV;
1240 c=prev+(c-BOCU1_MIDDLE);
1243 prev=BOCU1_SIMPLE_PREV(c);
1249 * Reset prev for C0 control codes but not for space.
1252 prev=BOCU1_ASCII_PREV;
1266 if(c<0 || (uint32_t)(c=prev+diff+c)>0x10ffff) {
1275 prev=BOCU1_ASCII_PREV;
1307 c=prev+diff;
1317 /* calculate the next prev and output c */
1318 prev=BOCU1_PREV(c);
1343 cnv->toUnicodeStatus=(uint32_t)prev;