System::Text::RegularExpressions::GroupCollection class
GroupCollection class
单次匹配中的捕获组列表。此类的对象应仅使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。
class GroupCollection : public System::Collections::Generic::List<GroupPtr>
方法
| 方法 | 描述 |
|---|---|
| Add(const GroupPtr&) override | 禁用向集合中添加元素。 |
| AddGroup(const GroupPtr&) | 向集合中添加组。 |
| Clear() override | 禁用从集合中删除元素。 |
| get_Item(int) const | Group 访问器。 |
| get_Item(const String&) const | Group 访问器。 |
| GroupCollection(const WeakPtr<Match>&) | 构造函数。 |
| virtual idx_get(String) const | Group 访问器。 |
| idx_get(int) const override | Group 访问器。 |
| IsReadOnly() const | 将集合标记为只读。 |
| operator[](const String&) const | Group 访问器。 |
| operator[](int) | Group 访问器。 |
| operator[](int) const | Group 访问器。 |
| Remove(const GroupPtr&) override | 禁用从集合中移除元素。 |
Typedefs
| 类型定义 | 描述 |
|---|---|
| Base | Base 类。 |
另见
- Class List
- Namespace System::Text::RegularExpressions
- Library Aspose.Font for C++