Home
last modified time | relevance | path

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

123

/external/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 …]
/external/icu/icu4c/source/common/
Ducmndata.c150 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in offsetTOCPrefixBinarySearch() local
151 int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength); in offsetTOCPrefixBinarySearch()
154 limitPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch()
159 startPrefixLength=prefixLength; in offsetTOCPrefixBinarySearch()
195 int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength); in pointerTOCPrefixBinarySearch() local
196 int32_t cmp=strcmpAfterPrefix(s, toc[i].entryName, &prefixLength); in pointerTOCPrefixBinarySearch()
199 limitPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch()
204 startPrefixLength=prefixLength; in pointerTOCPrefixBinarySearch()
Dunames.cpp999 uint16_t prefixLength, i, idx; in enumAlgNames() local
1007 prefixLength=0; in enumAlgNames()
1010 ++prefixLength; in enumAlgNames()
1014 length=(uint16_t)(prefixLength+writeFactorSuffix(factors, count, in enumAlgNames()
1017 suffix, (uint16_t)(sizeof(buffer)-prefixLength))); in enumAlgNames()
1047 length=prefixLength; in enumAlgNames()
/external/emma/core/java12/com/vladium/util/
DWCMatcher.java168 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/
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()
/external/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
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/android_icu4j/src/main/java/android/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 …]
/external/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()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DStringTrieBuilder.java393 int prefixLength=i-stringOffset; in add() local
394 … LinearMatchNode suffixNode=new LinearMatchNode(strings, i, length-prefixLength, next); in add()
396 length=prefixLength; in add()
428 int prefixLength=i-stringOffset; in add() local
431 strings, i, length-(prefixLength+1), next); in add()
432 length=prefixLength; in add()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRule.java919 int prefixLength = text.length() - workText.length(); in doParse() local
1003 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
1004 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
1083 int pfl = prefixLength(text, prefix); in stripPrefix()
1231 private int prefixLength(String str, String prefix) { in prefixLength() method
1240 return scanner.prefixLength(str, prefix); in prefixLength()
DRbnfLenientScanner.java43 int prefixLength(String str, String prefix); in prefixLength() method
DDateIntervalInfo.java786 int prefixLength = LATEST_FIRST_PREFIX.length(); in setIntervalPatternInternally() local
787 intervalPattern = intervalPattern.substring(prefixLength, intervalPattern.length()); in setIntervalPatternInternally()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRule.java920 int prefixLength = text.length() - workText.length(); in doParse() local
1004 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
1005 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
1084 int pfl = prefixLength(text, prefix); in stripPrefix()
1232 private int prefixLength(String str, String prefix) { in prefixLength() method
1241 return scanner.prefixLength(str, prefix); in prefixLength()
DRbnfLenientScanner.java45 int prefixLength(String str, String prefix); in prefixLength() method
DDateIntervalInfo.java776 int prefixLength = LATEST_FIRST_PREFIX.length(); in setIntervalPatternInternally() local
777 intervalPattern = intervalPattern.substring(prefixLength, intervalPattern.length()); in setIntervalPatternInternally()
/external/icu/icu4c/source/i18n/
Dcollationdatabuilder.cpp64 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 …]
Dnfrule.cpp927 int32_t prefixLength = text.length() - workText.length(); in doParse() local
930 fprintf(stderr, "' pl: %d ppi: %d s1p: %d\n", prefixLength, pp.getIndex(), sub1Pos); in doParse()
1024 if (prefixLength + pp.getIndex() + pp2.getIndex() > highWaterMark) { in doParse()
1025 highWaterMark = prefixLength + pp.getIndex() + pp2.getIndex(); in doParse()
1105 int32_t pfl = prefixLength(text, prefix, status); in stripPrefix()
1276 NFRule::prefixLength(const UnicodeString& str, const UnicodeString& prefix, UErrorCode& status) con… in prefixLength() function in NFRule
1529 keyLen = prefixLength(temp, key, status); in findTextLenient()
Dnfrule.h101 …int32_t prefixLength(const UnicodeString& str, const UnicodeString& prefix, UErrorCode& status) co…
Ddtitvfmt.cpp1096 int8_t prefixLength = UPRV_LENGTHOF(gLaterFirstPrefix); in setIntervalPattern() local
1099 if ( intervalPattern.startsWith(gLaterFirstPrefix, prefixLength) ) { in setIntervalPattern()
1101 intervalPattern.extract(prefixLength, in setIntervalPattern()
1102 intervalPattern.length() - prefixLength, in setIntervalPattern()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/
DRbnfScannerProviderImpl.java154 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/
DRbnfScannerProviderImpl.java156 keyLen = prefixLength(str.substring(p), key); in findText()
221 public int prefixLength(String str, String prefix) { in prefixLength() method in RbnfScannerProviderImpl.RbnfLenientScannerImpl
/external/vogar/src/vogar/target/
DClassPathScanner.java123 int prefixLength = pathPrefix.length(); in find() local
129 int index = entryName.indexOf('/', prefixLength); in find()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/configuration/org.eclipse.osgi/bundles/59/1/.cp/
DjdtCompilerAdapter.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/eclipse/ org/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.core.filesystem_1.3.1.R36x_v20100727-0745.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/icu/icu4c/source/test/intltest/
Dapicoll.cpp1255 for (int32_t prefixLength = 0; prefixLength < maxPrefixLength; ++prefixLength) { in TestSortKeyOverflow() local
1262 … errln("getCollationKey(prefix[%d]+i_and_phi) failed to write proper sort key", prefixLength); in TestSortKeyOverflow()
1266 s.insert(prefixLength, (UChar)0x61); in TestSortKeyOverflow()

123