It's not a big deal, but is it somehow possible to provide a proper constructor or utility function? I have to do a lot of conversions from and to UTF-32 and UTF-8 and it's a little bit annoying to always use a temporary variable, like:
std::string utf8_source = "...";
std::basic_string<sf::Uint32> tmp;
sf::Uint8::toUtf32( source.begin(), source.end(), std::back_inserter( tmp ) );
sf::String final = tmp; // Avoid me :-(
I know I can write a little function doing exactly that, however with an additional constructor it can directly store to m_string of sf::String.
...how about providing functions like in the cute sf::Time? ;)
sf::String string = sf::String::fromUtfX();
string.asUtfX();