Home
last modified time | relevance | path

Searched refs:codePoints (Results 1 – 25 of 53) sorted by relevance

123

/external/smali/util/src/main/java/org/jf/util/
DClassFileNameHandler.java185 int[] codePoints; in shortenPathComponent() local
188 codePoints = new int[intBuffer.limit()]; in shortenPathComponent()
189 intBuffer.get(codePoints); in shortenPathComponent()
194 int midPoint = codePoints.length/2; in shortenPathComponent()
198 int bytesRemoved = utf8Length(codePoints[midPoint]); in shortenPathComponent()
202 if (((codePoints.length % 2) == 0) && bytesRemoved < bytesToRemove) { in shortenPathComponent()
203 bytesRemoved += utf8Length(codePoints[secondStart]); in shortenPathComponent()
208 (firstEnd > 0 || secondStart < codePoints.length)) { in shortenPathComponent()
211 bytesRemoved += utf8Length(codePoints[firstEnd]); in shortenPathComponent()
214 if (bytesRemoved < bytesToRemove && secondStart < codePoints.length) { in shortenPathComponent()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DUtf8Test.java189 private void assertEncoded(String hex, int... codePoints) throws Exception { in assertEncoded() argument
190 assertCodePointEncoded(hex, codePoints); in assertEncoded()
191 assertCodePointDecoded(hex, codePoints); in assertEncoded()
192 assertStringEncoded(hex, new String(codePoints, 0, codePoints.length)); in assertEncoded()
195 private void assertCodePointEncoded(String hex, int... codePoints) throws Exception { in assertCodePointEncoded() argument
197 for (int codePoint : codePoints) { in assertCodePointEncoded()
203 private void assertCodePointDecoded(String hex, int... codePoints) throws Exception { in assertCodePointDecoded() argument
205 for (int codePoint : codePoints) { in assertCodePointDecoded()
/external/cldr/tools/java/org/unicode/cldr/util/
DEmojiConstants.java61 for (int cp : CharSequences.codePoints(string)) { in getEmojiFromSubdivisionCodes()
84 for (int codePoint : CharSequences.codePoints(code)) { in getTagSpec()
101 public static CharSequence fromCodePoints(int... codePoints) { in fromCodePoints() argument
102 return EmojiConstants.appendCodePoints(new StringBuilder(), codePoints).toString(); in fromCodePoints()
105 public static StringBuilder appendCodePoints(StringBuilder b, int... codePoints) { in appendCodePoints() argument
106 for (int i = 0; i < codePoints.length; ++i) { in appendCodePoints()
107 b.appendCodePoint(codePoints[i]); in appendCodePoints()
DStringRange.java166 int[] array = CharSequences.codePoints(s); in Ranges()
252 int[] startCps = CharSequences.codePoints(start); in expand()
253 int[] endCps = CharSequences.codePoints(end); in expand()
DWith.java179 return CharSequences.codePoints(source); in codePointArray()
190 public static With<CharSequence> codePoints(CharSequence... charSequences) { in codePoints() method in With
DXListFormatter.java77 for (int sourceInt : CharSequences.codePoints(items)) { // TODO add utility in CharSequences in formatCodePoints()
/external/icu/icu4c/source/tools/toolutil/
Ducm.cpp45 printMapping(UCMapping *m, UChar32 *codePoints, uint8_t *bytes, FILE *f) { in printMapping() argument
49 fprintf(f, "<U%04lX>", (long)codePoints[j]); in printMapping()
786 UChar32 codePoints[UCNV_EXT_MAX_UCHARS], in ucm_parseMappingLine()
824 codePoints[uLen++]=cp; in ucm_parseMappingLine()
832 m->u=codePoints[0]; in ucm_parseMappingLine()
835 u_strFromUTF32(NULL, 0, &u16Length, codePoints, uLen, &errorCode); in ucm_parseMappingLine()
898 uprv_free(table->codePoints); in ucm_closeTable()
919 UChar32 codePoints[UCNV_EXT_MAX_UCHARS], in ucm_addMapping()
949 table->codePoints=(UChar32 *)uprv_malloc(table->codePointsCapacity*4); in ucm_addMapping()
950 if(table->codePoints==NULL) { in ucm_addMapping()
[all …]
Ducm.h74 UChar32 *codePoints; member
114 (((m)->uLen==1) ? &(m)->u : (t)->codePoints+(m)->u)
135 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
142 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
255 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
262 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
/external/icu/icu4c/source/samples/props/
Dprops.cpp59 codePoints[]={ in main() local
64 for(i=0; i<sizeof(codePoints)/sizeof(codePoints[0]); ++i) { in main()
65 printProps(codePoints[i]); in main()
/external/icu/icu4c/source/test/cintltst/
Dutf8tst.c602 static const UChar32 codePoints[]={ in TestNextPrevCharUnsafe() local
618 expected = codePoints[i]; in TestNextPrevCharUnsafe()
632 expected = codePoints[i]; in TestNextPrevCharUnsafe()
639 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe()
641 expected = codePoints[i]; in TestNextPrevCharUnsafe()
648 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe()
650 expected = codePoints[i]; in TestNextPrevCharUnsafe()
1175 static const UChar32 codePoints[]={ in TestAppend() local
1205 for(i=0; i<UPRV_LENGTHOF(codePoints); ++i) { in TestAppend()
1206 c=codePoints[i]; in TestAppend()
[all …]
Dutf16tst.c806 static const UChar32 codePoints[]={ in TestAppend() local
836 for(i=0; i<UPRV_LENGTHOF(codePoints); ++i) { in TestAppend()
837 c=codePoints[i]; in TestAppend()
850 for(i=0; i<UPRV_LENGTHOF(codePoints); ++i) { in TestAppend()
851 c=codePoints[i]; in TestAppend()
/external/guava/guava-tests/test/com/google/common/base/
DUtf8Test.java64 Integer[] codePoints = utf8Lengths.keySet().toArray(new Integer[]{}); in testEncodedLength_validStrings2() local
71 Integer randomCodePoint = codePoints[rnd.nextInt(codePoints.length)]; in testEncodedLength_validStrings2()
/external/icu/icu4c/source/i18n/
Dnumparse_affixes.cpp140 : codePoints(std::move(src.codePoints)), in CodePointMatcherWarehouse()
147 codePoints = std::move(src.codePoints); in operator =()
156 return codePoints[codePointCount++] = {cp}; in nextCodePointMatcher()
Dnumber_padding.cpp43 Padder Padder::codePoints(UChar32 cp, int32_t targetWidth, UNumberFormatPadPosition position) { in codePoints() function in Padder
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DStringRange.java166 int[] array = CharSequences.codePoints(s); in Ranges()
246 int[] startCps = CharSequences.codePoints(start); in expand()
247 int[] endCps = CharSequences.codePoints(end); in expand()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DStringRange.java173 int[] array = CharSequences.codePoints(s); in Ranges()
253 int[] startCps = CharSequences.codePoints(start); in expand()
254 int[] endCps = CharSequences.codePoints(end); in expand()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DUrlComponentEncodingTester.java184 public UrlComponentEncodingTester override(Encoding encoding, int... codePoints) { in override() argument
185 for (int codePoint : codePoints) { in override()
202 public UrlComponentEncodingTester skipForUri(int... codePoints) { in skipForUri() argument
203 uriEscapedCodePoints.append(new String(codePoints, 0, codePoints.length)); in skipForUri()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DCanonicalCharacterData.java97 int codePoints = UTF16.countCodePoint(equiv); in dumpEquivalents() local
99 for (int c = 0; c < codePoints; c += 1) { in dumpEquivalents()
/external/icu/icu4c/source/tools/makeconv/
Dgencnvex.c935 UChar32 *codePoints; in generateFromUTrie() local
952 codePoints=UCM_GET_CODE_POINTS(table, m); in generateFromUTrie()
953 next=codePoints[0]; in generateFromUTrie()
961 codePoints=UCM_GET_CODE_POINTS(table, m); in generateFromUTrie()
962 next=codePoints[0]; in generateFromUTrie()
972 codePoints=UCM_GET_CODE_POINTS(table, m); in generateFromUTrie()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java1370 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1385 … NumberFormatter.with().padding(Padder.codePoints(0x101E4, 8, PadPosition.AFTER_PREFIX)), in padding()
1400 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)) in padding()
1416 … NumberFormatter.with().padding(Padder.codePoints('*', 10, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
1432 … NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_PREFIX)), in padding()
1440 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1448 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_SUFFIX)) in padding()
1457 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_SUFFIX)) in padding()
1466 … NumberFormatter.with().padding(Padder.codePoints('0', 12, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java1367 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1382 … NumberFormatter.with().padding(Padder.codePoints(0x101E4, 8, PadPosition.AFTER_PREFIX)), in padding()
1397 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)) in padding()
1413 … NumberFormatter.with().padding(Padder.codePoints('*', 10, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
1429 … NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_PREFIX)), in padding()
1437 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_PREFIX)), in padding()
1445 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.BEFORE_SUFFIX)) in padding()
1454 NumberFormatter.with().padding(Padder.codePoints('*', 8, PadPosition.AFTER_SUFFIX)) in padding()
1463 … NumberFormatter.with().padding(Padder.codePoints('0', 12, PadPosition.AFTER_PREFIX)).unit(GBP) in padding()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/
DLambda.java.txt20 return persons.stream().map(p -> p.codePoints());
/external/icu/icu4c/source/common/
Ducnv_err.cpp121 const char* codePoints, in UCNV_TO_U_CALLBACK_STOP() argument
127 (void)context; (void)toUArgs; (void)codePoints; (void)length; (void)reason; (void)err; in UCNV_TO_U_CALLBACK_STOP()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp1370 Padder::codePoints( in padding()
1387 Padder::codePoints( in padding()
1404 Padder::codePoints( in padding()
1422 Padder::codePoints( in padding()
1441 Padder::codePoints( in padding()
1451 Padder::codePoints( in padding()
1461 Padder::codePoints( in padding()
1471 Padder::codePoints( in padding()
1481 Padder::codePoints( in padding()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPadder.java66 public static Padder codePoints(int cp, int targetWidth, PadPosition position) { in codePoints() method in Padder

123