Home
last modified time | relevance | path

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

/external/cronet/third_party/icu/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.cpp1364 int32_t cpLength=spanOne(spanSet, s+pos, rest); in spanNot() local
1365 if(cpLength>0) { in spanNot()
1386 pos-=cpLength; in spanNot()
1387 rest+=cpLength; in spanNot()
1405 int32_t cpLength=spanOneBack(spanSet, s, pos); in spanNotBack() local
1406 if(cpLength>0) { in spanNotBack()
1430 pos+=cpLength; in spanNotBack()
1454 int32_t cpLength=spanOneUTF8(spanSet, s+pos, rest); in spanNotUTF8() local
1455 if(cpLength>0) { in spanNotUTF8()
1474 pos-=cpLength; in spanNotUTF8()
[all …]
Ducasemap.cpp139 appendResult(int32_t cpLength, int32_t result, const UChar *s, in appendResult() argument
147 edits->addUnchanged(cpLength); in appendResult()
150 ByteSinkUtil::appendCodePoint(cpLength, ~result, sink); in appendResult()
155 return ByteSinkUtil::appendChange(cpLength, s, result, sink, edits, errorCode); in appendResult()
157 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.cpp65 int32_t cpLength, uint32_t options, icu::Edits *edits) { in appendResult() argument
73 edits->addUnchanged(cpLength); in appendResult()
83 length=cpLength; in appendResult()
91 edits->addReplace(cpLength, 1); in appendResult()
99 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/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.cpp1364 int32_t cpLength=spanOne(spanSet, s+pos, rest); in spanNot() local
1365 if(cpLength>0) { in spanNot()
1386 pos-=cpLength; in spanNot()
1387 rest+=cpLength; in spanNot()
1405 int32_t cpLength=spanOneBack(spanSet, s, pos); in spanNotBack() local
1406 if(cpLength>0) { in spanNotBack()
1430 pos+=cpLength; in spanNotBack()
1454 int32_t cpLength=spanOneUTF8(spanSet, s+pos, rest); in spanNotUTF8() local
1455 if(cpLength>0) { in spanNotUTF8()
1474 pos-=cpLength; in spanNotUTF8()
[all …]
Ducasemap.cpp139 appendResult(int32_t cpLength, int32_t result, const UChar *s, in appendResult() argument
147 edits->addUnchanged(cpLength); in appendResult()
150 ByteSinkUtil::appendCodePoint(cpLength, ~result, sink); in appendResult()
155 return ByteSinkUtil::appendChange(cpLength, s, result, sink, edits, errorCode); in appendResult()
157 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.cpp65 int32_t cpLength, uint32_t options, icu::Edits *edits) { in appendResult() argument
73 edits->addUnchanged(cpLength); in appendResult()
83 length=cpLength; in appendResult()
91 edits->addReplace(cpLength, 1); in appendResult()
99 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/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.java580 int cpLength = spanOne(spanSet, s, pos, rest); in spanAndCount() local
581 int maxInc = (cpLength > 0) ? cpLength : 0; in spanAndCount()
615 int cpLength = spanOne(spanSet, s, pos, rest); in spanContainedAndCount() local
616 if (cpLength > 0) { in spanContainedAndCount()
617 offsets.addOffsetAndCount(cpLength, count + 1); in spanContainedAndCount()
868 int cpLength = spanOne(spanSet, s, pos, rest); in spanNot() local
869 if (cpLength > 0) { in spanNot()
889 pos -= cpLength; in spanNot()
890 rest += cpLength; in spanNot()
912 int cpLength = spanOneBack(spanSet, s, pos); in spanNotBack() local
[all …]
DCaseMapImpl.java379 int cpLength, int options, Edits edits) throws IOException { in appendResult() argument
384 edits.addUnchanged(cpLength); in appendResult()
393 edits.addReplace(cpLength, result); in appendResult()
399 edits.addReplace(cpLength, length); in appendResult()
/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.java584 int cpLength = spanOne(spanSet, s, pos, rest); in spanAndCount() local
585 int maxInc = (cpLength > 0) ? cpLength : 0; in spanAndCount()
619 int cpLength = spanOne(spanSet, s, pos, rest); in spanContainedAndCount() local
620 if (cpLength > 0) { in spanContainedAndCount()
621 offsets.addOffsetAndCount(cpLength, count + 1); in spanContainedAndCount()
872 int cpLength = spanOne(spanSet, s, pos, rest); in spanNot() local
873 if (cpLength > 0) { in spanNot()
893 pos -= cpLength; in spanNot()
894 rest += cpLength; in spanNot()
916 int cpLength = spanOneBack(spanSet, s, pos); in spanNotBack() local
[all …]
DCaseMapImpl.java384 int cpLength, int options, Edits edits) throws IOException { in appendResult() argument
389 edits.addUnchanged(cpLength); in appendResult()
398 edits.addReplace(cpLength, result); in appendResult()
404 edits.addReplace(cpLength, length); in appendResult()
/external/cronet/third_party/icu/source/test/intltest/
Dcsdetest.cpp167 int32_t cpLength = eSplit[0].length(); in checkEncoding() local
170 u_UCharsToChars(eSplit[0].getBuffer(), codepage, cpLength); in checkEncoding()
171 codepage[cpLength] = '\0'; in checkEncoding()
/external/icu/icu4c/source/test/intltest/
Dcsdetest.cpp167 int32_t cpLength = eSplit[0].length(); in checkEncoding() local
170 u_UCharsToChars(eSplit[0].getBuffer(), codepage, cpLength); in checkEncoding()
171 codepage[cpLength] = '\0'; in checkEncoding()