B
Brad
std::string s = "easy";
std::string unicode_string;
std::string::const_iterator it,
for(it = s.begin(); it != s.end(); ++it)
{
unicode_string.push_back(*it);
unicode_string.push_back('\0');
}
The above for loop would make unicode_string look like this:
"e null a null s null y null"
Is there a faster way to do this... in place maybe?
Thanks for any tips,
Brad
std::string unicode_string;
std::string::const_iterator it,
for(it = s.begin(); it != s.end(); ++it)
{
unicode_string.push_back(*it);
unicode_string.push_back('\0');
}
The above for loop would make unicode_string look like this:
"e null a null s null y null"
Is there a faster way to do this... in place maybe?
Thanks for any tips,
Brad