|
JX Application Framework
|
#include <JStringMatch.h>
Public Member Functions | |
| JStringMatch (const JString &target) | |
| JStringMatch (const JStringMatch &source) | |
| ~JStringMatch () | |
| bool | IsEmpty () const |
| JSize | GetCharacterCount () const |
| JSize | GetByteCount () const |
| JSize | GetSubstringCount () const |
| JString | GetString () const |
| JString | GetSubstring (const JIndex submatchIndex) const |
| JString | GetSubstring (const JUtf8Byte *name) const |
| JString | GetSubstring (const JString &name) const |
| JCharacterRange | GetCharacterRange (const JIndex submatchIndex=0) const |
| JUtf8ByteRange | GetUtf8ByteRange (const JIndex submatchIndex=0) const |
Protected Member Functions | |
| JStringMatch (const JString &target, const JUtf8ByteRange &byteRange, const JRegex *regex=nullptr, JArray< JUtf8ByteRange > *list=nullptr) | |
| void | SetFirstCharacterIndex (const JIndex index) |
| void | SetLastCharacterIndex (const JIndex index) |
| void | SetCharacterRange (const JCharacterRange &range) |
| JStringMatch (const JString &target, JStringMatch &dyingSource) | |
| JStringMatch & | operator= (const JStringMatch &source) |
Friends | |
| class | JStringIterator |
| class | JRegex |
Stores information about a successful match by a JStringIterator.
| JStringMatch::JStringMatch | ( | const JString & | target | ) |
If a list of submatches is provided, we take ownership of the list.
Privileged creators may also call one of Set(First|Last)CharacterIndex or SetCharacterRange.
| JStringMatch::JStringMatch | ( | const JStringMatch & | source | ) |
| JStringMatch::~JStringMatch | ( | ) |
|
protected |
|
protected |
|
inline |
| JSize JStringMatch::GetCharacterCount | ( | ) | const |
| JCharacterRange JStringMatch::GetCharacterRange | ( | const JIndex | submatchIndex = 0 | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
friend |
|
friend |