Home
last modified time | relevance | path

Searched refs:patternString (Results 1 – 24 of 24) sorted by relevance

/external/webkit/Source/JavaScriptCore/runtime/
DRegExpCache.cpp34 PassRefPtr<RegExp> RegExpCache::lookupOrCreate(const UString& patternString, RegExpFlags flags) in lookupOrCreate() argument
36 if (patternString.length() < maxCacheablePatternLength) { in lookupOrCreate()
37 … pair<RegExpCacheMap::iterator, bool> result = m_cacheMap.add(RegExpKey(flags, patternString), 0); in lookupOrCreate()
41 return create(patternString, flags, result.first); in lookupOrCreate()
43 return create(patternString, flags, m_cacheMap.end()); in lookupOrCreate()
46 PassRefPtr<RegExp> RegExpCache::create(const UString& patternString, RegExpFlags flags, RegExpCache… in create() argument
48 RefPtr<RegExp> regExp = RegExp::create(m_globalData, patternString, flags); in create()
50 if (patternString.length() >= maxCacheablePatternLength) in create()
53 RegExpKey key = RegExpKey(flags, patternString); in create()
66 patternKeyArray[m_nextKeyToEvict].pattern = patternString.impl(); in create()
DRegExpCache.h44 PassRefPtr<RegExp> lookupOrCreate(const UString& patternString, RegExpFlags);
45 PassRefPtr<RegExp> create(const UString& patternString, RegExpFlags, RegExpCacheMap::iterator);
DRegExp.cpp76 inline RegExp::RegExp(JSGlobalData* globalData, const UString& patternString, RegExpFlags flags) in RegExp() argument
77 : m_patternString(patternString) in RegExp()
94 PassRefPtr<RegExp> RegExp::create(JSGlobalData* globalData, const UString& patternString, RegExpFla… in create() argument
96 RefPtr<RegExp> res = adoptRef(new RegExp(globalData, patternString, flags)); in create()
DStringPrototype.cpp444 UString patternString = pattern.toString(exec); in stringProtoFuncReplace() local
446 …if (patternString.length() == 1 && callType == CallTypeNone && replacementString.find('$', 0) == n… in stringProtoFuncReplace()
447 … return JSValue::encode(sourceVal->replaceCharacter(exec, patternString[0], replacementString)); in stringProtoFuncReplace()
450 size_t matchPos = source.find(patternString); in stringProtoFuncReplace()
455 int matchLen = patternString.length(); in stringProtoFuncReplace()
/external/icu4c/i18n/
Dudatpg.cpp96 UnicodeString patternString((UBool)(length<0), pattern, length); in udatpg_getSkeleton() local
97 … UnicodeString result=((DateTimePatternGenerator *)dtpg)->getSkeleton(patternString, *pErrorCode); in udatpg_getSkeleton()
113 UnicodeString patternString((UBool)(length<0), pattern, length); in udatpg_getBaseSkeleton() local
114 …UnicodeString result=((DateTimePatternGenerator *)dtpg)->getBaseSkeleton(patternString, *pErrorCod… in udatpg_getBaseSkeleton()
131 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_addPattern() local
134 addPattern(patternString, override, conflictingPatternString, *pErrorCode); in udatpg_addPattern()
239 UnicodeString patternString((UBool)(patternLength<0), pattern, patternLength); in udatpg_replaceFieldTypesWithOptions() local
241 …UnicodeString result=((DateTimePatternGenerator *)dtpg)->replaceFieldTypes(patternString, skeleton… in udatpg_replaceFieldTypesWithOptions()
Dbms.cpp82 UnicodeString patternString(pattern, patternLength); in bms_open() local
96 bms->bms = new BoyerMooreSearch(data, patternString, bms->targetString, *status); in bms_open()
Dbmsearch.cpp601 BoyerMooreSearch::BoyerMooreSearch(CollData *theData, const UnicodeString &patternString, const Uni… in BoyerMooreSearch() argument
603 … patCEs(NULL), badCharacterTable(NULL), goodSuffixTable(NULL), pattern(patternString), target(NULL) in BoyerMooreSearch()
612 patCEs = new CEList(collator, patternString, status); in BoyerMooreSearch()
Ddtptngen_impl.h143 void set(const UnicodeString& patternString);
/external/webkit/Source/WebKit/win/
DWebUserContentURLPattern.cpp86 HRESULT WebUserContentURLPattern::parse(BSTR patternString) in parse() argument
88 m_pattern = UserContentURLPattern(String(patternString, SysStringLen(patternString))); in parse()
DWebUserContentURLPattern.h49 virtual HRESULT STDMETHODCALLTYPE parse(BSTR patternString);
/external/webkit/Source/WebCore/platform/text/
DRegularExpression.cpp57 …PassOwnPtr<JSC::Yarr::BytecodePattern> compile(const String& patternString, TextCaseSensitivity ca… in compile() argument
59 …JSC::Yarr::YarrPattern pattern(JSC::UString(patternString.impl()), (caseSensitivity == TextCaseIns… in compile()
/external/icu4c/test/perf/strsrchperf/
Dstrsrchperf.cpp69 UnicodeString patternString(pttrn, pttrnLen); in StringSearchPerformanceTest() local
74 bms = new BoyerMooreSearch(data, patternString, targetString, status); in StringSearchPerformanceTest()
/external/webkit/Source/WebKit/mac/Misc/
DWebUserContentURLPattern.h31 - (id)initWithPatternString:(NSString *)patternString;
DWebUserContentURLPattern.mm44 - (id)initWithPatternString:(NSString *)patternString
51 _private->pattern = UserContentURLPattern(patternString);
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DChoiceFormatTest.java93 …String patternString = "-2#Inverted Orange| 0#No Orange| 0<Almost No Orange| 1#Normal Orange| 2#Ex… in test_ConstructorLjava_lang_String() local
94 ChoiceFormat cf = new ChoiceFormat(patternString); in test_ConstructorLjava_lang_String()
211 …String patternString = "-2#Inverted Orange| 0#No Orange| 0<Almost No Orange| 1#Normal Orange| 2#Ex… in test_equalsLjava_lang_Object() local
223 ChoiceFormat orangeChoiceFormat2 = new ChoiceFormat(patternString); in test_equalsLjava_lang_Object()
/external/webkit/Source/WebKit2/Shared/
DWebUserContentURLPattern.h48 const String& patternString() const { return m_patternString; } in patternString() function
DUserMessageCoders.h125 encoder->encode(urlPattern->patternString()); in baseEncode()
/external/icu4c/i18n/unicode/
Dbmsearch.h125 …BoyerMooreSearch(CollData *theData, const UnicodeString &patternString, const UnicodeString *targe…
/external/icu4c/tools/genrb/
Dprscmnts.cpp77 UnicodeString patternString, in getText() argument
93 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); in getText()
/external/webkit/Source/WebKit/win/Interfaces/
DIWebUserContentURLPattern.idl38 HRESULT parse([in] BSTR patternString);
/external/webkit/Source/JavaScriptCore/yarr/
DYarrPattern.cpp959 const char* YarrPattern::compile(const UString& patternString) in compile() argument
963 if (const char* error = parse(constructor, patternString)) in compile()
977 parse(constructor, patternString, numSubpatterns); in compile()
DYarrPattern.h409 const char* compile(const UString& patternString);
/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcherTest.java335 String patternString = "(d{1,3})((a|c)*)(d{1,3})((a|c)*)(d{1,3})"; in testQuantVsGroup() local
338 Pattern pat = Pattern.compile(patternString); in testQuantVsGroup()
/external/webkit/Source/WebKit2/
DChangeLog-2011-02-1624876 (WebKit::WebUserContentURLPattern::patternString):