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

Method __exec

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

Source from the content-addressed store, hash-verified

354
355template <>
356void __match_any_but_newline<char>::__exec(__state& __s) const {
357 if (__s.__current_ != __s.__last_) {
358 switch (*__s.__current_) {
359 case '\r':
360 case '\n':
361 __s.__do_ = __state::__reject;
362 __s.__node_ = nullptr;
363 break;
364 default:
365 __s.__do_ = __state::__accept_and_consume;
366 ++__s.__current_;
367 __s.__node_ = this->first();
368 break;
369 }
370 } else {
371 __s.__do_ = __state::__reject;
372 __s.__node_ = nullptr;
373 }
374}
375
376template <>
377void __match_any_but_newline<wchar_t>::__exec(__state& __s) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected