/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | SimpleModifier.java | 20 private final int prefixLength; field in SimpleModifier 46 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier() 47 assert 2 + prefixLength == compiledPattern.length(); in SimpleModifier() 54 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier() 55 suffixOffset = 3 + prefixLength; in SimpleModifier() 57 prefixLength = 0; in SimpleModifier() 60 if (3 + prefixLength < compiledPattern.length()) { in SimpleModifier() 75 return prefixLength; in getPrefixLength() 81 if (prefixLength > 0) { in getCodePointCount() 82 count += Character.codePointCount(compiledPattern, 2, 2 + prefixLength); in getCodePointCount() [all …]
|
D | ConstantMultiFieldModifier.java | 117 int prefixLength = getPrefixLength(); in toString() local 119 temp.subSequence(0, prefixLength), in toString() 120 temp.subSequence(prefixLength, temp.length())); in toString()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | SimpleModifier.java | 18 private final int prefixLength; field in SimpleModifier 44 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier() 45 assert 2 + prefixLength == compiledPattern.length(); in SimpleModifier() 52 prefixLength = compiledPattern.charAt(1) - ARG_NUM_LIMIT; in SimpleModifier() 53 suffixOffset = 3 + prefixLength; in SimpleModifier() 55 prefixLength = 0; in SimpleModifier() 58 if (3 + prefixLength < compiledPattern.length()) { in SimpleModifier() 73 return prefixLength; in getPrefixLength() 79 if (prefixLength > 0) { in getCodePointCount() 80 count += Character.codePointCount(compiledPattern, 2, 2 + prefixLength); in getCodePointCount() [all …]
|
D | ConstantMultiFieldModifier.java | 115 int prefixLength = getPrefixLength(); in toString() local 117 temp.subSequence(0, prefixLength), in toString() 118 temp.subSequence(prefixLength, temp.length())); in toString()
|
/external/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 …]
|
/external/fonttools/Lib/fontTools/ufoLib/ |
D | filenames.py | 75 prefixLength = len(prefix) 93 sliceLength = maxFileNameLength - prefixLength - suffixLength 140 prefixLength = len(prefix) 142 if prefixLength + len(userName) + suffixLength + 15 > maxFileNameLength: 143 l = (prefixLength + len(userName) + suffixLength + 15)
|
/external/fonttools/Lib/fontTools/misc/ |
D | filenames.py | 84 prefixLength = len(prefix) 102 sliceLength = maxFileNameLength - prefixLength - suffixLength 149 prefixLength = len(prefix) 151 if prefixLength + len(userName) + suffixLength + 15 > maxFileNameLength: 152 l = (prefixLength + len(userName) + suffixLength + 15)
|
/external/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()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | LocalizedNumberFormatter.java | 173 int prefixLength; in getAffixImpl() local 175 prefixLength = compiled.getPrefixSuffix(signum, plural, string); in getAffixImpl() 177 … prefixLength = NumberFormatterImpl.getPrefixSuffixStatic(resolve(), signum, plural, string); in getAffixImpl() 180 return string.subSequence(0, prefixLength).toString(); in getAffixImpl() 182 return string.subSequence(prefixLength, string.length()).toString(); in getAffixImpl()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | LocalizedNumberFormatter.java | 169 int prefixLength; in getAffixImpl() local 171 prefixLength = compiled.getPrefixSuffix(signum, plural, string); in getAffixImpl() 173 … prefixLength = NumberFormatterImpl.getPrefixSuffixStatic(resolve(), signum, plural, string); in getAffixImpl() 176 return string.subSequence(0, prefixLength).toString(); in getAffixImpl() 178 return string.subSequence(prefixLength, string.length()).toString(); in getAffixImpl()
|
/external/icu/icu4c/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()
|
D | collationdatabuilder.cpp | 64 inline int32_t prefixLength() const { return context.charAt(0); } in prefixLength() function 994 int32_t suffixStart = cond->prefixLength() + 1; in copyCE32() 1364 int32_t prefixLength = cond->prefixLength(); in buildContext() local 1365 UnicodeString prefix(cond->context, 0, prefixLength + 1); in buildContext() 1374 int32_t suffixStart = prefixLength + 1; // == prefix.length() in buildContext() 1402 int32_t length = cond->prefixLength(); in buildContext() 1403 if(length == prefixLength) { break; } in buildContext() 1441 if(prefixLength == 0) { in buildContext() 1515 int32_t prefixLength = prefix.length(); in getCEs() local 1516 if(prefixLength == 0) { in getCEs() [all …]
|
/external/perfetto/ui/src/frontend/ |
D | router.ts | 41 const prefixLength = ROUTE_PREFIX.length; constant 45 if (hash.substring(0, prefixLength) !== ROUTE_PREFIX) return ''; 47 return hash.split('?')[0].substring(prefixLength);
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_patternmodifier.cpp | 173 int32_t prefixLength = mod.getPrefixLength(); in getPrefix() local 174 return UnicodeString(nsb.toUnicodeString(), 0, prefixLength); in getPrefix() 180 int32_t prefixLength = mod.getPrefixLength(); in getSuffix() local 181 return UnicodeString(nsb.toUnicodeString(), prefixLength, nsb.length() - prefixLength); in getSuffix()
|
/external/emma/core/java12/com/vladium/util/ |
D | WCMatcher.java | 168 final int prefixLength = prefixChars.length - 1; in matches() local 170 if (chars.length < prefixLength) return false; in matches() 172 for (int c = 0; c < prefixLength; ++ c) in matches()
|
/external/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()
|
/external/icu/android_icu4j/src/main/java/android/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 …]
|
/external/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 …]
|
/external/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()
|
/external/icu/android_icu4j/src/main/java/android/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()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NFRule.java | 923 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()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NFRule.java | 922 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 1244 return scanner.prefixLength(str, prefix); in prefixLength()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 154 keyLen = prefixLength(str.substring(p), key); in findText() 219 public int prefixLength(String str, String prefix) { in prefixLength() method in RbnfScannerProviderImpl.RbnfLenientScannerImpl
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 156 keyLen = prefixLength(str.substring(p), key); in findText() 221 public int prefixLength(String str, String prefix) { in prefixLength() method in RbnfScannerProviderImpl.RbnfLenientScannerImpl
|