//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template struct regex_traits; // template // string_type // lookup_collatename(ForwardIterator first, ForwardIterator last) const; #include #include #include #include "test_iterators.h" template void test(const char_type* A, const std::basic_string& expected) { std::regex_traits t; typedef forward_iterator F; assert(t.lookup_collatename(F(A), F(A + t.length(A))) == expected); } int main() { #if !defined(__ANDROID__) std::locale::global(std::locale("cs_CZ.ISO8859-2")); test("ch", std::string("ch")); std::locale::global(std::locale("cs_CZ.ISO8859-2")); test(L"ch", std::wstring(L"ch")); #endif }