System::Text::RegularExpressions::Match 类
Match class
Single match of regexp over string. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class Match : public System::Text::RegularExpressions::Group
方法
| 方法 | 描述 |
|---|---|
| AddCapture(const CapturePtr&) | 向匹配中添加捕获。 |
| AddGroup(const GroupPtr&) | 向匹配中添加组。 |
| static get_Empty() | 空匹配访问器。 |
| get_Groups() | 获取组列表。 |
| Match(const UStringPtr&, int, int) | 构造函数。 |
| NextMatch() | 遍历匹配项。 |
| virtual Result(const String&) | 通过将子匹配引用替换为其值来格式化字符串。 |
| SetMappedIndexes(const std::vector<int>&) |
另见
- Class Group
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++