mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 01:44:28 +08:00
1.6 KiB
1.6 KiB
VlppRegex Knowledge Base
Project introduction remains in Index.md.
Choosing APIs
Pattern Matching Operations
Text pattern matching and searching operations with support for different UTF encodings between pattern definitions and input text.
- Use
Regex_<T>for pattern definition withObjectString<T>encoding - Use
MatchHead<U>for finding longest prefix matching the pattern - Use
Match<U>for finding earliest substring matching the pattern - Use
TestHead<U>for boolean prefix matching without detailed results - Use
Test<U>for boolean substring matching without detailed results - Use
Search<U>for appending all non-overlapping successful matches toRegexMatch_<U>::List - Use
Split<U>for appending delimiter-separated unmatched fragments toRegexMatch_<U>::List - Use
Cut<U>for appending both successful and failed fragments in order
Type Aliases
Convenient type aliases for common character encodings to simplify regex usage.
- Use
RegexStringinstead ofRegexString_<wchar_t> - Use
RegexMatchinstead ofRegexMatch_<wchar_t> - Use
Regexinstead ofRegex_<wchar_t> - Use
RegexTokeninstead ofRegexToken_<wchar_t> - Use
RegexProcinstead ofRegexProc_<wchar_t> - Use
RegexTokensinstead ofRegexTokens_<wchar_t> - Use
RegexLexerWalkerinstead ofRegexLexerWalker_<wchar_t> - Use
RegexLexerColorizerinstead ofRegexLexerColorizer_<wchar_t> - Use
RegexLexerinstead ofRegexLexer_<wchar_t>