X-Git-Url: https://www.tinc-vpn.org/git/browse?p=fides;a=blobdiff_plain;f=lib%2Futility.h;h=4a90e7ef71097971ba5d17b06fa82a20167d4c6f;hp=7ad7ab1474ab9fb6a456e0051337c086cddb655f;hb=f36a11f15b1d75cf3d786cab06fefe0d50812c83;hpb=401e0b5e1d97ded0e2c7415c6dd0f94ee6bfb470 diff --git a/lib/utility.h b/lib/utility.h index 7ad7ab1..4a90e7e 100644 --- a/lib/utility.h +++ b/lib/utility.h @@ -23,7 +23,7 @@ #include #include -namespace fides { +namespace Fides { class regexp { regex_t comp; @@ -40,13 +40,13 @@ namespace fides { /// /// @param exp Regular expression to compile. /// @param cflags Bitwise OR of options to apply when compiling the regular expression: - /// - fides::regexp::EXTENDED + /// - Fides::regexp::EXTENDED /// Use POSIX Extended Regular Expression syntax when interpreting exp. - /// - fides::regexp::ICASE + /// - Fides::regexp::ICASE /// Make the expression case-insensitive. - /// - fides::regexp::NOSUB + /// - Fides::regexp::NOSUB /// Disable support for substring addressing. - /// - fides::regexp::NEWLINE + /// - Fides::regexp::NEWLINE /// Do not treat the newline character as the start or end of a line. regexp(const std::string &exp, int cflags = 0) { int err = regcomp(&comp, exp.c_str(), cflags); @@ -62,9 +62,9 @@ namespace fides { /// /// @param in String to test. /// @param eflags Bitwise OR of options to apply when matching the string: - /// - fides::regexp::NOTBOL + /// - Fides::regexp::NOTBOL /// Do not treat the start of the string as the start of a line. - /// - fides::regexp::NOTEOL + /// - Fides::regexp::NOTEOL /// Do not treat the end of the string as the end of a line. /// @return True if the string matches the regular expression, false otherwise. bool match(const std::string &in, int eflags = 0) {