Home
last modified time | relevance | path

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

/libcore/libart/src/main/java/java/lang/
DStringFactory.java94 int utfCount = 1; in newStringFromBytes() local
95 if ((b0 & 0xf0) == 0xe0) utfCount = 2; in newStringFromBytes()
96 else if ((b0 & 0xf8) == 0xf0) utfCount = 3; in newStringFromBytes()
97 else if ((b0 & 0xfc) == 0xf8) utfCount = 4; in newStringFromBytes()
98 else if ((b0 & 0xfe) == 0xfc) utfCount = 5; in newStringFromBytes()
107 if (idx + utfCount > last) { in newStringFromBytes()
113 int val = b0 & (0x1f >> (utfCount - 1)); in newStringFromBytes()
114 for (int i = 0; i < utfCount; ++i) { in newStringFromBytes()
141 if ((utfCount != 2) && (val >= 0xD800) && (val <= 0xDFFF)) { in newStringFromBytes()
/libcore/dex/src/main/java/com/android/dex/
DMutf8.java110 int utfCount = (int) countBytes(s, true); in encode() local
111 byte[] result = new byte[utfCount]; in encode()