Home
last modified time | relevance | path

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

/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/icu/icu4c/source/samples/props/
Dprops.cpp53 codePoints[]={ in main() local
58 for(i=0; i<sizeof(codePoints)/sizeof(codePoints[0]); ++i) { in main()
59 printProps(codePoints[i]); in main()
/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()
DBufferedSourceTest.java704 @Test public void codePoints() throws IOException { in codePoints() method in BufferedSourceTest
/external/icu/icu4c/source/tools/toolutil/
Ducm.c43 printMapping(UCMapping *m, UChar32 *codePoints, uint8_t *bytes, FILE *f) { in printMapping() argument
47 fprintf(f, "<U%04lX>", (long)codePoints[j]); in printMapping()
781 UChar32 codePoints[UCNV_EXT_MAX_UCHARS], in ucm_parseMappingLine()
819 codePoints[uLen++]=cp; in ucm_parseMappingLine()
827 m->u=codePoints[0]; in ucm_parseMappingLine()
830 u_strFromUTF32(NULL, 0, &u16Length, codePoints, uLen, &errorCode); in ucm_parseMappingLine()
893 uprv_free(table->codePoints); in ucm_closeTable()
914 UChar32 codePoints[UCNV_EXT_MAX_UCHARS], in ucm_addMapping()
944 table->codePoints=(UChar32 *)uprv_malloc(table->codePointsCapacity*4); in ucm_addMapping()
945 if(table->codePoints==NULL) { in ucm_addMapping()
[all …]
Ducm.h72 UChar32 *codePoints; member
112 (((m)->uLen==1) ? &(m)->u : (t)->codePoints+(m)->u)
133 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
140 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
253 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
260 UChar32 codePoints[UCNV_EXT_MAX_UCHARS],
/external/icu/icu4c/source/test/cintltst/
Dutf8tst.c515 static const UChar32 codePoints[]={ in TestNextPrevCharUnsafe() local
530 if(c != codePoints[i]){ in TestNextPrevCharUnsafe()
532 offset, codePoints[i], c); in TestNextPrevCharUnsafe()
537 if(c != codePoints[i]){ in TestNextPrevCharUnsafe()
539 offset, codePoints[i], c); in TestNextPrevCharUnsafe()
543 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe()
545 if(c != codePoints[i]){ in TestNextPrevCharUnsafe()
547 offset, codePoints[i], c); in TestNextPrevCharUnsafe()
550 for(i=UPRV_LENGTHOF(codePoints)-1, offset=sizeof(input); offset > 0; --i){ in TestNextPrevCharUnsafe()
552 if(c != codePoints[i]){ in TestNextPrevCharUnsafe()
[all …]
Dutf16tst.c713 static const UChar32 codePoints[]={ in TestAppend() local
743 for(i=0; i<UPRV_LENGTHOF(codePoints); ++i) { in TestAppend()
744 c=codePoints[i]; in TestAppend()
757 for(i=0; i<UPRV_LENGTHOF(codePoints); ++i) { in TestAppend()
758 c=codePoints[i]; in TestAppend()
/external/guava/guava-tests/test/com/google/common/base/
DUtf8Test.java65 Integer[] codePoints = utf8Lengths.keySet().toArray(new Integer[]{}); in testEncodedLength_validStrings2() local
72 Integer randomCodePoint = codePoints[rnd.nextInt(codePoints.length)]; in testEncodedLength_validStrings2()
/external/icu/icu4c/source/tools/makeconv/
Dgencnvex.c933 UChar32 *codePoints; in generateFromUTrie() local
950 codePoints=UCM_GET_CODE_POINTS(table, m); in generateFromUTrie()
951 next=codePoints[0]; in generateFromUTrie()
959 codePoints=UCM_GET_CODE_POINTS(table, m); in generateFromUTrie()
960 next=codePoints[0]; in generateFromUTrie()
970 codePoints=UCM_GET_CODE_POINTS(table, m); in generateFromUTrie()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DUrlComponentEncodingTester.java174 public UrlComponentEncodingTester override(Encoding encoding, int... codePoints) { in override() argument
175 for (int codePoint : codePoints) { in override()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/
DCharSequences.java284 public static int[] codePoints(CharSequence s) { in codePoints() method in CharSequences
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUTF16.java2288 public static String newString(int[] codePoints, int offset, int count) { in newString() argument
2295 int cp = codePoints[r]; in newString()
2311 int newlen = (int) (Math.ceil((double) codePoints.length * (w + 2) in newString()
DTimeZoneFormat.java2721 String[] codePoints = new String[len];
2726 codePoints[i] = str.substring(offset, offset + codeLen);
2729 return codePoints;
/external/icu/icu4c/source/common/
Ducnv_err.c125 const char* codePoints, in UCNV_TO_U_CALLBACK_STOP() argument
Ducnvmbcs.cpp376 UConverterEnumToUCallback(const void *context, uint32_t value, UChar32 codePoints[32]);
636 UChar32 codePoints[32]; in enumToU() local
651 codePoints[0]=U_SENTINEL; in enumToU()
670 codePoints[b&0x1f]=U_SENTINEL; in enumToU()
712 codePoints[b&0x1f]=c; in enumToU()
717 if(!callback(context, value|(uint32_t)(b-0x20), codePoints)) { in enumToU()
1400 writeStage3Roundtrip(const void *context, uint32_t value, UChar32 codePoints[32]) { in writeStage3Roundtrip()
1442 c=codePoints[i]; in writeStage3Roundtrip()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetMBCS.java512 … static boolean writeStage3Roundtrip(UConverterMBCSTable mbcsTable, long value, int codePoints[]) { in writeStage3Roundtrip() argument
558 c=codePoints[i]; in writeStage3Roundtrip()
707 int[] codePoints = new int[32]; in enumToU() local
722 codePoints[0] = UConverterConstants.U_SENTINEL; in enumToU()
736 codePoints[b&0x1f] = UConverterConstants.U_SENTINEL; in enumToU()
778 codePoints[b&0x1f] = c; in enumToU()
783 if(!writeStage3Roundtrip(mbcsTable, value|(b-0x20), codePoints)) { in enumToU()
/external/chromium-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/lib/tokenization/
Dtokenizer.js418 Tokenizer.prototype._emitSeveralCodePoints = function (codePoints) { argument
419 for (var i = 0; i < codePoints.length; i++)
420 this._emitCodePoint(codePoints[i]);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
DUTF16Test.java1598 final int[] codePoints = { in TestNewString() local
1636 String str = UTF16.newString(codePoints, s, c); in TestNewString()
/external/chromium-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/
Dparse5.js1867 Tokenizer.prototype._emitSeveralCodePoints = function (codePoints) {
1868 for (var i = 0; i < codePoints.length; i++)
1869 this._emitCodePoint(codePoints[i]);
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/robolectric/lib/main/
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...