Hello,
I need a good Unicode library for C++. I need
Transformations in Unicode sensitive way. For example sort all strings in case insensitive way and get their first characters for index. Convert to upper and to lower various Unicode strings. Split text in reasonable position -- words that would work for Chinese and Japanese as well.
Formatting numbers, dates in locale sensitive way (should be thread safe).
Transparent support of utf8 (primary internal representation).
As far as I know the best library is ICU. However, I can't find normal developer friendly API documentation with examples. Also as far as I see, it is not too friendly with
modern C++ design, work with STL and so on. Like this
std::string msg;
unistring umsg.from_utf8(msg);
unistring::word_iterator wi;
for(wi=umsg.words().begin(),n=0;wi!=usmg.words().wi_end(),n<10;++wi,++n)
;
msg=umsg.substr(umsg.words().begin(),wi).to_utf8();
cout<<_("Five 10 words are ")<<msg;
Does anybody know good STL friendly ICU wrapper released under Open Source license preferred permissive like MIT or Boost, but others LGPLv2 compatible are ok as well.
Is there another high quality library similar to ICU?
Platform: UNIX/POSIX, Windows support is not required.
Thanks,
Artyom
Edit: Unfortunatly I wasn't logged in so I can't make asnver accepted... I had attached the ansver by myself.