boost::algorithm::split_regex doesn't work with boost::u32regex.
- Lingua principale
- C++
- Stelle
- 131
- Fork
- 117
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I want to split a UTF-8 string into tokens. However it looks like that **split_regex()** failed and just return original string. I also tried `u32regex_replace()` and it indeed replaced successfully.
src.cpp:
```
// CutWord.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
string str="数学。数学。数学。";
//Split
vector vs;
//regexU3 stores expression.
boost::u32regex regexU32= boost::make_u32regex("。");
boost::split_regex(vs, str,regexU32);
cout<
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.