Home
last modified time | relevance | path

Searched refs:cpLength (Results 1 – 14 of 14) sorted by relevance

/external/icu/icu4c/source/common/
Dpunycode.cpp379 destCPCount, firstSupplementaryIndex, cpLength; in u_strFromPunycode() local
527 cpLength=U16_LENGTH(n); in u_strFromPunycode()
528 if(dest!=NULL && ((destLength+cpLength)<=destCapacity)) { in u_strFromPunycode()
543 if(cpLength>1) { in u_strFromPunycode()
555 uprv_memmove(dest+codeUnitIndex+cpLength, in u_strFromPunycode()
559 uprv_memmove(caseFlags+codeUnitIndex+cpLength, in u_strFromPunycode()
564 if(cpLength==1) { in u_strFromPunycode()
575 if(cpLength==2) { in u_strFromPunycode()
580 destLength+=cpLength; in u_strFromPunycode()
Dsimpleformatter.cpp211 int32_t cpLength = compiledPattern.length(); in formatAndReplace() local
212 if (valuesLength < getArgumentLimit(cp, cpLength)) { in formatAndReplace()
224 if (getArgumentLimit(cp, cpLength) > 0) { in formatAndReplace()
225 for (int32_t i = 1; i < cpLength;) { in formatAndReplace()
243 return format(cp, cpLength, values, in formatAndReplace()
Dunisetspan.cpp1353 int32_t cpLength=spanOne(spanSet, s+pos, rest); in spanNot() local
1354 if(cpLength>0) { in spanNot()
1374 pos-=cpLength; in spanNot()
1375 rest+=cpLength; in spanNot()
1393 int32_t cpLength=spanOneBack(spanSet, s, pos); in spanNotBack() local
1394 if(cpLength>0) { in spanNotBack()
1417 pos+=cpLength; in spanNotBack()
1441 int32_t cpLength=spanOneUTF8(spanSet, s+pos, rest); in spanNotUTF8() local
1442 if(cpLength>0) { in spanNotUTF8()
1461 pos-=cpLength; in spanNotUTF8()
[all …]
Ducasemap.cpp140 appendResult(int32_t cpLength, int32_t result, const UChar *s, in appendResult() argument
148 edits->addUnchanged(cpLength); in appendResult()
151 ByteSinkUtil::appendCodePoint(cpLength, ~result, sink); in appendResult()
156 return ByteSinkUtil::appendChange(cpLength, s, result, sink, edits, errorCode); in appendResult()
158 ByteSinkUtil::appendCodePoint(cpLength, result, sink, edits); in appendResult()
Dnormalizer2impl.cpp141 int32_t cpLength = (int32_t)(cpLimit - cpStart); in appendCodePointDelta() local
142 if (cpLength == 1) { in appendCodePointDelta()
162 edits->addReplace(cpLength, length); in appendCodePointDelta()
301 int32_t cpLength=U16_LENGTH(c); in appendZeroCC() local
302 if(remainingCapacity<cpLength && !resize(cpLength, errorCode)) { in appendZeroCC()
305 remainingCapacity-=cpLength; in appendZeroCC()
306 if(cpLength==1) { in appendZeroCC()
Dustrcase.cpp59 int32_t cpLength, uint32_t options, icu::Edits *edits) { in appendResult() argument
67 edits->addUnchanged(cpLength); in appendResult()
77 length=cpLength; in appendResult()
85 edits->addReplace(cpLength, 1); in appendResult()
93 edits->addReplace(cpLength, length); in appendResult()
Duts46.cpp835 int32_t cpLength=0; in processLabel() local
837 U16_NEXT_UNSAFE(label, cpLength, c); in processLabel()
840 labelString->replace(labelStart, cpLength, (UChar)0xfffd); in processLabel()
842 labelLength+=1-cpLength; in processLabel()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DPunycode.java284 destCPCount, firstSupplementaryIndex, cpLength; in decode() local
395 cpLength=Character.charCount(n); in decode()
410 if(cpLength>1) { in decode()
420 if(caseFlags!=null && (dest.length()+cpLength)<=caseFlags.length) { in decode()
423 caseFlags, codeUnitIndex+cpLength, in decode()
428 if(cpLength==2) { in decode()
432 if(cpLength==1) { in decode()
DUnicodeSetStringSpan.java577 int cpLength = spanOne(spanSet, s, pos, rest); in spanAndCount() local
578 int maxInc = (cpLength > 0) ? cpLength : 0; in spanAndCount()
612 int cpLength = spanOne(spanSet, s, pos, rest); in spanContainedAndCount() local
613 if (cpLength > 0) { in spanContainedAndCount()
614 offsets.addOffsetAndCount(cpLength, count + 1); in spanContainedAndCount()
865 int cpLength = spanOne(spanSet, s, pos, rest); in spanNot() local
866 if (cpLength > 0) { in spanNot()
886 pos -= cpLength; in spanNot()
887 rest += cpLength; in spanNot()
909 int cpLength = spanOneBack(spanSet, s, pos); in spanNotBack() local
[all …]
DCaseMapImpl.java373 int cpLength, int options, Edits edits) throws IOException { in appendResult() argument
378 edits.addUnchanged(cpLength); in appendResult()
387 edits.addReplace(cpLength, result); in appendResult()
393 edits.addReplace(cpLength, length); in appendResult()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPunycode.java282 destCPCount, firstSupplementaryIndex, cpLength; in decode() local
393 cpLength=Character.charCount(n); in decode()
408 if(cpLength>1) { in decode()
418 if(caseFlags!=null && (dest.length()+cpLength)<=caseFlags.length) { in decode()
421 caseFlags, codeUnitIndex+cpLength, in decode()
426 if(cpLength==2) { in decode()
430 if(cpLength==1) { in decode()
DUnicodeSetStringSpan.java573 int cpLength = spanOne(spanSet, s, pos, rest); in spanAndCount() local
574 int maxInc = (cpLength > 0) ? cpLength : 0; in spanAndCount()
608 int cpLength = spanOne(spanSet, s, pos, rest); in spanContainedAndCount() local
609 if (cpLength > 0) { in spanContainedAndCount()
610 offsets.addOffsetAndCount(cpLength, count + 1); in spanContainedAndCount()
861 int cpLength = spanOne(spanSet, s, pos, rest); in spanNot() local
862 if (cpLength > 0) { in spanNot()
882 pos -= cpLength; in spanNot()
883 rest += cpLength; in spanNot()
905 int cpLength = spanOneBack(spanSet, s, pos); in spanNotBack() local
[all …]
DCaseMapImpl.java368 int cpLength, int options, Edits edits) throws IOException { in appendResult() argument
373 edits.addUnchanged(cpLength); in appendResult()
382 edits.addReplace(cpLength, result); in appendResult()
388 edits.addReplace(cpLength, length); in appendResult()
/external/icu/icu4c/source/test/intltest/
Dcsdetest.cpp163 int32_t cpLength = eSplit[0].length(); in checkEncoding() local
166 u_UCharsToChars(eSplit[0].getBuffer(), codepage, cpLength); in checkEncoding()
167 codepage[cpLength] = '\0'; in checkEncoding()