nutri/external/ctre/tests/wide-pattern.cpp

11 lines
274 B
C++

#include <ctre.hpp>
static constexpr auto Pattern = ctll::fixed_string(L"[a-z]+");
int main()
{
const wchar_t test[]{ L"abc" };
const wchar_t* begin = test;
const wchar_t* end = begin + 3;
[[maybe_unused]] const auto results = ctre::re<Pattern>().search(begin, end);
}