Home
last modified time | relevance | path

Searched refs:CharClass (Results 1 – 16 of 16) sorted by relevance

/third_party/re2/re2/testing/
Dcharclass_test.cc88 template<class CharClass>
89 static void Broke(const char *desc, const CCTest* t, CharClass* cc) { in Broke()
107 for (typename CharClass::iterator it = cc->begin(); it != cc->end(); ++it) in Broke()
121 CharClass* Negate(CharClass *cc) { in Negate()
125 void Delete(CharClass* cc) { in Delete()
139 template<class CharClass>
140 bool CorrectCC(CharClass *cc, CCTest *t, const char *desc) { in CorrectCC()
141 typename CharClass::iterator it = cc->begin(); in CorrectCC()
173 CharClass* ncc = Negate(cc); in CorrectCC()
209 CharClass* cc = ccb.GetCharClass(); in TEST()
Ddump.cc137 for (CharClass::iterator it = re->cc()->begin(); in DumpRegexpAppending()
/third_party/boost/boost/spirit/home/karma/char/
Dchar_class.hpp33 template <typename CharClass, typename CharEncoding>
35 , tag::char_code<CharClass, CharEncoding> >
68 template <typename Tag, typename CharEncoding, typename CharClass>
71 char_class<Tag, CharEncoding, CharClass>
72 , CharEncoding, CharClass>
186 template <typename CharClass, typename CharEncoding, typename Modifiers>
187 struct make_primitive<tag::char_code<CharClass, CharEncoding>, Modifiers>
195 typename detail::make_char_class<CharClass, lower, upper>::type
/third_party/re2/re2/
Dregexp.h242 class CharClass {
256 CharClass* Negate();
259 CharClass(); // not implemented
260 ~CharClass(); // not implemented
261 static CharClass* New(int maxranges);
270 CharClass(const CharClass&) = delete;
271 CharClass& operator=(const CharClass&) = delete;
337 CharClass* cc() { DCHECK_EQ(op_, kRegexpCharClass); return cc_; } in cc()
402 static Regexp* NewCharClass(CharClass* cc, ParseFlags flags);
577 CharClass* cc_;
[all …]
Dregexp.cc332 Regexp* Regexp::NewCharClass(CharClass* cc, ParseFlags flags) { in NewCharClass()
402 CharClass* acc = a->cc(); in TopEqual()
403 CharClass* bcc = b->cc(); in TopEqual()
906 CharClass* CharClass::New(int maxranges) { in New()
907 CharClass* cc; in New()
909 cc = reinterpret_cast<CharClass*>(data); in New()
917 void CharClass::Delete() { in Delete()
922 CharClass* CharClass::Negate() { in Negate()
923 CharClass* cc = CharClass::New(nranges_+1); in Negate()
928 for (CharClass::iterator it = begin(); it != end(); ++it) { in Negate()
[all …]
Dtostring.cc273 CharClass* cc = re->cc(); in PostVisit()
278 for (CharClass::iterator i = cc->begin(); i != cc->end(); ++i) in PostVisit()
Dprefilter.cc218 static Info* CClass(CharClass* cc, bool latin1);
451 typedef CharClass::iterator CCIter;
452 Prefilter::Info* Prefilter::Info::CClass(CharClass *cc, in CClass()
Dcompile.cc936 CharClass* cc = re->cc(); in PostVisit()
955 for (CharClass::iterator i = cc->begin(); i != cc->end(); ++i) { in PostVisit()
Dsimplify.cc644 CharClass* cc = re->cc(); in SimplifyCharClass()
Dparse.cc1176 CharClass* cc = re->cc(); in Round3()
1177 for (CharClass::iterator it = cc->begin(); it != cc->end(); ++it) in Round3()
/third_party/boost/boost/spirit/home/qi/char/
Dchar_class.hpp29 template <typename CharClass, typename CharEncoding>
30 struct use_terminal<qi::domain, tag::char_code<CharClass, CharEncoding> >
95 template <typename CharClass, typename CharEncoding, typename Modifiers>
96 struct make_primitive<tag::char_code<CharClass, CharEncoding>, Modifiers>
106 typename detail::make_char_class<CharClass, no_case>::type
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/
DRBBIMonkeyTest.java47 static class CharClass { class in RBBIMonkeyTest
52 CharClass(String name, String originalDef, String expandedDef, UnicodeSet set) { in CharClass() method in RBBIMonkeyTest.CharClass
135 CharClass addCharClass(String name, String definition) { in addCharClass()
140 CharClass snameClass = fCharClasses.get(sname); in addCharClass()
175 CharClass cclass = new CharClass(name, definition, expandedDefString, s); in addCharClass()
176 CharClass previousClass = fCharClasses.put(name, cclass); in addCharClass()
201 CharClass nameClass = fCharClasses.get(sname); in addRule()
450 for (Map.Entry<String, CharClass> el: fCharClasses.entrySet()) { in compileRules()
452 CharClass cclass = el.getValue(); in compileRules()
470 CharClass cclass = addCharClass("__Others", otherSet.toPattern(true)); in compileRules()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DRBBIMonkeyTest.java44 static class CharClass { class in RBBIMonkeyTest
49 CharClass(String name, String originalDef, String expandedDef, UnicodeSet set) { in CharClass() method in RBBIMonkeyTest.CharClass
132 CharClass addCharClass(String name, String definition) { in addCharClass()
137 CharClass snameClass = fCharClasses.get(sname); in addCharClass()
172 CharClass cclass = new CharClass(name, definition, expandedDefString, s); in addCharClass()
173 CharClass previousClass = fCharClasses.put(name, cclass); in addCharClass()
198 CharClass nameClass = fCharClasses.get(sname); in addRule()
447 for (Map.Entry<String, CharClass> el: fCharClasses.entrySet()) { in compileRules()
449 CharClass cclass = el.getValue(); in compileRules()
467 CharClass cclass = addCharClass("__Others", otherSet.toPattern(true)); in compileRules()
[all …]
/third_party/icu/icu4c/source/test/intltest/
Drbbimonkeytest.cpp113 CharClass *BreakRules::addCharClass(const UnicodeString &name, const UnicodeString &definition, UEr… in addCharClass()
124 CharClass *nameClass = static_cast<CharClass *>(uhash_get(fCharClasses.getAlias(), &name)); in addCharClass()
144 CharClass *cclass = new CharClass(name, definition, expandedDef, s.orphan()); in addCharClass()
145 CharClass *previousClass = static_cast<CharClass *>(uhash_put(fCharClasses.getAlias(), in addCharClass()
175 CharClass *nameClass = static_cast<CharClass *>(uhash_get(fCharClasses.getAlias(), &name)); in addRule()
351 CharClass *cclass = static_cast<CharClass *>(el->value.pointer); in compileRules()
369CharClass *cclass = addCharClass(UnicodeString("__Others"), otherSet.toPattern(pattern), status); in compileRules()
375 const CharClass *BreakRules::getClassForChar(UChar32 c, int32_t *iter) const { in getClassForChar()
380 const CharClass *cc = static_cast<const CharClass *>(fCharClassList->elementAt(it)); in getClassForChar()
409 …const CharClass *cclass = static_cast<CharClass *>(rules->fCharClassList->elementAt(charClassIndex… in set()
[all …]
Drbbimonkeytest.h82 class CharClass: public UObject {
88CharClass(const UnicodeString &name, const UnicodeString &originalDef, const UnicodeString &expand… in CharClass() function
119 const CharClass *getClassForChar(UChar32 c, int32_t *iter=NULL) const;
133CharClass *addCharClass(const UnicodeString &name, const UnicodeString &def, UErrorCode &status);
/third_party/boost/boost/spirit/home/support/
Dchar_class.hpp261 template <typename CharClass>
267 template <typename CharClass, typename CharEncoding>
269 : char_code_base<CharClass>, char_encoding_base<CharEncoding>
273 typedef CharClass char_class; // e.g. tag::alnum