Home
last modified time | relevance | path

Searched refs:prefixLen (Results 1 – 25 of 32) sorted by relevance

12

/external/icu/icu4c/source/test/cintltst/
Dnfsprep.c177 const char **prefix, int32_t *prefixLen, in getPrefixSuffix() argument
197 *prefixLen = i; in getPrefixSuffix()
200 …if((findStringIndex(special_prefixes,UPRV_LENGTHOF(special_prefixes), *prefix, *prefixLen-1) != -1… in getPrefixSuffix()
214 int32_t prefixLen=0, suffixLen=0; in nfs4_mixed_prepare() local
233 getPrefixSuffix(src, srcLength, &prefix, &prefixLen, &suffix, &suffixLen, status); in nfs4_mixed_prepare()
236 … pLen = nfs4_prepare(prefix, prefixLen, p, pCapacity, NFS4_MIXED_PREP_PREFIX, parseError, status); in nfs4_mixed_prepare()
244 pLen = nfs4_prepare(prefix, prefixLen, p, pLen, NFS4_MIXED_PREP_PREFIX, parseError, status); in nfs4_mixed_prepare()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMutablePatternModifier.java290 int prefixLen = insertPrefix(output, leftIndex); in apply() local
291 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
295 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
299 prefixLen, in apply()
300 rightIndex + prefixLen + overwriteLen, in apply()
303 return prefixLen + overwriteLen + suffixLen; in apply()
DCurrencySpacingEnabledModifier.java104 int prefixLen, in applyCurrencySpacing() argument
109 boolean hasPrefix = (prefixLen > 0); in applyCurrencySpacing()
111 boolean hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string in applyCurrencySpacing()
113 length += applyCurrencySpacingAffix(output, prefixStart + prefixLen, PREFIX, symbols); in applyCurrencySpacing()
/external/cldr/tools/java/org/unicode/cldr/util/
DStringRange.java54 int prefixLen = 0; in compact() local
57 if (s.regionMatches(0, start, 0, prefixLen)) { in compact()
58 int currentCp = s.codePointAt(prefixLen); in compact()
59 … if (currentCp == 1 + lastCp && s.length() == prefixLen + Character.charCount(currentCp)) { in compact()
68 : end.substring(prefixLen, end.length())); in compact()
74 prefixLen = s.length() - Character.charCount(lastCp); in compact()
78 : end.substring(prefixLen, end.length())); in compact()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DStringRange.java61 int prefixLen = 0; in compact() local
64 if (s.regionMatches(0, start, 0, prefixLen)) { in compact()
65 int currentCp = s.codePointAt(prefixLen); in compact()
66 … if (currentCp == 1+lastCp && s.length() == prefixLen + Character.charCount(currentCp)) { in compact()
75 : end.substring(prefixLen, end.length())); in compact()
81 prefixLen = s.length() - Character.charCount(lastCp); in compact()
85 : end.substring(prefixLen, end.length())); in compact()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DStringRange.java68 int prefixLen = 0; in compact() local
71 if (s.regionMatches(0, start, 0, prefixLen)) { in compact()
72 int currentCp = s.codePointAt(prefixLen); in compact()
73 … if (currentCp == 1+lastCp && s.length() == prefixLen + Character.charCount(currentCp)) { in compact()
82 : end.substring(prefixLen, end.length())); in compact()
88 prefixLen = s.length() - Character.charCount(lastCp); in compact()
92 : end.substring(prefixLen, end.length())); in compact()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMutablePatternModifier.java285 int prefixLen = insertPrefix(output, leftIndex); in apply() local
286 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
290 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
294 prefixLen, in apply()
295 rightIndex + prefixLen + overwriteLen, in apply()
298 return prefixLen + overwriteLen + suffixLen; in apply()
DCurrencySpacingEnabledModifier.java102 int prefixLen, in applyCurrencySpacing() argument
107 boolean hasPrefix = (prefixLen > 0); in applyCurrencySpacing()
109 boolean hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string in applyCurrencySpacing()
111 length += applyCurrencySpacingAffix(output, prefixStart + prefixLen, PREFIX, symbols); in applyCurrencySpacing()
/external/skia/src/core/
DSkSpan.h42 constexpr SkSpan<T> first(size_t prefixLen) const { in first() argument
43 SkASSERT(prefixLen <= this->size()); in first()
44 if (prefixLen == 0) { return SkSpan{}; } in first()
45 return SkSpan{fPtr, prefixLen}; in first()
/external/icu/icu4c/source/i18n/
Dnumber_patternmodifier.cpp178 int32_t prefixLen = nonConstThis->insertPrefix(output, leftIndex, status); in apply() local
179 int32_t suffixLen = nonConstThis->insertSuffix(output, rightIndex + prefixLen, status); in apply()
184 leftIndex + prefixLen, in apply()
185 rightIndex + prefixLen, in apply()
195 prefixLen, in apply()
196 rightIndex + overwriteLen + prefixLen, in apply()
200 return prefixLen + overwriteLen + suffixLen; in apply()
Dunesctrn.cpp187 int32_t prefixLen = spec[ipat++]; in handleTransliterate() local
198 for (i=0; i<prefixLen; ++i) { in handleTransliterate()
255 if (c != spec[ipat + prefixLen + i]) { in handleTransliterate()
275 ipat += prefixLen + suffixLen; in handleTransliterate()
Dnumber_modifiers.cpp399 int32_t prefixLen, int32_t suffixStart, in applyCurrencySpacing() argument
404 bool hasPrefix = (prefixLen > 0); in applyCurrencySpacing()
406 bool hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string in applyCurrencySpacing()
408 … length += applyCurrencySpacingAffix(output, prefixStart + prefixLen, PREFIX, symbols, status); in applyCurrencySpacing()
Desctrn.cpp141 int32_t prefixLen = prefix.length(); in handleTransliterate() local
161 buf.truncate(prefixLen); in handleTransliterate()
Dnumber_modifiers.h202 applyCurrencySpacing(FormattedStringBuilder &output, int32_t prefixStart, int32_t prefixLen,
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DUnescapeTransliterator.java162 int prefixLen = spec[ipat++]; in handleTransliterate() local
173 for (i=0; i<prefixLen; ++i) { in handleTransliterate()
230 if (c != spec[ipat + prefixLen + i]) { in handleTransliterate()
250 ipat += prefixLen + suffixLen; in handleTransliterate()
DEscapeTransliterator.java184 int prefixLen = prefix.length(); in handleTransliterate() local
204 buf.setLength(prefixLen); in handleTransliterate()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DUnescapeTransliterator.java163 int prefixLen = spec[ipat++]; in handleTransliterate() local
174 for (i=0; i<prefixLen; ++i) { in handleTransliterate()
231 if (c != spec[ipat + prefixLen + i]) { in handleTransliterate()
251 ipat += prefixLen + suffixLen; in handleTransliterate()
DEscapeTransliterator.java185 int prefixLen = prefix.length(); in handleTransliterate() local
205 buf.setLength(prefixLen); in handleTransliterate()
/external/fonttools/Lib/fontTools/ttLib/tables/
DM_E_T_A_.py237 prefixLen = 0
239 prefixLen = 3
241 prefixLen = 7
242 if prefixLen:
243 i = i+prefixLen
/external/icu/icu4c/source/test/intltest/
Dtsdtfmsy.h39 …UBool UnicodeStringsArePrefixes(int32_t count, int32_t prefixLen, const UnicodeString *prefixArray…
Dtsdtfmsy.cpp132 UBool IntlTestDateFormatSymbols::UnicodeStringsArePrefixes(int32_t count, int32_t prefixLen, const … in UnicodeStringsArePrefixes() argument
136 if (baseArray[i].compare(0, prefixLen, prefixArray[i]) != 0) { in UnicodeStringsArePrefixes()
/external/owasp/sanitizer/src/main/org/owasp/html/
DCssSchema.java143 int prefixLen = 0; in stripVendorPrefix() local
147 prefixLen = 4; in stripVendorPrefix()
149 prefixLen = 5; in stripVendorPrefix()
153 if (cssKeyword.startsWith("-o-")) { prefixLen = 3; } in stripVendorPrefix()
156 if (cssKeyword.startsWith("-webkit-")) { prefixLen = 8; } in stripVendorPrefix()
160 return prefixLen == 0 ? null : cssKeyword.substring(prefixLen); in stripVendorPrefix()
/external/protobuf/objectivec/
DGPBDescriptor.m56 const size_t prefixLen = prefix != NULL ? strlen(prefix) : 0;
60 prefixLen + middleLen + suffixLen + 1; // include space for null on end.
66 memcpy(buffer, prefix, prefixLen);
67 memcpy(buffer + prefixLen, middle, middleLen);
68 buffer[prefixLen] = (char)toupper(buffer[prefixLen]);
73 memcpy(buffer + prefixLen + middleLen, suffix, suffixLen);
844 NSUInteger prefixLen = name_.length + 1;
845 if ((name.length <= prefixLen) || ![name hasPrefix:name_] ||
846 ([name characterAtIndex:prefixLen - 1] != '_')) {
852 nameAsCStr += prefixLen;
/external/deqp/scripts/
Dtestset.py134 prefixLen = len(prefix)
136 if case.name[:prefixLen] == prefix:
/external/boringssl/src/util/
Dmake_errors.go275 prefixLen := len(lib + "_R_")
284 fmt.Fprintf(w, "%s,%d,%s\n", lib, assignments[key], key[prefixLen:])

12