33 #include <Pt/String.h>
259 std::size_t
length(std::size_t n = 0)
const;
275 pt_regmatch_t* _match;
Core module.
Definition: pt-gfx-images.dox:14
Regex(const Pt::Char *ex)
Construct from regex string.
Regex & operator=(const Regex &other)
Assignment operator.
~RegexSMatch()
Destructor.
RegexSMatch & operator=(const RegexSMatch &other)
Assignment operator.
bool match(const Pt::String &str) const
Returns true if string matches.
bool match(const Char *str, RegexSMatch &sm) const
Matches the regular experession to a string.
std::size_t maxSize() const
Returns the max number of matches the implementation allows.
bool match(const Pt::String &str, RegexSMatch &sm) const
Matches the regular experession to a string.
~InvalidRegex()
Destructor.
Definition: Regex.h:55
Unicode character type.
Definition: String.h:67
Regex(const Regex &other)
Copy constructor.
RegexSMatch(const RegexSMatch &other)
Copy constructor.
Invalid regular expression.
Definition: Regex.h:49
Regular Expressions for Unicode Strings.
Definition: Regex.h:174
Pt::String str(std::size_t n=0) const
Returns the nth match.
Regex(const Pt::String &ex)
Construct from regex string.
std::size_t position(std::size_t n=0) const
Returns the position of the nth match.
Result of a regular expression match.
Definition: Regex.h:226
RegexSMatch()
Default Constructor.
std::size_t length(std::size_t n=0) const
Returns the size of the nth match.
std::size_t size() const
Returns the number of matches.
Regex()
Default Constructor.
Pt::String format(const Pt::String &str) const
Formats a string according to a format specifier.
bool match(const Char *str) const
Returns true if string matches.
Unicode capable basic_string.
Definition: String.h:43
InvalidRegex(const char *msg)
Construct with message.
bool empty() const
Returns true if no match.