|
|
@ -84,11 +84,11 @@ std::string Utf8Encoder::getUtf8(const char* input, size_t size)
|
|
|
|
// is also ok.)
|
|
|
|
// is also ok.)
|
|
|
|
assert(input[size] == 0);
|
|
|
|
assert(input[size] == 0);
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: The rest of this function is designed for single-character
|
|
|
|
// Note: The rest of this function is designed for single-character
|
|
|
|
// input encodings only. It also assumes that the input the input
|
|
|
|
// input encodings only. It also assumes that the input the input
|
|
|
|
// encoding shares its first 128 values (0-127) with ASCII. These
|
|
|
|
// encoding shares its first 128 values (0-127) with ASCII. There are
|
|
|
|
// conditions must be checked again if you add more input encodings
|
|
|
|
// no plans to add more encodings to this module (we are using utf8
|
|
|
|
// later.
|
|
|
|
// for new content files), so that shouldn't be an issue.
|
|
|
|
|
|
|
|
|
|
|
|
// Compute output length, and check for pure ascii input at the same
|
|
|
|
// Compute output length, and check for pure ascii input at the same
|
|
|
|
// time.
|
|
|
|
// time.
|
|
|
|