MCPcopy Create free account
hub / github.com/Genivia/ugrep / enable_modifier

Function enable_modifier

lib/convert.cpp:193–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191////////////////////////////////////////////////////////////////////////////////
192
193static inline void enable_modifier(int c, const char *pattern, size_t pos, std::map<size_t,std::string>& mod, size_t lev)
194{
195 if (c != 'i' && c != 'm' && c != 's' && c != 'u' && c != 'x')
196 throw regex_error(regex_error::invalid_modifier, pattern, pos);
197 mod[lev].push_back(c);
198}
199
200static inline void disable_modifier(int c, const char *pattern, size_t pos, std::map<size_t,std::string>& mod, size_t lev)
201{

Callers 1

convertFunction · 0.85

Calls 1

regex_errorClass · 0.85

Tested by

no test coverage detected