Home
last modified time | relevance | path

Searched refs:patternLength (Results 1 – 25 of 38) 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.cpp63 int32_t patternLength, in u_formatMessage() argument
75 actLen = u_vformatMessage(locale,pattern,patternLength,result,resultLength,ap,status); in u_formatMessage()
85 int32_t patternLength, in u_vformatMessage() argument
93 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); in u_vformatMessage()
102 int32_t patternLength, in u_formatMessageWithError() argument
115 …actLen = u_vformatMessageWithError(locale,pattern,patternLength,result,resultLength,parseError,ap,… in u_formatMessageWithError()
125 int32_t patternLength, in u_vformatMessageWithError() argument
134 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status); in u_vformatMessageWithError()
148 int32_t patternLength, in u_parseMessage() argument
160 u_vparseMessage(locale,pattern,patternLength,source,sourceLength,ap,status); in u_parseMessage()
[all …]
Dudatpg.cpp124 const UChar *pattern, int32_t patternLength, in udatpg_addPattern() argument
131 if(pattern==NULL && patternLength!=0) { in udatpg_addPattern()
135 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_addPattern()
239 const UChar *pattern, int32_t patternLength, in udatpg_replaceFieldTypes() argument
243 … return udatpg_replaceFieldTypesWithOptions(dtpg, pattern, patternLength, skeleton, skeletonLength, in udatpg_replaceFieldTypes()
250 const UChar *pattern, int32_t patternLength, in udatpg_replaceFieldTypesWithOptions() argument
258 if((pattern==NULL && patternLength!=0) || (skeleton==NULL && skeletonLength!=0)) { in udatpg_replaceFieldTypesWithOptions()
262 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_replaceFieldTypesWithOptions()
Dnumber_compact.cpp41 int32_t countZeros(const UChar *patternString, int32_t patternLength) { in countZeros() argument
45 for (int32_t i = 0; i < patternLength; i++) { in countZeros()
180 int32_t patternLength; in put() local
181 const UChar *patternString = value.getString(patternLength, status); in put()
185 patternLength = 0; in put()
194 int32_t numZeros = countZeros(patternString, patternLength); in put()
Dunum.cpp43 int32_t patternLength, in unum_open() argument
69 const UnicodeString pat(pattern, patternLength); in unum_open()
95 const UnicodeString pat(pattern, patternLength); in unum_open()
830 int32_t patternLength, in unum_applyPattern() argument
845 int32_t len = (patternLength == -1 ? u_strlen(pattern) : patternLength); in unum_applyPattern()
Dudat.cpp135 int32_t patternLength, in udat_open() argument
143 … (DateFormat*) (*gOpener)(timeStyle,dateStyle,locale,tzID,tzIDLength,pattern,patternLength,status); in udat_open()
160 UnicodeString pat((UBool)(patternLength == -1), pattern, patternLength); in udat_open()
572 int32_t patternLength) in udat_applyPattern() argument
574 const UnicodeString pat((UBool)(patternLength == -1), pattern, patternLength); in udat_applyPattern()
/external/icu/icu4c/source/common/
Duset_props.cpp33 uset_openPattern(const UChar* pattern, int32_t patternLength, in uset_openPattern() argument
36 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPattern()
52 uset_openPatternOptions(const UChar* pattern, int32_t patternLength, in uset_openPatternOptions() argument
56 UnicodeString pat(patternLength==-1, pattern, patternLength); in uset_openPatternOptions()
74 const UChar *pattern, int32_t patternLength, in uset_applyPattern() argument
92 UnicodeString pat(pattern, patternLength); in uset_applyPattern()
120 uset_resemblesPattern(const UChar *pattern, int32_t patternLength, in uset_resemblesPattern() argument
123 UnicodeString pat(pattern, patternLength); in uset_resemblesPattern()
Dsimpleformatter.cpp74 int32_t patternLength = pattern.length(); in applyPatternMinMaxArguments() local
80 for (int32_t i = 0; i < patternLength;) { in applyPatternMinMaxArguments()
83 if (i < patternLength && (c = patternBuffer[i]) == APOS) { in applyPatternMinMaxArguments()
105 if ((i + 1) < patternLength && in applyPatternMinMaxArguments()
114 if (i < patternLength && DIGIT_ONE <= (c = patternBuffer[i++]) && c <= DIGIT_NINE) { in applyPatternMinMaxArguments()
116 while (i < patternLength && in applyPatternMinMaxArguments()
/external/icu/libandroidicu/include/unicode/
Dumsg.h181 int32_t patternLength,
208 int32_t patternLength,
233 int32_t patternLength,
258 int32_t patternLength,
287 int32_t patternLength,
316 int32_t patternLength,
344 int32_t patternLength,
372 int32_t patternLength,
401 int32_t patternLength,
482 int32_t patternLength,
[all …]
Duset.h289 uset_openPattern(const UChar* pattern, int32_t patternLength,
304 uset_openPatternOptions(const UChar* pattern, int32_t patternLength,
426 const UChar *pattern, int32_t patternLength,
507 uset_resemblesPattern(const UChar *pattern, int32_t patternLength,
Dudatpg.h363 const UChar *pattern, int32_t patternLength,
571 const UChar *pattern, int32_t patternLength,
608 const UChar *pattern, int32_t patternLength,
Dudat.h859 int32_t patternLength,
1368 int32_t patternLength);
1639 int32_t patternLength,
Dunum.h428 int32_t patternLength,
909 int32_t patternLength,
/external/icu/icu4c/source/i18n/unicode/
Dumsg.h181 int32_t patternLength,
208 int32_t patternLength,
233 int32_t patternLength,
258 int32_t patternLength,
287 int32_t patternLength,
316 int32_t patternLength,
344 int32_t patternLength,
372 int32_t patternLength,
401 int32_t patternLength,
482 int32_t patternLength,
[all …]
Dudatpg.h363 const UChar *pattern, int32_t patternLength,
571 const UChar *pattern, int32_t patternLength,
608 const UChar *pattern, int32_t patternLength,
Dudat.h859 int32_t patternLength,
1368 int32_t patternLength);
1639 int32_t patternLength,
Dunum.h428 int32_t patternLength,
909 int32_t patternLength,
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DSimpleFormatterImpl.java87 int patternLength = pattern.length(); in compileToStringMinMaxArguments() local
88 sb.ensureCapacity(patternLength); in compileToStringMinMaxArguments()
94 for (int i = 0; i < patternLength;) { in compileToStringMinMaxArguments()
97 if (i < patternLength && (c = pattern.charAt(i)) == '\'') { in compileToStringMinMaxArguments()
118 if ((i + 1) < patternLength && in compileToStringMinMaxArguments()
128 if (i < patternLength && '1' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments()
130 while (i < patternLength && '0' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSimpleFormatterImpl.java85 int patternLength = pattern.length(); in compileToStringMinMaxArguments() local
86 sb.ensureCapacity(patternLength); in compileToStringMinMaxArguments()
92 for (int i = 0; i < patternLength;) { in compileToStringMinMaxArguments()
95 if (i < patternLength && (c = pattern.charAt(i)) == '\'') { in compileToStringMinMaxArguments()
116 if ((i + 1) < patternLength && in compileToStringMinMaxArguments()
126 if (i < patternLength && '1' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments()
128 while (i < patternLength && '0' <= (c = pattern.charAt(i++)) && c <= '9') { in compileToStringMinMaxArguments()
/external/icu/icu4c/source/common/unicode/
Duset.h289 uset_openPattern(const UChar* pattern, int32_t patternLength,
304 uset_openPatternOptions(const UChar* pattern, int32_t patternLength,
426 const UChar *pattern, int32_t patternLength,
507 uset_resemblesPattern(const UChar *pattern, int32_t patternLength,
/external/icu/libandroidicu/static_shim/
Dshim.cpp153 int32_t u_formatMessage_android(const char * locale, const UChar * pattern, int32_t patternLength, … in u_formatMessage_android() argument
156 …int32_t ret = u_vformatMessage(locale, pattern, patternLength, result, resultLength, args, status); in u_formatMessage_android()
160 …WithError_android(const char * locale, const UChar * pattern, int32_t patternLength, UChar * resul… in u_formatMessageWithError_android() argument
163 …int32_t ret = u_vformatMessageWithError(locale, pattern, patternLength, result, resultLength, pars… in u_formatMessageWithError_android()
332 void u_parseMessage_android(const char * locale, const UChar * pattern, int32_t patternLength, cons… in u_parseMessage_android() argument
335 u_vparseMessage(locale, pattern, patternLength, source, sourceLength, args, status); in u_parseMessage_android()
339 …WithError_android(const char * locale, const UChar * pattern, int32_t patternLength, const UChar *… in u_parseMessageWithError_android() argument
342 …u_vparseMessageWithError(locale, pattern, patternLength, source, sourceLength, args, parseError, s… in u_parseMessageWithError_android()
517 int32_t u_vformatMessage_android(const char * locale, const UChar * pattern, int32_t patternLength,… in u_vformatMessage_android() argument
518 return u_vformatMessage(locale, pattern, patternLength, result, resultLength, ap, status); in u_vformatMessage_android()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcmsgtst.c186 int32_t patternLength = u_strlen(testCasePatterns[0]); in MessageFormatTest() local
188 UMessageFormat formatter = umsg_open(testCasePatterns[0],patternLength,"en_US",NULL,&ec); in MessageFormatTest()
203 patternLength = ((i & 1) == 0) ? u_strlen(testCasePatterns[i]) : -1; in MessageFormatTest()
205 umsg_applyPattern(formatter,testCasePatterns[i],patternLength,&parseError,&ec); in MessageFormatTest()
874 static int32_t CallFormatMessage(const char* locale, UChar* testCasePattern, int32_t patternLength, in CallFormatMessage() argument
880 … len = u_vformatMessage(locale, testCasePattern, patternLength, result, resultLength, ap, status); in CallFormatMessage()
934 static void CallParseMessage(const char* locale, UChar* pattern, int32_t patternLength, in CallParseMessage() argument
939 u_vparseMessage(locale, pattern, patternLength, source, sourceLength, ap, status); in CallParseMessage()
/external/jsoncpp/src/lib_json/
Djson_reader.cpp322 bool Reader::match(Location pattern, int patternLength) { in match() argument
323 if (end_ - current_ < patternLength) in match()
325 int index = patternLength; in match()
329 current_ += patternLength; in match()
/external/pdfium/fxbarcode/oned/
DBC_OneDimWriter.cpp112 int32_t patternLength, in AppendPattern() argument
121 for (int32_t i = 0; i < patternLength; i++) { in AppendPattern()
DBC_OneDimWriter.h79 int32_t patternLength,

12