File: gcc8.cpp

package info (click to toggle)
ctre 3.9.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,084 kB
  • sloc: cpp: 80,452; makefile: 135; javascript: 69; python: 31
file content (11 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#include <ctre.hpp>

[[maybe_unused]] static constexpr inline ctll::fixed_string pattern = "([0-9]++),([a-z]++)";

bool match(std::string_view sv) noexcept {
#if CTRE_CNTTP_COMPILER_CHECK
    return ctre::match<"([0-9]++),([a-z]++)">(sv);
#else
	return ctre::match<pattern>(sv);
#endif
}