MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __get_classname

Function __get_classname

system/lib/libcxx/src/regex.cpp:340–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340regex_traits<char>::char_class_type __get_classname(const char* s, bool __icase) {
341 const classnames* i = std::lower_bound(begin(ClassNames), end(ClassNames), s, use_strcmp());
342 regex_traits<char>::char_class_type r = 0;
343 if (i != end(ClassNames) && strcmp(s, i->elem_) == 0) {
344 r = i->mask_;
345 if (r == regex_traits<char>::__regex_word)
346 r |= ctype_base::alnum | ctype_base::upper | ctype_base::lower;
347 else if (__icase) {
348 if (r & (ctype_base::lower | ctype_base::upper))
349 r |= ctype_base::alpha;
350 }
351 }
352 return r;
353}
354
355template <>
356void __match_any_but_newline<char>::__exec(__state& __s) const {

Callers

nothing calls this directly

Calls 5

use_strcmpClass · 0.85
strcmpFunction · 0.85
lower_boundFunction · 0.50
beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected