Look for a Unicode group with the given name (e.g., "Han")
| 1645 | |
| 1646 | // Look for a Unicode group with the given name (e.g., "Han") |
| 1647 | static const UGroup* LookupUnicodeGroup(const StringPiece& name) { |
| 1648 | // Special case: "Any" means any. |
| 1649 | if (name == StringPiece("Any")) |
| 1650 | return &anygroup; |
| 1651 | return LookupGroup(name, unicode_groups, num_unicode_groups); |
| 1652 | } |
| 1653 | #endif |
| 1654 | |
| 1655 | // Add a UGroup or its negation to the character class. |
no test coverage detected