Etterna 0.74.4
Loading...
Searching...
No Matches
RageUtil_CharConversions.h
1/* ConvertString - Convert a string to UTF-8. */
2
3#ifndef RAGEUTIL_CHAR_CONVERSIONS_H
4#define RAGEUTIL_CHAR_CONVERSIONS_H
5
6/* Convert a string to UTF-8 from the first possible encoding in the given
7 * comma- separated list of encodings. The only valid strings are "japanese"
8 * and "korean". Return true if the conversion was successful (or a no-op).
9 * Return false and leave the string unchanged if the conversion was
10 * unsuccessful. */
11bool
12ConvertString(std::string& str, const std::string& encodings);
13
14#endif