#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <pcre2.h>
|
| std::vector< CRegExp > | CompileRegexes (const std::vector< std::string > ®ExpPatterns) |
| |
| template<typename... Args> |
| std::shared_ptr< CRegExp > | KODI::REGEXP::GetRegExp (const std::string &pattern, RegExpCache *cache, Args &&... ctorArgs) |
| | Provide the caller with a compiled CRegExp for the provided pattern. The CRegExp will be retrieved from the optional cache first or created when it doesn't exist in the cache. note: the cache key is the pattern. The same CRegExp will be returned for the same pattern and different constructor arguments.
|
| |
◆ PCRE2_CODE_UNIT_WIDTH
| #define PCRE2_CODE_UNIT_WIDTH 8 |
- Todo
- move to std::regex (after switching to gcc 4.9 or higher) and get rid of CRegExp
◆ CompileRegexes()
| std::vector< CRegExp > CompileRegexes |
( |
const std::vector< std::string > & | regExpPatterns | ) |
|