Created
August 15, 2019 18:40
-
-
Save tshev/00df7e726e506ef3e654bbbe87722aaf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ u8.cpp -O3 -licuuc -licuio && ./a.out | |
#include <string> | |
#include <unicode/unistr.h> | |
#include <unicode/ustream.h> | |
#include <unicode/locid.h> | |
int main() { | |
std::string source = "Привет"; | |
icu::UnicodeString a(source.data(), "utf-8"); | |
std::cout << a.toLower() << std::endl; | |
std::cout << a << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment