File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ Tested on following compilers:
2828
2929``` cpp
3030// यूनिकोड
31- static char const _Src [] = " \xE0\xA4\xAF\xE0\xA5\x82\xE0\xA4\xA8\xE0\xA4\xBF\xE0\xA4\x95\xE0\xA5\x8B\xE0\xA4\xA1 " ;
31+ static char const u8str_orig [] = " \xE0\xA4\xAF\xE0\xA5\x82\xE0\xA4\xA8\xE0\xA4\xBF\xE0\xA4\x95\xE0\xA5\x8B\xE0\xA4\xA1 " ;
3232using namespace ww898 ;
33- std::u16string _Utf16 ;
34- utf::convz<utf::utf8, utf::utf16>(_Src , std::back_inserter(_Utf16 ));
35- std::u32string _Utf32 ;
36- utf::conv<utf::utf16, utf::utf32>(_Utf16 .begin(), _Utf16 .end(), std::back_inserter(_Utf32 ));
37- std::vector<char > _Utf8 ;
38- utf::convz<utf::utf32, utf::utf8>(_Utf32 .begin(), std::back_inserter(_Utf8 ));
33+ std::u16string u16str ;
34+ utf::convz<utf::utf8, utf::utf16>(u8str_orig , std::back_inserter(u16str ));
35+ std::u32string u32str ;
36+ utf::conv<utf::utf16, utf::utf32>(u16str .begin(), u16str .end(), std::back_inserter(u32str ));
37+ std::vector<char > u8str ;
38+ utf::convz<utf::utf32, utf::utf8>(u32str .begin(), std::back_inserter(u8str ));
3939```
4040
4141## Performance
You can’t perform that action at this time.
0 commit comments