/external/owasp/sanitizer/src/main/org/owasp/html/ |
H A D | HtmlPolicyBuilder.java | 656 * matching the pattern. 660 public AttributeBuilder matching(final Pattern pattern) { argument 664 return pattern.matcher(value).matches() ? value : null;
|
/external/pcre/dist/ |
H A D | pcrecpp.h | 61 // supplied pattern exactly. 113 // NULL (the corresponding matched sub-pattern is not copied) 115 // CAVEAT: An optional sub-pattern that does not exist in the matched 131 // You can use the "PartialMatch" operation when you want the pattern 146 // By default, pattern and text are plain text, one byte per character. 147 // The UTF8 flag, passed to the constructor, causes both pattern 150 // is likelier to be UTF-8 than the pattern, but the match returned 194 // "?:" modifier within the pattern itself. e.g. (?:ab|cd) does not 230 // RE(pattern, RE_Options(PCRE_CASELESS|PCRE_MULTILINE)).PartialMatch(str); 233 // RE(pattern, 524 const string& pattern() const { return pattern_; } function in class:pcrecpp::RE [all...] |
/external/regex-re2/util/ |
H A D | pcre.h | 36 // supplied pattern exactly. 47 // By default, pattern and text are plain text, one byte per character. 48 // The UTF8 flag, passed to the constructor, causes both pattern 51 // is likelier to be UTF-8 than the pattern, but the match returned 88 // You can use the "PartialMatch" operation when you want the pattern 106 // object from the pattern and use it multiple times. If you do so, 109 // Example: precompile pattern for faster matching: 110 // PCRE pattern("h.*o"); 112 // if (PCRE::FullMatch(str, pattern)) ...; 223 PCRE(const char* pattern); 235 const string& pattern() const { return pattern_; } function in class:re2::PCRE [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowTime.java | 288 * Initialize our pattern translation 398 * Search the provided pattern and get the C standard 402 * @param pattern The pattern to search 403 * @return The modified pattern 405 protected String convertDateFormat(String pattern) { argument 412 for (int i = 0; i < pattern.length(); i++) { 413 char c = pattern.charAt(i); 424 inside = translateCommand(buf, pattern, i, inside); 467 * @param pattern Th 472 translateCommand(StringBuffer buf, String pattern, int index, boolean oldInside) argument [all...] |
/external/skia/experimental/PdfViewer/ |
H A D | SkPdfGraphicsState.h | 68 void setPatternColorSpace(SkPdfNativeObject* pattern) { argument 71 fPattern = pattern; 174 dash pattern array and A description of the dash pattern to be used when paths are
|
/external/skia/src/fonts/ |
H A D | SkFontMgr_fontconfig.cpp | 70 static int get_int(FcPattern* pattern, const char field[]) { argument 73 if (FcPatternGetInteger(pattern, field, 0, &value) != FcResultMatch) { 79 static const char* get_name(FcPattern* pattern, const char field[]) { argument 82 if (FcPatternGetString(pattern, field, 0, (FcChar8**)&name) != FcResultMatch) { 88 static bool valid_pattern(FcPattern* pattern) { argument 91 if (FcPatternGetBool(pattern, FC_SCALABLE, 0, &is_scalable) != FcResultMatch || !is_scalable) { 96 const char* c_filename = get_name(pattern, FC_FILE); 106 static bool match_name(FcPattern* pattern, const char family_name[]) { argument 107 return !strcasecmp(family_name, get_name(pattern, FC_FAMILY)); 148 SkTypeface* matchStyle(const SkFontStyle& pattern) overrid 244 FcPattern* pattern = FcPatternCreate(); variable 251 FcDefaultSubstitute(pattern); variable 258 FcPatternDestroy(pattern); variable 265 FcPatternDestroy(pattern); variable 270 FcPatternDestroy(pattern); variable [all...] |
/external/skia/src/ports/ |
H A D | SkFontMgr_fontconfig.cpp | 120 static int get_int(FcPattern* pattern, const char object[], int missing) { argument 122 if (FcPatternGetInteger(pattern, object, 0, &value) != FcResultMatch) { 128 static const char* get_string(FcPattern* pattern, const char object[], const char* missing = "") { argument 130 if (FcPatternGetString(pattern, object, 0, &value) != FcResultMatch) { 142 * FcResult FcPatternIsWeak(pattern, object, id, FcBool* isWeak); 150 static SkWeakReturn is_weak(FcPattern* pattern, const char object[], int id) { argument 155 // Create a copy of the pattern with only the value 'pattern'['object'['id']] in it. 156 // Internally, FontConfig pattern objects are linked lists, so faster to remove from head. 158 SkAutoFcPattern minimal(FcPatternFilter(pattern, requestedObjectOnl 218 remove_weak(FcPattern* pattern, const char object[]) argument [all...] |
/external/webp/src/enc/ |
H A D | cost.c | 51 // For each given level, the following table gives the pattern of contexts to 336 int pattern = VP8LevelCodes[level - 1][0]; local 340 for (i = 2; pattern; ++i) { 341 if (pattern & 1) { 345 pattern >>= 1; 720 int pattern = VP8LevelCodes[v - 1][0]; local 722 for (i = 0; (pattern >>= 1) != 0; ++i) { 724 if (pattern & 1) Record(!!(bits & mask), s + 3 + i);
|
/external/deqp/executor/tools/ |
H A D | xeCommandLineExecutor.cpp | 158 static bool checkCasePathPatternMatch (const char* pattern, const char* casePath, bool isTestGroup) argument 166 char p = pattern[ptrnPos]; 174 if (checkCasePathPatternMatch(pattern+ptrnPos+1, casePath+next, isTestGroup))
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/db/ |
H A D | PerformanceResults.java | 37 * configurations and scenario pattern. 215 * Compute a SQL pattern from all stored configuration names. 228 if (refLength != config.length()) return null; // strings have not the same length => cannot find a pattern 234 if (j == 0) return null; // first char is already different => cannot find a pattern 451 * and scenario pattern. 459 * @param pattern The pattern of the concerned scenarios 469 public String[] readAll(String buildName, String[][] configs, String pattern, File dataDir, int threshold, IProgressMonitor monitor) { argument 472 this.scenarioPattern = pattern == null ? "%" : pattern; // [all...] |
/external/elfutils/src/libasm/ |
H A D | libasmP.h | 119 /* Fill pattern. */ 124 } *pattern; member in struct:AsmScn 257 /* The default fill pattern: one zero byte. */
|
/external/flac/libFLAC/ |
H A D | bitwriter.c | 483 FLAC__uint32 uval, pattern; local 495 pattern = 1 << parameter; /* the unary end bit */ 496 pattern |= (uval & ((1<<parameter)-1)); /* the binary LSBs */ 499 return FLAC__bitwriter_write_raw_uint32(bw, pattern, total_bits); 503 FLAC__bitwriter_write_raw_uint32(bw, pattern, interesting_bits); /* write the unary end bit and binary LSBs */ 615 unsigned pattern; 621 pattern = 1 << k; /* the unary end bit */ 622 pattern |= (uval & ((1u<<k)-1)); /* the binary LSBs */ 625 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, total_bits)) 633 if(!FLAC__bitwriter_write_raw_uint32(bw, pattern, [all...] |
/external/icu/icu4c/source/common/ |
H A D | simplepatternformatter.cpp | 24 // Handles parsing placeholders in the pattern string, e.g {4} or {35} 142 SimplePatternFormatter::SimplePatternFormatter(const UnicodeString &pattern) : argument 149 compile(pattern, status); 186 const UnicodeString &pattern, UErrorCode &status) { 190 const UChar *patternBuffer = pattern.getBuffer(); 191 int32_t patternLength = pattern.length(); 387 // If pattern starts with a unique placeholder and that placeholder 185 compile( const UnicodeString &pattern, UErrorCode &status) argument
|
/external/icu/icu4c/source/i18n/ |
H A D | choicfmt.cpp | 73 // Creates a ChoiceFormat instance based on the pattern. 121 // pattern and populates UParseError 223 ChoiceFormat::applyPattern(const UnicodeString& pattern, argument 226 msgPattern.parseChoiceStyle(pattern, NULL, status); 231 // Applies the pattern to this ChoiceFormat instance. 234 ChoiceFormat::applyPattern(const UnicodeString& pattern, argument 238 msgPattern.parseChoiceStyle(pattern, &parseError, status); 242 // Returns the input pattern string. 286 // Reconstruct the original input pattern. 337 // Apply the reconstructed pattern 423 findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number) argument 504 parseArgument( const MessagePattern &pattern, int32_t partIndex, const UnicodeString &source, ParsePosition &pos) argument 539 matchStringUntilLimitPart( const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex, const UnicodeString &source, int32_t sourceOffset) argument [all...] |
H A D | currpinf.cpp | 137 std::cout << "same pattern\n"; 200 const UnicodeString& pattern, 203 fPluralCountToCurrencyUnitPattern->put(pluralCount, new UnicodeString(pattern), status); 251 // Fall back to "latn" if num sys specific pattern isn't there. 268 // split the number style pattern into positive and negative 300 UnicodeString* pattern = new UnicodeString(patternChars, ptnLen); local 303 pattern->extract(0, pattern->length(), result_1, "UTF-8"); 304 std::cout << "pluralCount: " << pluralCount << "; pattern: " << result_1 << "\n"; 306 pattern 199 setCurrencyPluralPattern(const UnicodeString& pluralCount, const UnicodeString& pattern, UErrorCode& status) argument 323 fPluralCountToCurrencyUnitPattern->put(UnicodeString(pluralCount, -1, US_INV), pattern, status); local [all...] |
H A D | decimalformatpattern.cpp | 51 static void syntaxError(const UnicodeString& pattern, argument 61 pattern.extract(start,stop-start,parseError.preContext,0); 67 stop = ((pos+U_PARSE_CONTEXT_LEN)<=pattern.length()) ? (pos+(U_PARSE_CONTEXT_LEN-1)) : 68 pattern.length(); 69 pattern.extract(start,stop-start,parseError.postContext,0); 150 const UnicodeString& pattern, 171 int32_t patLen = pattern.length(); 172 // Part 0 is the positive pattern. Part 1, if present, is the negative 173 // pattern. 175 // The subpart ranges from 0 to 4: 0=pattern prope 149 applyPatternWithoutExpandAffix( const UnicodeString& pattern, DecimalFormatPattern& out, UParseError& parseError, UErrorCode& status) argument [all...] |
H A D | plurfmt.cpp | 280 const UnicodeString& pattern = msgPattern.getPatternString(); local 287 return appendTo.append(pattern, prevIndex, index - prevIndex); 290 appendTo.append(pattern, prevIndex, index - prevIndex); 296 appendTo.append(pattern, prevIndex, index - prevIndex); 300 MessageImpl::appendReducedApostrophes(pattern, prevIndex, index, appendTo); 396 int32_t PluralFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, argument 402 int32_t count=pattern.countParts(); 404 const MessagePattern::Part* part=&pattern.getPart(partIndex); 406 offset=pattern.getNumericValue(*part); 433 // until ARG_LIMIT or end of plural-only pattern 506 const UnicodeString& pattern = msgPattern.getPatternString(); local [all...] |
H A D | tridpars.cpp | 238 * @param id the pattern the parse 247 * @param canonID OUTPUT parameter. The pattern for the filter 249 * at the start, if dir is REVERSE. The pattern will be enclosed 290 UnicodeString pattern; local 291 id.extractBetween(pos, ppos.getIndex(), pattern); 299 // In the forward direction, append the pattern to the 305 pattern.insert(0, OPEN_REV); 306 pattern.append(CLOSE_REV); 308 canonID->append(pattern).append(ID_DELIM); 311 pattern [all...] |
H A D | umsg.cpp | 18 * Removed pattern parser. 60 const UChar *pattern, 73 actLen = u_vformatMessage(locale,pattern,patternLength,result,resultLength,ap,status); 82 const UChar *pattern, 91 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); 99 const UChar *pattern, 113 actLen = u_vformatMessageWithError(locale,pattern,patternLength,result,resultLength,parseError,ap,status); 122 const UChar *pattern, 132 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status); 145 const UChar *pattern, 59 u_formatMessage(const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UErrorCode *status, ...) argument 81 u_vformatMessage( const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, va_list ap, UErrorCode *status) argument 98 u_formatMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UParseError *parseError, UErrorCode *status, ...) argument 121 u_vformatMessageWithError( const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UParseError *parseError, va_list ap, UErrorCode *status) argument 144 u_parseMessage( const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, UErrorCode *status, ...) argument 164 u_vparseMessage(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UErrorCode *status) argument 180 u_parseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, UParseError *error, UErrorCode *status, ...) argument 201 u_vparseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UParseError *error, UErrorCode* status) argument 224 umsg_open( const UChar *pattern, int32_t patternLength, const char *locale, UParseError *parseError, UErrorCode *status) argument 311 umsg_applyPattern(UMessageFormat *fmt, const UChar* pattern, int32_t patternLength, UParseError* parseError, UErrorCode* status) argument 620 umsg_autoQuoteApostrophe(const UChar* pattern, int32_t patternLength, UChar* dest, int32_t destCapacity, UErrorCode* ec) argument [all...] |
H A D | unum.cpp | 39 const UChar* pattern, 65 const UnicodeString pat(pattern, patternLength); 91 const UnicodeString pat(pattern, patternLength); 743 const UChar *pattern, 759 int32_t len = (patternLength == -1 ? u_strlen(pattern) : patternLength); 760 const UnicodeString pat((UChar*)pattern, len, len); 38 unum_open( UNumberFormatStyle style, const UChar* pattern, int32_t patternLength, const char* locale, UParseError* parseErr, UErrorCode* status) argument 741 unum_applyPattern( UNumberFormat *fmt, UBool localized, const UChar *pattern, int32_t patternLength, UParseError *parseError, UErrorCode* status) argument
|
H A D | usrchimp.h | 168 struct UPattern pattern; member in struct:UStringSearch 201 * If the end character is composite and the pattern ce does not match the text 203 * it has passed the character. This is so that we can match pattern "a" with
|
H A D | windtfmt.cpp | 172 UnicodeString *pattern = fDateTimeMsg; local 182 pattern = getTimeDateFormat(&cal, &fLocale, status); 185 MessageFormat::format(*pattern, timeDateArray, 2, appendTo, status);
|
/external/icu/icu4c/source/test/cintltst/ |
H A D | cmsgtst.c | 256 log_err("umsg_parse could not parse the pattern. Error: %s.\n",u_errorName(ec)); 276 UChar pattern[100], expected[100]; local 286 u_uastrcpy(pattern, "There are {0} files on {1,date}"); 291 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); 297 u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); 310 log_verbose("\nTesting message format with another pattern test#2\n"); 311 u_uastrcpy(pattern, "The disk \"{0}\" contains {1,number,integer} file(s)"); 316 pattern, 376 UChar pattern[100]; local 477 UChar pattern[100]; local 572 UChar pattern[100]; local 667 UChar pattern[100]; local 737 UChar pattern[100]; local 827 UChar pattern[100]; local 927 CallParseMessage(const char* locale, UChar* pattern, int32_t patternLength, UChar* source, int32_t sourceLength, UErrorCode *status, ...) argument 939 UChar pattern[100]; local 982 UChar pattern[256]; local 1024 UChar pattern[256]; local 1102 UChar pattern[sizeof(patChars)]; local [all...] |
H A D | udatpg_test.c | 174 /* Test pattern == NULL */ 178 log_err("udatpg_getSkeleton failed in illegal argument - pattern is NULL.\n"); 193 /* Test pattern == NULL */ 197 log_err("udatpg_getBaseSkeleton failed in illegal argument - pattern is NULL.\n"); 251 UChar pattern[40], formatted[40]; local 264 /* Add a pattern */ 271 /* Add a redundant pattern */ 275 log_err("udatpg_addPattern() failed to find the duplicate pattern.\n"); 278 /* Test pattern == NULL */ 283 log_err("udatpg_addPattern failed in illegal argument - pattern i 418 UChar pattern[kTestOptionsPatLenMax]; local [all...] |
H A D | usettest.c | 483 /* use a pattern that generates both BMP and supplementary code points */ 484 U_STRING_DECL(pattern, "[:Cf:]", 6); 485 U_STRING_INIT(pattern, "[:Cf:]", 6); 488 set=uset_openPattern(pattern, -1, &errorCode); 520 /* The critical part of this test is that the following pattern 522 static const char *pattern = "[:ccc!=0:]"; local 524 int32_t len = u_unescape(pattern, buf, 256); 535 U_STRING_DECL(pattern, "[", 1); 536 U_STRING_INIT(pattern, "[", 1); 537 pat = uset_openPatternOptions(pattern, u_strle [all...] |