Lines Matching defs:RE_Options

156 //    pcrecpp::RE_Options options;
173 // The C++ wrapper defines an auxiliary class, RE_Options, as a vehicle
202 // RE_Options & set_caseless(bool),
217 // a RE_Options object, set the appropriate options, and pass this
230 // RE(pattern, RE_Options(PCRE_CASELESS|PCRE_MULTILINE)).PartialMatch(str);
234 // RE_Options().set_caseless(true).set_multiline(true)).PartialMatch(str);
238 // convenience functions that return a RE_Options class with the
243 // through the pains of declaring a RE_Options object and setting several
250 // RE(" ^ xyz \\s+ .* blah$", RE_Options()
351 // RE_Options allow you to set options to be passed along to pcre,
355 class PCRECPP_EXP_DEFN RE_Options {
358 RE_Options() : match_limit_(0), match_limit_recursion_(0), all_options_(0) {}
364 // RE(pattern, RE_Options(PCRE_CASELESS|PCRE_MULTILINE)).PartialMatch(str);
367 // RE_Options().set_caseless(true).set_multiline(true)).PartialMatch(str);
368 RE_Options(int option_flags) : match_limit_(0), match_limit_recursion_(0),
374 RE_Options &set_match_limit(int limit) {
380 RE_Options &set_match_limit_recursion(int limit) {
388 RE_Options &set_caseless(bool x) {
395 RE_Options &set_multiline(bool x) {
402 RE_Options &set_dotall(bool x) {
409 RE_Options &set_extended(bool x) {
416 RE_Options &set_dollar_endonly(bool x) {
423 RE_Options &set_extra(bool x) {
430 RE_Options &set_ungreedy(bool x) {
437 RE_Options &set_utf8(bool x) {
444 RE_Options &set_no_auto_capture(bool x) {
448 RE_Options &set_all_options(int opt) {
464 // These functions return some common RE_Options
465 static inline RE_Options UTF8() {
466 return RE_Options().set_utf8(true);
469 static inline RE_Options CASELESS() {
470 return RE_Options().set_caseless(true);
472 static inline RE_Options MULTILINE() {
473 return RE_Options().set_multiline(true);
476 static inline RE_Options DOTALL() {
477 return RE_Options().set_dotall(true);
480 static inline RE_Options EXTENDED() {
481 return RE_Options().set_extended(true);
492 RE(const string& pat, const RE_Options& option) { Init(pat, &option); }
494 RE(const char* pat, const RE_Options& option) { Init(pat, &option); }
498 RE(const unsigned char* pat, const RE_Options& option) {
631 // Type of match (TODO: Should be restructured as part of RE_Options)
660 void Init(const string& pattern, const RE_Options* options);
702 RE_Options options_;