Home
last modified time | relevance | path

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

12

/external/syzkaller/pkg/ifuzz/
Ddecode.go31 prefixLen := 0
48 prefixLen = 3
50 prefixLen = 2
53 if len(text) < prefixLen {
56 if prefixLen == 3 {
59 text = text[prefixLen:]
89 prefixLen++
92 decodedPrefixes = decodedPrefixes[:prefixLen]
201 return prefixLen + len(text) - len(text1), nil
/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/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMutablePatternModifier.java284 int prefixLen = insertPrefix(output, leftIndex); in apply() local
285 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
289 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
293 prefixLen, in apply()
294 rightIndex + prefixLen + overwriteLen, in apply()
297 return prefixLen + overwriteLen + suffixLen; in apply()
DCurrencySpacingEnabledModifier.java99 int prefixLen, in applyCurrencySpacing() argument
104 boolean hasPrefix = (prefixLen > 0); in applyCurrencySpacing()
106 boolean hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string in applyCurrencySpacing()
108 length += applyCurrencySpacingAffix(output, prefixStart + prefixLen, PREFIX, symbols); in applyCurrencySpacing()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMutablePatternModifier.java289 int prefixLen = insertPrefix(output, leftIndex); in apply() local
290 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
294 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
298 prefixLen, in apply()
299 rightIndex + prefixLen + overwriteLen, in apply()
302 return prefixLen + overwriteLen + suffixLen; in apply()
DCurrencySpacingEnabledModifier.java101 int prefixLen, in applyCurrencySpacing() argument
106 boolean hasPrefix = (prefixLen > 0); in applyCurrencySpacing()
108 boolean hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string in applyCurrencySpacing()
110 length += applyCurrencySpacingAffix(output, prefixStart + prefixLen, PREFIX, symbols); in applyCurrencySpacing()
/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/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/icu4c/source/i18n/
Dnumber_patternmodifier.cpp181 int32_t prefixLen = nonConstThis->insertPrefix(output, leftIndex, status); in apply() local
182 int32_t suffixLen = nonConstThis->insertSuffix(output, rightIndex + prefixLen, status); in apply()
187 leftIndex + prefixLen, in apply()
188 rightIndex + prefixLen, in apply()
198 prefixLen, in apply()
199 rightIndex + overwriteLen + prefixLen, in apply()
203 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.cpp401 int32_t prefixLen, int32_t suffixStart, in applyCurrencySpacing() argument
406 bool hasPrefix = (prefixLen > 0); in applyCurrencySpacing()
408 bool hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string in applyCurrencySpacing()
410 … 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()
/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/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/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/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/skia/src/core/
DSkSpan.h39 constexpr SkSpan<T> first(size_t prefixLen) { return SkSpan<T>{fPtr, prefixLen}; } in first() argument
/external/protobuf/objectivec/
DGPBDescriptor.m48 const size_t prefixLen = prefix != NULL ? strlen(prefix) : 0;
52 prefixLen + middleLen + suffixLen + 1; // include space for null on end.
58 memcpy(buffer, prefix, prefixLen);
59 memcpy(buffer + prefixLen, middle, middleLen);
60 buffer[prefixLen] = (char)toupper(buffer[prefixLen]);
65 memcpy(buffer + prefixLen + middleLen, suffix, suffixLen);
723 NSUInteger prefixLen = name_.length + 1;
724 if ((name.length <= prefixLen) || ![name hasPrefix:name_] ||
725 ([name characterAtIndex:prefixLen - 1] != '_')) {
731 nameAsCStr += prefixLen;
/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/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/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