Lines Matching refs:outputLen
56 int outputLen; in utf8ToUtf16() local
65 outputLen = 0; in utf8ToUtf16()
69 if ( outputLen >= outputMaxLen ) { in utf8ToUtf16()
82 output[outputLen++] = code; in utf8ToUtf16()
84 return outputLen; in utf8ToUtf16()
95 int outputLen; in utf16ToUtf8m() local
102 outputLen = 0; in utf16ToUtf8m()
108 if ( outputLen + 1 >= outputMaxLen ) { in utf16ToUtf8m()
111 output[outputLen++] = code; in utf16ToUtf8m()
113 if ( outputLen + 2 >= outputMaxLen ) { in utf16ToUtf8m()
116 output[outputLen++] = ((code>>6) & 0x1F) | 0xC0; in utf16ToUtf8m()
117 output[outputLen++] = (code & 0x3F) | 0x80; in utf16ToUtf8m()
119 if ( outputLen + 3 >= outputMaxLen ) { in utf16ToUtf8m()
122 output[outputLen++] = ((code>>12) & 0x0F) | 0xE0; in utf16ToUtf8m()
123 output[outputLen++] = ((code>>6) & 0x3F) | 0x80; in utf16ToUtf8m()
124 output[outputLen++] = (code & 0x3F) | 0x80; in utf16ToUtf8m()
127 output[outputLen] = 0; in utf16ToUtf8m()
128 return outputLen; in utf16ToUtf8m()
408 int outputLen; in bytesToPrintable() local
416 outputLen = 0; in bytesToPrintable()
422 if ( outputLen + 1 >= outputMaxLen ) { in bytesToPrintable()
425 output[outputLen++] = (char)byte; in bytesToPrintable()
427 if ( outputLen + 4 >= outputMaxLen ) { in bytesToPrintable()
430 (void)sprintf(output+outputLen,"\\x%02x",byte); in bytesToPrintable()
431 outputLen += 4; in bytesToPrintable()
434 output[outputLen] = 0; in bytesToPrintable()
435 return outputLen; in bytesToPrintable()