且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我可以在char16_t的字符串上使用STL正则表达式库吗?

更新时间:2023-11-14 23:04:28

C ++标准库不支持使用char16_t或char32_t Unicode的正则表达式.有解决此问题的建议,但在C ++ 20中却没有:

The C++ standard library does not support regex with char16_t or char32_t Unicode. There is a proposal to address this, but it is not in C++20: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0169r0.html