![]() |
PIP 5.5.3
Platform-Independent Primitives
|
Class containing regular expression match results. More...
#include <piregularexpression.h>
Public Member Functions | |
| operator bool () const | |
| Returns true if match was found. | |
| bool | hasMatch () const |
| Returns true if match was found. | |
| bool | next () |
| Attempts to find next match in subject string. More... | |
| PIStringList | matchedStrings () const |
| Returns list of all matched strings. | |
| PIString | matchedString (int index=0) const |
| Returns matched substring by index. More... | |
| int | matchedStart (int index=0) const |
| Returns start position of matched substring. More... | |
| int | matchedSize (int index=0) const |
| Returns length of matched substring. More... | |
| PIString | matchedString (const PIString &gname) const |
| Returns matched substring by group name. More... | |
| int | matchedStart (const PIString &gname) const |
| Returns start position of named capture group. More... | |
| int | matchedSize (const PIString &gname) const |
| Returns length of named capture group match. More... | |
Class containing regular expression match results.
| bool PIRegularExpression::Matcher::next | ( | ) |
Attempts to find next match in subject string.
| PIString PIRegularExpression::Matcher::matchedString | ( | int | index = 0 | ) | const |
Returns matched substring by index.
| index | Capture group index (0 for entire match) |
| int PIRegularExpression::Matcher::matchedStart | ( | int | index = 0 | ) | const |
Returns start position of matched substring.
| index | Capture group index (0 for entire match) |
| int PIRegularExpression::Matcher::matchedSize | ( | int | index = 0 | ) | const |
Returns length of matched substring.
| index | Capture group index (0 for entire match) |
Returns matched substring by group name.
| gname | Capture group name |
| int PIRegularExpression::Matcher::matchedStart | ( | const PIString & | gname | ) | const |
Returns start position of named capture group.
| gname | Capture group name |
| int PIRegularExpression::Matcher::matchedSize | ( | const PIString & | gname | ) | const |
Returns length of named capture group match.
| gname | Capture group name |