/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | SimpleModifier.java | 105 int prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() local 107 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern() 109 prefixLength = 0; in formatTwoArgPattern() 111 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern() 112 result.insert(index + length, compiledPattern, offset, offset + prefixLength, field); in formatTwoArgPattern() 113 offset += prefixLength; in formatTwoArgPattern() 114 length += prefixLength; in formatTwoArgPattern() 142 h.lengthPrefix = prefixLength; in formatTwoArgPattern()
|
D | ConstantMultiFieldModifier.java | 116 int prefixLength = getPrefixLength(); in toString() local 118 temp.subSequence(0, prefixLength), in toString() 119 temp.subSequence(prefixLength, temp.length())); in toString()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | SimpleModifier.java | 107 int prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() local 109 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern() 111 prefixLength = 0; in formatTwoArgPattern() 113 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern() 114 result.insert(index + length, compiledPattern, offset, offset + prefixLength, field); in formatTwoArgPattern() 115 offset += prefixLength; in formatTwoArgPattern() 116 length += prefixLength; in formatTwoArgPattern() 144 h.lengthPrefix = prefixLength; in formatTwoArgPattern()
|
D | ConstantMultiFieldModifier.java | 118 int prefixLength = getPrefixLength(); in toString() local 120 temp.subSequence(0, prefixLength), in toString() 121 temp.subSequence(prefixLength, temp.length())); in toString()
|
/third_party/icu/icu4c/source/tools/toolutil/ |
D | package.cpp | 582 int32_t prefixLength; in readPackage() local 593 prefixLength=(int32_t)(prefixLimit-s); in readPackage() 594 if(prefixLength==0 || prefixLength>=UPRV_LENGTHOF(pkgPrefix)) { in readPackage() 601 if(prefixEndsWithType && s[prefixLength-1]!=type) { in readPackage() 608 memcpy(pkgPrefix, s, prefixLength); in readPackage() 609 pkgPrefix[prefixLength]=0; in readPackage() 610 memcpy(prefix, s, ++prefixLength); // include the / in readPackage() 615 prefixLength=inPkgNameLength; in readPackage() 622 prefix[prefixLength++]='_'; in readPackage() 625 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; in readPackage() [all …]
|
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
D | package.cpp | 582 int32_t prefixLength; in readPackage() local 593 prefixLength=(int32_t)(prefixLimit-s); in readPackage() 594 if(prefixLength==0 || prefixLength>=UPRV_LENGTHOF(pkgPrefix)) { in readPackage() 601 if(prefixEndsWithType && s[prefixLength-1]!=type) { in readPackage() 608 memcpy(pkgPrefix, s, prefixLength); in readPackage() 609 pkgPrefix[prefixLength]=0; in readPackage() 610 memcpy(prefix, s, ++prefixLength); // include the / in readPackage() 615 prefixLength=inPkgNameLength; in readPackage() 622 prefix[prefixLength++]='_'; in readPackage() 625 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; in readPackage() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/tools/toolutil/ |
D | package.cpp | 582 int32_t prefixLength; in readPackage() local 593 prefixLength=(int32_t)(prefixLimit-s); in readPackage() 594 if(prefixLength==0 || prefixLength>=UPRV_LENGTHOF(pkgPrefix)) { in readPackage() 601 if(prefixEndsWithType && s[prefixLength-1]!=type) { in readPackage() 608 memcpy(pkgPrefix, s, prefixLength); in readPackage() 609 pkgPrefix[prefixLength]=0; in readPackage() 610 memcpy(prefix, s, ++prefixLength); // include the / in readPackage() 615 prefixLength=inPkgNameLength; in readPackage() 622 prefix[prefixLength++]='_'; in readPackage() 625 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; in readPackage() [all …]
|
/third_party/node/deps/icu-small/source/tools/toolutil/ |
D | package.cpp | 582 int32_t prefixLength; in readPackage() local 593 prefixLength=(int32_t)(prefixLimit-s); in readPackage() 594 if(prefixLength==0 || prefixLength>=UPRV_LENGTHOF(pkgPrefix)) { in readPackage() 601 if(prefixEndsWithType && s[prefixLength-1]!=type) { in readPackage() 608 memcpy(pkgPrefix, s, prefixLength); in readPackage() 609 pkgPrefix[prefixLength]=0; in readPackage() 610 memcpy(prefix, s, ++prefixLength); // include the / in readPackage() 615 prefixLength=inPkgNameLength; in readPackage() 622 prefix[prefixLength++]='_'; in readPackage() 625 prefix[prefixLength++]=U_TREE_ENTRY_SEP_CHAR; in readPackage() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | ucmndata.cpp | 154 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in offsetTOCPrefixBinarySearch() local 155 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength); in offsetTOCPrefixBinarySearch() 158 limitPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 163 startPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 199 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in pointerTOCPrefixBinarySearch() local 200 int32_t cmp=strcmpAfterPrefix(s, toc[i].entryName, &prefixLength); in pointerTOCPrefixBinarySearch() 203 limitPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch() 208 startPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch()
|
/third_party/icu/icu4c/source/common/ |
D | ucmndata.cpp | 154 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in offsetTOCPrefixBinarySearch() local 155 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength); in offsetTOCPrefixBinarySearch() 158 limitPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 163 startPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 199 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in pointerTOCPrefixBinarySearch() local 200 int32_t cmp=strcmpAfterPrefix(s, toc[i].entryName, &prefixLength); in pointerTOCPrefixBinarySearch() 203 limitPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch() 208 startPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch()
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | ucmndata.cpp | 154 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in offsetTOCPrefixBinarySearch() local 155 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength); in offsetTOCPrefixBinarySearch() 158 limitPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 163 startPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 199 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in pointerTOCPrefixBinarySearch() local 200 int32_t cmp=strcmpAfterPrefix(s, toc[i].entryName, &prefixLength); in pointerTOCPrefixBinarySearch() 203 limitPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch() 208 startPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch()
|
/third_party/node/deps/icu-small/source/common/ |
D | ucmndata.cpp | 154 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in offsetTOCPrefixBinarySearch() local 155 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength); in offsetTOCPrefixBinarySearch() 158 limitPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 163 startPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch() 199 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in pointerTOCPrefixBinarySearch() local 200 int32_t cmp=strcmpAfterPrefix(s, toc[i].entryName, &prefixLength); in pointerTOCPrefixBinarySearch() 203 limitPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch() 208 startPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | LocalizedNumberFormatter.java | 184 int prefixLength; in getAffixImpl() local 186 prefixLength = compiled.getPrefixSuffix(signum, plural, string); in getAffixImpl() 188 … prefixLength = NumberFormatterImpl.getPrefixSuffixStatic(resolve(), signum, plural, string); in getAffixImpl() 191 return string.subSequence(0, prefixLength).toString(); in getAffixImpl() 193 return string.subSequence(prefixLength, string.length()).toString(); in getAffixImpl()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | LocalizedNumberFormatter.java | 191 int prefixLength; in getAffixImpl() local 193 prefixLength = compiled.getPrefixSuffix(signum, plural, string); in getAffixImpl() 195 … prefixLength = NumberFormatterImpl.getPrefixSuffixStatic(resolve(), signum, plural, string); in getAffixImpl() 198 return string.subSequence(0, prefixLength).toString(); in getAffixImpl() 200 return string.subSequence(prefixLength, string.length()).toString(); in getAffixImpl()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | listformatter.cpp | 432 int32_t prefixLength = 0; in format_() local 448 prefixLength += offsetFirst; in format_() 449 offsets[1] = offsetSecond - prefixLength; in format_() 464 prefixLength += offsetFirst; in format_() 465 offsets[i] = offsetSecond - prefixLength; in format_() 479 prefixLength += offsetFirst; in format_() 480 offsets[nItems - 1] = offsetSecond - prefixLength; in format_() 486 int32_t shift = appendTo.length() + prefixLength; in format_() 501 offsets[2 * nItems] = shift - prefixLength; in format_() 502 offsets[2 * nItems + 1] = result.length() + shift - prefixLength; in format_()
|
D | number_modifiers.cpp | 245 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() local 247 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern() 249 prefixLength = 0; in formatTwoArgPattern() 251 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern() 252 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 253 offset += prefixLength; in formatTwoArgPattern() 254 length += prefixLength; in formatTwoArgPattern() 282 *outPrefixLength = prefixLength; in formatTwoArgPattern()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_modifiers.cpp | 243 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() local 245 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern() 247 prefixLength = 0; in formatTwoArgPattern() 249 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern() 250 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 251 offset += prefixLength; in formatTwoArgPattern() 252 length += prefixLength; in formatTwoArgPattern() 280 *outPrefixLength = prefixLength; in formatTwoArgPattern()
|
/third_party/icu/icu4c/source/i18n/ |
D | number_modifiers.cpp | 243 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() local 245 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern() 247 prefixLength = 0; in formatTwoArgPattern() 249 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern() 250 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 251 offset += prefixLength; in formatTwoArgPattern() 252 length += prefixLength; in formatTwoArgPattern() 280 *outPrefixLength = prefixLength; in formatTwoArgPattern()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_modifiers.cpp | 243 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() local 245 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern() 247 prefixLength = 0; in formatTwoArgPattern() 249 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern() 250 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern() 251 offset += prefixLength; in formatTwoArgPattern() 252 length += prefixLength; in formatTwoArgPattern() 280 *outPrefixLength = prefixLength; in formatTwoArgPattern()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | numbertest_patternmodifier.cpp | 175 int32_t prefixLength = mod.getPrefixLength(); in getPrefix() local 176 return UnicodeString(nsb.toUnicodeString(), 0, prefixLength); in getPrefix() 182 int32_t prefixLength = mod.getPrefixLength(); in getSuffix() local 183 return UnicodeString(nsb.toUnicodeString(), prefixLength, nsb.length() - prefixLength); in getSuffix()
|
/third_party/icu/icu4c/source/test/perf/dicttrieperf/ |
D | dicttrieperf.cpp | 189 static int32_t strcmpAfterPrefix(const char *s1, const char *s2, int32_t &prefixLength) { in strcmpAfterPrefix() argument 190 int32_t pl=prefixLength; in strcmpAfterPrefix() 203 prefixLength=pl; in strcmpAfterPrefix() 232 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in prefixBinarySearch() local 233 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, prefixLength); in prefixBinarySearch() 236 limitPrefixLength=prefixLength; in prefixBinarySearch() 241 startPrefixLength=prefixLength; in prefixBinarySearch()
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationDataBuilder.java | 336 int prefixLength = prefix.length(); in getCEs() local 337 if(prefixLength == 0) { in getCEs() 340 return getCEs(new StringBuilder(prefix).append(s), prefixLength, ces, cesLength); in getCEs() 363 int prefixLength() { return context.charAt(0); } in prefixLength() method in CollationDataBuilder.ConditionalCE32 764 int suffixStart = cond.prefixLength() + 1; in copyCE32() 1029 int prefixLength = cond.prefixLength(); in buildContext() local 1030 StringBuilder prefix = new StringBuilder().append(cond.context, 0, prefixLength + 1); in buildContext() 1040 int suffixStart = prefixLength + 1; // == prefix.length() in buildContext() 1068 int length = cond.prefixLength(); in buildContext() 1069 if(length == prefixLength) { break; } in buildContext() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
D | CollationDataBuilder.java | 337 int prefixLength = prefix.length(); in getCEs() local 338 if(prefixLength == 0) { in getCEs() 341 return getCEs(new StringBuilder(prefix).append(s), prefixLength, ces, cesLength); in getCEs() 364 int prefixLength() { return context.charAt(0); } in prefixLength() method in CollationDataBuilder.ConditionalCE32 765 int suffixStart = cond.prefixLength() + 1; in copyCE32() 1030 int prefixLength = cond.prefixLength(); in buildContext() local 1031 StringBuilder prefix = new StringBuilder().append(cond.context, 0, prefixLength + 1); in buildContext() 1041 int suffixStart = prefixLength + 1; // == prefix.length() in buildContext() 1069 int length = cond.prefixLength(); in buildContext() 1070 if(length == prefixLength) { break; } in buildContext() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
D | StringTrieBuilder.java | 394 int prefixLength=i-stringOffset; in add() local 395 … LinearMatchNode suffixNode=new LinearMatchNode(strings, i, length-prefixLength, next); in add() 397 length=prefixLength; in add() 429 int prefixLength=i-stringOffset; in add() local 432 strings, i, length-(prefixLength+1), next); in add() 433 length=prefixLength; in add()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | StringTrieBuilder.java | 395 int prefixLength=i-stringOffset; in add() local 396 … LinearMatchNode suffixNode=new LinearMatchNode(strings, i, length-prefixLength, next); in add() 398 length=prefixLength; in add() 430 int prefixLength=i-stringOffset; in add() local 433 strings, i, length-(prefixLength+1), next); in add() 434 length=prefixLength; in add()
|