Home
last modified time | relevance | path

Searched refs:cLength (Results 1 – 15 of 15) sorted by relevance

/external/icu/icu4c/source/test/letest/
Dletsutil.cpp41 le_int32 cLength = uString->extract(0, uLength, NULL, 0, US_INV); in getCString() local
42 char *cString = NEW_ARRAY(char, cLength + 1); in getCString()
44 uString->extract(0, uLength, cString, cLength, US_INV); in getCString()
45 cString[cLength] = '\0'; in getCString()
68 le_int32 cLength = uString->extract(0, uLength, NULL, 0, "UTF-8"); in getUTF8String() local
69 char *cString = NEW_ARRAY(char, cLength + 1); in getUTF8String()
71 uString->extract(0, uLength, cString, cLength, "UTF-8"); in getUTF8String()
73 cString[cLength] = '\0'; in getUTF8String()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DEdits.java931 int aLength = 0, ab_bLength = 0, bc_bLength = 0, cLength = 0;
950 cLength = bcIter.newLength();
954 addReplace(pending_aLength, pending_cLength + cLength);
957 pending_cLength += cLength;
1005 int unchangedLength = aLength <= cLength ? aLength : cLength;
1008 bc_bLength = cLength -= unchangedLength;
1016 addReplace(pending_aLength + bc_bLength, pending_cLength + cLength);
1029 cLength = bc_bLength -= ab_bLength;
1037 addReplace(pending_aLength + aLength, pending_cLength + cLength);
1046 pending_cLength += cLength;
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DEdits.java904 int aLength = 0, ab_bLength = 0, bc_bLength = 0, cLength = 0;
923 cLength = bcIter.newLength();
927 addReplace(pending_aLength, pending_cLength + cLength);
930 pending_cLength += cLength;
978 int unchangedLength = aLength <= cLength ? aLength : cLength;
981 bc_bLength = cLength -= unchangedLength;
989 addReplace(pending_aLength + bc_bLength, pending_cLength + cLength);
1002 cLength = bc_bLength -= ab_bLength;
1010 addReplace(pending_aLength + aLength, pending_cLength + cLength);
1019 pending_cLength += cLength;
[all …]
/external/icu/icu4c/source/common/
Dedits.cpp263 int32_t aLength = 0, ab_bLength = 0, bc_bLength = 0, cLength = 0; in mergeAndAppend() local
282 cLength = bcIter.newLength(); in mergeAndAppend()
286 addReplace(pending_aLength, pending_cLength + cLength); in mergeAndAppend()
289 pending_cLength += cLength; in mergeAndAppend()
343 int32_t unchangedLength = aLength <= cLength ? aLength : cLength; in mergeAndAppend()
346 bc_bLength = cLength -= unchangedLength; in mergeAndAppend()
354 addReplace(pending_aLength + bc_bLength, pending_cLength + cLength); in mergeAndAppend()
367 cLength = bc_bLength -= ab_bLength; in mergeAndAppend()
375 addReplace(pending_aLength + aLength, pending_cLength + cLength); in mergeAndAppend()
384 pending_cLength += cLength; in mergeAndAppend()
[all …]
Dunistr.cpp1910 int32_t cLength = 0; in appendCodePoint() local
1912 U16_APPEND(buffer, cLength, U16_MAX_LENGTH, c, isError); in appendCodePoint()
1913 return !isError && str.doAppend(buffer, 0, cLength).isWritable(); in appendCodePoint()
/external/icu/icu4c/source/test/cintltst/
Ducsdetst.c170 int32_t beLength = 0, leLength = 0, cLength = UPRV_LENGTHOF(chars); in TestUTF16() local
171 char *beBytes = extractBytes(chars, cLength, "UTF-16BE", &beLength); in TestUTF16()
172 char *leBytes = extractBytes(chars, cLength, "UTF-16LE", &leLength); in TestUTF16()
474 …int32_t bLength = 0, brLength = 0, cLength = UPRV_LENGTHOF(chars), crLength = UPRV_LENGTHOF(chars_… in TestIBM424() local
476 char *bytes = extractBytes(chars, cLength, "IBM424", &bLength); in TestIBM424()
552 …int32_t bLength = 0, brLength = 0, cLength = UPRV_LENGTHOF(chars), crLength = UPRV_LENGTHOF(chars_… in TestIBM420() local
554 char *bytes = extractBytes(chars, cLength, "IBM420", &bLength); in TestIBM420()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DCharsTrieTest.java745 int cLength=Character.charCount(c); in checkFirst() local
746 nextCp=expectedString.length()>cLength ? expectedString.codePointAt(cLength) : 0; in checkFirst()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DCharsTrieTest.java742 int cLength=Character.charCount(c); in checkFirst() local
743 nextCp=expectedString.length()>cLength ? expectedString.codePointAt(cLength) : 0; in checkFirst()
/external/icu/icu4c/source/test/intltest/
Ducharstrietest.cpp843 int32_t cLength=U16_LENGTH(c); in checkFirst() local
844 nextCp=expectedString.length()>cLength ? expectedString.char32At(cLength) : 0; in checkFirst()
Dtstnorm.cpp1384 int32_t cLength=s.length(); in initExpectedSkippables() local
1399 s.truncate(cLength); in initExpectedSkippables()
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationDataBuilder.java182 int cLength = Character.charCount(c); in addCE32() local
184 boolean hasContext = prefix.length() != 0|| s.length() > cLength; in addCE32()
219 CharSequence suffix = s.subSequence(cLength, s.length()); in addCE32()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationDataBuilder.java181 int cLength = Character.charCount(c); in addCE32() local
183 boolean hasContext = prefix.length() != 0|| s.length() > cLength; in addCE32()
218 CharSequence suffix = s.subSequence(cLength, s.length()); in addCE32()
/external/icu/icu4c/source/i18n/
Dcollationdatabuilder.cpp549 int32_t cLength = U16_LENGTH(c); in addCE32() local
551 UBool hasContext = !prefix.isEmpty() || s.length() > cLength; in addCE32()
588 UnicodeString suffix(s, cLength); in addCE32()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/
DBasicTest.java2396 int cLength=s.length(); in initSkippables() local
2411 s.delete(cLength, 0x7fffffff); in initSkippables()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/
DBasicTest.java2399 int cLength=s.length(); in initSkippables() local
2414 s.delete(cLength, 0x7fffffff); in initSkippables()