Searched refs:bytesToWrite (Results 1 – 4 of 4) sorted by relevance
213 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local247 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 …]
228 unsigned short bytesToWrite = 0; in ConvertUTF16toUTF8() local262 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 …]
137 unsigned short bytesToWrite = 0; in convertUTF16ToUTF8() local171 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 …]
377 unsigned short bytesToWrite = 0; in EncodeUCNEscape() local379 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()