Home
last modified time | relevance | path

Searched refs:numAdds (Results 1 – 2 of 2) sorted by relevance

/external/lzma/CPP/Common/
DUTFConvert.cpp15 unsigned numAdds; in CheckUTF8() local
24 for (numAdds = 1; numAdds < 5; numAdds++) in CheckUTF8()
25 if (c < kUtf8Limits[numAdds]) in CheckUTF8()
27 UInt32 value = (c - kUtf8Limits[numAdds - 1]); in CheckUTF8()
37 while (--numAdds); in CheckUTF8()
51 unsigned numAdds; in Utf8_To_Utf16() local
68 for (numAdds = 1; numAdds < 5; numAdds++) in Utf8_To_Utf16()
69 if (c < kUtf8Limits[numAdds]) in Utf8_To_Utf16()
71 UInt32 value = (c - kUtf8Limits[numAdds - 1]); in Utf8_To_Utf16()
84 while (--numAdds); in Utf8_To_Utf16()
[all …]
/external/lzma/C/Util/7z/
D7zMain.c45 unsigned numAdds; in Utf16_To_Utf8() local
70 for (numAdds = 1; numAdds < 5; numAdds++) in Utf16_To_Utf8()
71 if (value < (((UInt32)1) << (numAdds * 5 + 6))) in Utf16_To_Utf8()
74 dest[destPos] = (char)(kUtf8Limits[numAdds - 1] + (value >> (6 * numAdds))); in Utf16_To_Utf8()
78 numAdds--; in Utf16_To_Utf8()
80 dest[destPos] = (char)(0x80 + ((value >> (6 * numAdds)) & 0x3F)); in Utf16_To_Utf8()
83 while (numAdds != 0); in Utf16_To_Utf8()