Lines Matching refs:chars
986 // comparisons are consistent between Utf8 and Java chars.
990 assert(((c1|c2) & 0xC0) == 0x80); // c1 & c2 are extension chars
1040 // chars are packed in cp_Utf8_big_chars
1044 bytes& chars = allsuffixes[i];
1048 chars.malloc(size3);
1055 chars.set(charbuf.grow(size3+1), size3);
1058 byte* chp = chars.ptr;
1065 chars.realloc(chp - chars.ptr);
1067 tmallocs.add(chars.ptr); // free it later
1069 int shrink = (int)(chars.limit() - chp);
1070 chars.len -= shrink;
1073 assert(chars.limit() == charbuf.limit()-1);
1074 assert(strlen((char*)chars.ptr) == chars.len);
1093 bytes& chars = allsuffixes[i];
1096 assert(chars.ptr == null);
1097 chars.len = suffix; // just a momentary hack
1099 assert(chars.ptr != null);
1111 bytes& chars = allsuffixes[i];
1112 if (chars.ptr != null) continue; // already input
1113 int suffix = (int)chars.len; // pick up the hack
1116 chars.malloc(size3);
1118 byte* chp = chars.ptr;
1127 chars.realloc(chp - chars.ptr);
1129 tmallocs.add(chars.ptr); // free it later
1133 cp_Utf8_big_chars.readData(0); // zero chars
1140 int prevlen = 0; // previous string length (in chars)
1145 bytes& chars = allsuffixes[i];
1148 int suffix = (int)chars.len;
1158 fillp = chars.writeTo(fillp);