Exemple #1
0
void toString32(Slice const& utf8, String32& to) {
  to.assign(FromUtf8IterC(utf8.first), FromUtf8IterC(utf8.second));
}
Exemple #2
0
void toString32(std::string const& utf8Str, String32& to) {
  to.assign(FromUtf8Iter(utf8Str.begin()), FromUtf8Iter(utf8Str.end()));
}