utils: small optimization in utf8_flatten
In the common path, avoid building an unneeded std::string. This should up in some profiles.
This commit is contained in:
@ -32,7 +32,9 @@ namespace Mux {
|
||||
*
|
||||
* @return a flattened string
|
||||
*/
|
||||
std::string utf8_flatten (const std::string& str);
|
||||
std::string utf8_flatten (const char *str);
|
||||
inline std::string utf8_flatten (const std::string& s) { return utf8_flatten(s.c_str()); }
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user