Home
last modified time | relevance | path

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

12

/external/emma/core/java12/com/vladium/util/
DWCMatcher.java32 int patternLength = 0, starCount = 0, questionCount = 0; in compile() local
44 chars [patternLength ++] = '*'; in compile()
51 chars [patternLength ++] = ch; in compile()
59 if (patternLength == 1) in compile()
62 return new EndsWithMatcher (chars, patternLength); in compile()
63 else if (chars [patternLength - 1] == '*') in compile()
64 return new StartsWithMatcher (chars, patternLength); in compile()
67 return new PatternMatcher (chars, patternLength); in compile()
180 StartsWithMatcher (final char [] pattern, final int patternLength) in StartsWithMatcher() argument
183 m_prefix = new String (pattern, 0, patternLength - 1); in StartsWithMatcher()
[all …]
/external/icu/icu4c/source/i18n/
Dumsg.cpp61 int32_t patternLength, in u_formatMessage() argument
73 actLen = u_vformatMessage(locale,pattern,patternLength,result,resultLength,ap,status); in u_formatMessage()
83 int32_t patternLength, in u_vformatMessage() argument
91 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); in u_vformatMessage()
100 int32_t patternLength, in u_formatMessageWithError() argument
113 …actLen = u_vformatMessageWithError(locale,pattern,patternLength,result,resultLength,parseError,ap,… in u_formatMessageWithError()
123 int32_t patternLength, in u_vformatMessageWithError() argument
132 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status); in u_vformatMessageWithError()
146 int32_t patternLength, in u_parseMessage() argument
158 u_vparseMessage(locale,pattern,patternLength,source,sourceLength,ap,status); in u_parseMessage()
[all …]
Dudatpg.cpp122 const UChar *pattern, int32_t patternLength, in udatpg_addPattern() argument
129 if(pattern==NULL && patternLength!=0) { in udatpg_addPattern()
133 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_addPattern()
218 const UChar *pattern, int32_t patternLength, in udatpg_replaceFieldTypes() argument
222 … return udatpg_replaceFieldTypesWithOptions(dtpg, pattern, patternLength, skeleton, skeletonLength, in udatpg_replaceFieldTypes()
229 const UChar *pattern, int32_t patternLength, in udatpg_replaceFieldTypesWithOptions() argument
237 if((pattern==NULL && patternLength!=0) || (skeleton==NULL && skeletonLength!=0)) { in udatpg_replaceFieldTypesWithOptions()
241 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_replaceFieldTypesWithOptions()
Dunum.cpp41 int32_t patternLength, in unum_open() argument
67 const UnicodeString pat(pattern, patternLength); in unum_open()
93 const UnicodeString pat(pattern, patternLength); in unum_open()
754 int32_t patternLength, in unum_applyPattern() argument
769 int32_t len = (patternLength == -1 ? u_strlen(pattern) : patternLength); in unum_applyPattern()
Dudat.cpp133 int32_t patternLength, in udat_open() argument
141 … (DateFormat*) (*gOpener)(timeStyle,dateStyle,locale,tzID,tzIDLength,pattern,patternLength,status); in udat_open()
158 UnicodeString pat((UBool)(patternLength == -1), pattern, patternLength); in udat_open()
570 int32_t patternLength) in udat_applyPattern() argument
572 const UnicodeString pat((UBool)(patternLength == -1), pattern, patternLength); in udat_applyPattern()
/external/icu/icu4c/source/common/
Duset_props.cpp31 uset_openPattern(const UChar* pattern, int32_t patternLength, in uset_openPattern() argument
34 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPattern()
50 uset_openPatternOptions(const UChar* pattern, int32_t patternLength, in uset_openPatternOptions() argument
54 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPatternOptions()
72 const UChar *pattern, int32_t patternLength, in uset_applyPattern() argument
90 UnicodeString pat(pattern, patternLength); in uset_applyPattern()
118 uset_resemblesPattern(const UChar *pattern, int32_t patternLength, in uset_resemblesPattern() argument
121 UnicodeString pat(pattern, patternLength); in uset_resemblesPattern()
Dsimplepatternformatter.cpp73 int32_t patternLength = pattern.length(); in compileMinMaxPlaceholders() local
79 for (int32_t i = 0; i < patternLength;) { in compileMinMaxPlaceholders()
82 if (i < patternLength && (c = patternBuffer[i]) == APOS) { in compileMinMaxPlaceholders()
104 if ((i + 1) < patternLength && in compileMinMaxPlaceholders()
113 if (i < patternLength && DIGIT_ONE <= (c = patternBuffer[i++]) && c <= DIGIT_NINE) { in compileMinMaxPlaceholders()
115 while (i < patternLength && in compileMinMaxPlaceholders()
/external/icu/icu4c/source/i18n/unicode/
Dumsg.h179 int32_t patternLength,
206 int32_t patternLength,
231 int32_t patternLength,
256 int32_t patternLength,
285 int32_t patternLength,
314 int32_t patternLength,
342 int32_t patternLength,
370 int32_t patternLength,
399 int32_t patternLength,
480 int32_t patternLength,
[all …]
Dudatpg.h335 const UChar *pattern, int32_t patternLength,
507 const UChar *pattern, int32_t patternLength,
544 const UChar *pattern, int32_t patternLength,
Dudat.h844 int32_t patternLength,
1354 int32_t patternLength);
1625 int32_t patternLength,
Dunum.h401 int32_t patternLength,
831 int32_t patternLength,
/external/pdfium/xfa/src/fxbarcode/pdf417/
DBC_PDF417Detector.cpp194 int32_t patternLength) { in findRowsWithPattern() argument
199 counters.SetSize(patternLength); in findRowsWithPattern()
203 patternLength, counters); in findRowsWithPattern()
208 pattern, patternLength, counters); in findRowsWithPattern()
235 pattern, patternLength, counters); in findRowsWithPattern()
270 int32_t patternLength, in findGuardPattern() argument
290 if (counterPosition == patternLength - 1) { in findGuardPattern()
298 for (int32_t l = 2, k = 0; l < patternLength; l++, k++) { in findGuardPattern()
301 counters.SetAt(patternLength - 2, 0); in findGuardPattern()
302 counters.SetAt(patternLength - 1, 0); in findGuardPattern()
[all …]
DBC_PDF417Detector.h53 int32_t patternLength);
60 int32_t patternLength,
/external/pdfium/xfa/src/fxbarcode/oned/
DBC_OneDimReader.cpp148 int32_t patternLength = pattern->GetSize(); in FindGuardPattern() local
150 counters.SetSize(patternLength); in FindGuardPattern()
167 if (counterPosition == patternLength - 1) { in FindGuardPattern()
177 for (int32_t y = 2; y < patternLength; y++) { in FindGuardPattern()
180 counters[patternLength - 2] = 0; in FindGuardPattern()
181 counters[patternLength - 1] = 0; in FindGuardPattern()
198 int32_t patternLength, in DecodeDigit() argument
204 int32_t max = patternLength; in DecodeDigit()
DBC_OnedCodaBarReader.cpp136 int32_t patternLength = counters.GetSize(); in FindAsteriskPattern() local
142 if (counterPosition == patternLength - 1) { in FindAsteriskPattern()
157 for (int32_t y = 2; y < patternLength; y++) { in FindAsteriskPattern()
160 counters[patternLength - 2] = 0; in FindAsteriskPattern()
161 counters[patternLength - 1] = 0; in FindAsteriskPattern()
DBC_OneDReader.cpp162 int32_t patternLength = 0; in PatternMatchVariance() local
165 patternLength += pattern[i]; in PatternMatchVariance()
167 if (total < patternLength) { in PatternMatchVariance()
171 int32_t unitBarWidth = (total << INTEGER_MATH_SHIFT) / patternLength; in PatternMatchVariance()
DBC_OnedCode39Reader.cpp140 int32_t patternLength = counters.GetSize(); in FindAsteriskPattern() local
146 if (counterPosition == patternLength - 1) { in FindAsteriskPattern()
161 for (int32_t y = 2; y < patternLength; y++) { in FindAsteriskPattern()
164 counters[patternLength - 2] = 0; in FindAsteriskPattern()
165 counters[patternLength - 1] = 0; in FindAsteriskPattern()
DBC_OnedCode128Reader.cpp100 int32_t patternLength = counters.GetSize(); in FindStartPattern() local
106 if (counterPosition == patternLength - 1) { in FindStartPattern()
133 for (int32_t y = 2; y < patternLength; y++) { in FindStartPattern()
136 counters[patternLength - 2] = 0; in FindStartPattern()
137 counters[patternLength - 1] = 0; in FindStartPattern()
DBC_OneDimReader.h48 int32_t patternLength,
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DSimplePatternFormatter.java116 int patternLength = pattern.length(); in compileToStringMinMaxPlaceholders() local
117 sb.ensureCapacity(patternLength); in compileToStringMinMaxPlaceholders()
123 for (int i = 0; i < patternLength;) { in compileToStringMinMaxPlaceholders()
126 if (i < patternLength && (c = pattern.charAt(i)) == '\'') { in compileToStringMinMaxPlaceholders()
147 if ((i + 1) < patternLength && in compileToStringMinMaxPlaceholders()
157 if (i < patternLength && '1' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxPlaceholders()
159 while (i < patternLength && '0' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxPlaceholders()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimplePatternFormatter.java114 int patternLength = pattern.length(); in compileToStringMinMaxPlaceholders() local
115 sb.ensureCapacity(patternLength); in compileToStringMinMaxPlaceholders()
121 for (int i = 0; i < patternLength;) { in compileToStringMinMaxPlaceholders()
124 if (i < patternLength && (c = pattern.charAt(i)) == '\'') { in compileToStringMinMaxPlaceholders()
145 if ((i + 1) < patternLength && in compileToStringMinMaxPlaceholders()
155 if (i < patternLength && '1' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxPlaceholders()
157 while (i < patternLength && '0' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxPlaceholders()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
DTextFormatter.java50 int patternLength = pattern.length(); in format() local
51 for (int i = 0; i < patternLength; ++i) { in format()
56 if (i + 1 < patternLength && pattern.charAt(i + 1) == '{') { in format()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/
DTextFormatter.java119 int patternLength = pattern.length(); in simpleFormat() local
120 for (int i = 0; i < patternLength; ++i) { in simpleFormat()
125 if (i + 1 < patternLength && pattern.charAt(i + 1) == '{') { in simpleFormat()
/external/icu/icu4c/source/common/unicode/
Duset.h281 uset_openPattern(const UChar* pattern, int32_t patternLength,
296 uset_openPatternOptions(const UChar* pattern, int32_t patternLength,
418 const UChar *pattern, int32_t patternLength,
499 uset_resemblesPattern(const UChar *pattern, int32_t patternLength,
/external/icu/icu4c/source/test/cintltst/
Dcmsgtst.c184 int32_t patternLength = u_strlen(testCasePatterns[0]); in MessageFormatTest() local
186 UMessageFormat formatter = umsg_open(testCasePatterns[0],patternLength,"en_US",NULL,&ec); in MessageFormatTest()
200 patternLength = u_strlen(testCasePatterns[i]); in MessageFormatTest()
202 umsg_applyPattern(formatter,testCasePatterns[i],patternLength,&parseError,&ec); in MessageFormatTest()
867 static int32_t CallFormatMessage(const char* locale, UChar* testCasePattern, int32_t patternLength, in CallFormatMessage() argument
873 … len = u_vformatMessage(locale, testCasePattern, patternLength, result, resultLength, ap, status); in CallFormatMessage()
927 static void CallParseMessage(const char* locale, UChar* pattern, int32_t patternLength, in CallParseMessage() argument
932 u_vparseMessage(locale, pattern, patternLength, source, sourceLength, ap, status); in CallParseMessage()

12