| 354 | |
| 355 | template <> |
| 356 | void __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 | |
| 376 | template <> |
| 377 | void __match_any_but_newline<wchar_t>::__exec(__state& __s) const { |
nothing calls this directly
no outgoing calls
no test coverage detected