Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
RegExp.h File Reference
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>
#include <pcre2.h>

Classes

class  CRegExp
 
struct  KODI::REGEXP::StringHash
 

Namespaces

namespace  KODI
 
namespace  KODI::REGEXP
 

Macros

#define PCRE2_CODE_UNIT_WIDTH   8
 

Typedefs

using KODI::REGEXP::RegExpCache
 

Functions

std::vector< CRegExpCompileRegexes (const std::vector< std::string > &regExpPatterns)
 
template<typename... Args>
std::shared_ptr< CRegExpKODI::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.
 

Macro Definition Documentation

◆ 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

Function Documentation

◆ CompileRegexes()

std::vector< CRegExp > CompileRegexes ( const std::vector< std::string > & regExpPatterns)