Home
last modified time | relevance | path

Searched refs:prefixLength (Results 1 – 25 of 65) sorted by relevance

123

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DSimpleModifier.java105 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()
DConstantMultiFieldModifier.java116 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/
DSimpleModifier.java107 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()
DConstantMultiFieldModifier.java118 int prefixLength = getPrefixLength(); in toString() local
120 temp.subSequence(0, prefixLength), in toString()
121 temp.subSequence(prefixLength, temp.length())); in toString()
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
Dpackage.cpp582 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/
Dpackage.cpp582 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/icu/icu4c/source/tools/toolutil/
Dpackage.cpp582 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/
Ducmndata.cpp154 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/
Ducmndata.cpp154 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/
Ducmndata.cpp154 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/
DLocalizedNumberFormatter.java184 int prefixLength; in getAffixImpl() local
186 prefixLength = compiled.getPrefixSuffix(signum, plural, string); in getAffixImpl()
188prefixLength = 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/
DLocalizedNumberFormatter.java191 int prefixLength; in getAffixImpl() local
193 prefixLength = compiled.getPrefixSuffix(signum, plural, string); in getAffixImpl()
195prefixLength = 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/skia/third_party/externals/icu/source/i18n/
Dnumber_modifiers.cpp243 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()
Dcollationdatabuilder.cpp64 inline int32_t prefixLength() const { return context.charAt(0); } in prefixLength() function
999 int32_t suffixStart = cond->prefixLength() + 1; in copyCE32()
1369 int32_t prefixLength = cond->prefixLength(); in buildContext() local
1370 UnicodeString prefix(cond->context, 0, prefixLength + 1); in buildContext()
1379 int32_t suffixStart = prefixLength + 1; // == prefix.length() in buildContext()
1407 int32_t length = cond->prefixLength(); in buildContext()
1408 if(length == prefixLength) { break; } in buildContext()
1446 if(prefixLength == 0) { in buildContext()
1520 int32_t prefixLength = prefix.length(); in getCEs() local
1521 if(prefixLength == 0) { in getCEs()
[all …]
/third_party/icu/icu4c/source/i18n/
Dnumber_modifiers.cpp243 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/
Dnumber_modifiers.cpp252 int32_t prefixLength = compiledPattern.charAt(offset); in formatTwoArgPattern() local
254 if (prefixLength < ARG_NUM_LIMIT) { in formatTwoArgPattern()
256 prefixLength = 0; in formatTwoArgPattern()
258 prefixLength -= ARG_NUM_LIMIT; in formatTwoArgPattern()
259 … result.insert(index + length, compiledPattern, offset, offset + prefixLength, field, status); in formatTwoArgPattern()
260 offset += prefixLength; in formatTwoArgPattern()
261 length += prefixLength; in formatTwoArgPattern()
289 *outPrefixLength = prefixLength; in formatTwoArgPattern()
Dcollationdatabuilder.cpp64 inline int32_t prefixLength() const { return context.charAt(0); } in prefixLength() function
1113 int32_t suffixStart = cond->prefixLength() + 1; in copyCE32()
1487 int32_t prefixLength = cond->prefixLength(); in buildContext() local
1488 UnicodeString prefix(cond->context, 0, prefixLength + 1); in buildContext()
1508 int32_t suffixStart = prefixLength + 1; // == prefix.length() in buildContext()
1536 int32_t length = cond->prefixLength(); in buildContext()
1537 if(length == prefixLength) { break; } in buildContext()
1589 if(prefixLength == 0) { in buildContext()
1663 int32_t prefixLength = prefix.length(); in getCEs() local
1664 if(prefixLength == 0) { in getCEs()
[all …]
/third_party/icu/icu4c/source/test/perf/dicttrieperf/
Ddicttrieperf.cpp189 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/icu4c/source/test/intltest/
Dnumbertest_patternmodifier.cpp201 int32_t prefixLength = mod.getPrefixLength(); in getPrefix() local
202 return UnicodeString(nsb.toUnicodeString(), 0, prefixLength); in getPrefix()
208 int32_t prefixLength = mod.getPrefixLength(); in getSuffix() local
209 return UnicodeString(nsb.toUnicodeString(), prefixLength, nsb.length() - prefixLength); in getSuffix()
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationDataBuilder.java336 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
776 int suffixStart = cond.prefixLength() + 1; in copyCE32()
1042 int prefixLength = cond.prefixLength(); in buildContext() local
1043 StringBuilder prefix = new StringBuilder().append(cond.context, 0, prefixLength + 1); in buildContext()
1064 int suffixStart = prefixLength + 1; // == prefix.length() in buildContext()
1096 int length = cond.prefixLength(); in buildContext()
1097 if(length == prefixLength) { break; } in buildContext()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
DCollationDataBuilder.java337 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/icu4j/main/classes/core/src/com/ibm/icu/util/
DStringTrieBuilder.java395 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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DStringTrieBuilder.java394 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/text/
DNFRule.java922 int prefixLength = text.length() - workText.length(); in doParse() local
1006 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
1007 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
1086 int pfl = prefixLength(text, prefix); in stripPrefix()
1235 private int prefixLength(String str, String prefix) { in prefixLength() method
1248 return scanner.prefixLength(str, prefix); in prefixLength()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DNFRule.java923 int prefixLength = text.length() - workText.length(); in doParse() local
1007 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
1008 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
1087 int pfl = prefixLength(text, prefix); in stripPrefix()
1236 private int prefixLength(String str, String prefix) { in prefixLength() method
1245 return scanner.prefixLength(str, prefix); in prefixLength()

123