Home
last modified time | relevance | path

Searched refs:bytesToWrite (Results 1 – 4 of 4) sorted by relevance

/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3convertutf.c213 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local
247 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()
248 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()
249 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()
250 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()
251 } else { bytesToWrite = 3; in ConvertUTF16toUTF8()
255 target += bytesToWrite; in ConvertUTF16toUTF8()
258 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()
260 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF16toUTF8()
264 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
[all …]
/external/clang/lib/Basic/
DConvertUTF.c228 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local
262 if (ch < (UTF32)0x80) { bytesToWrite = 1; in ConvertUTF16toUTF8()
263 } else if (ch < (UTF32)0x800) { bytesToWrite = 2; in ConvertUTF16toUTF8()
264 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3; in ConvertUTF16toUTF8()
265 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4; in ConvertUTF16toUTF8()
266 } else { bytesToWrite = 3; in ConvertUTF16toUTF8()
270 target += bytesToWrite; in ConvertUTF16toUTF8()
273 target -= bytesToWrite; result = targetExhausted; break; in ConvertUTF16toUTF8()
275 switch (bytesToWrite) { /* note: everything falls through. */ in ConvertUTF16toUTF8()
279 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
[all …]
/external/webkit/Source/JavaScriptCore/wtf/unicode/
DUTF8.cpp137 unsigned short bytesToWrite = 0; in convertUTF16ToUTF8() local
171 bytesToWrite = 1; in convertUTF16ToUTF8()
173 bytesToWrite = 2; in convertUTF16ToUTF8()
175 bytesToWrite = 3; in convertUTF16ToUTF8()
177 bytesToWrite = 4; in convertUTF16ToUTF8()
179 bytesToWrite = 3; in convertUTF16ToUTF8()
183 target += bytesToWrite; in convertUTF16ToUTF8()
186 target -= bytesToWrite; in convertUTF16ToUTF8()
190 switch (bytesToWrite) { // note: everything falls through. in convertUTF16ToUTF8()
194 case 1: *--target = (char)(ch | firstByteMark[bytesToWrite]); in convertUTF16ToUTF8()
[all …]
/external/clang/lib/Lex/
DLiteralSupport.cpp377 unsigned short bytesToWrite = 0; in EncodeUCNEscape() local
379 bytesToWrite = 1; in EncodeUCNEscape()
381 bytesToWrite = 2; in EncodeUCNEscape()
383 bytesToWrite = 3; in EncodeUCNEscape()
385 bytesToWrite = 4; in EncodeUCNEscape()
396 ResultBuf += bytesToWrite; in EncodeUCNEscape()
397 switch (bytesToWrite) { // note: everything falls through. in EncodeUCNEscape()
401 case 1: *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape()
404 ResultBuf += bytesToWrite; in EncodeUCNEscape()