changed utf8 functions: PascalCase to snake_case
This commit is contained in:
@@ -942,7 +942,7 @@ std::wstring Space::to_wstr() const
|
||||
|
||||
if( type == type_string )
|
||||
{
|
||||
UTF8ToWide(value.value_string, str);
|
||||
utf8_to_wide(value.value_string, str);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
@@ -881,7 +881,7 @@ protected:
|
||||
StreamType temp_stream;
|
||||
|
||||
// input is wide but output is utf8
|
||||
WideToUTF8(input_str, temp_stream, false);
|
||||
wide_to_utf8(input_str, temp_stream, false);
|
||||
copy_input_stream_to_output(temp_stream, out_str, escape);
|
||||
}
|
||||
}
|
||||
|
@@ -145,7 +145,7 @@ SpaceParser::Status SpaceParser::ParseJSONFile(const wchar_t * file_name)
|
||||
{
|
||||
std::string file_name_utf8;
|
||||
|
||||
WideToUTF8(file_name, file_name_utf8);
|
||||
wide_to_utf8(file_name, file_name_utf8);
|
||||
return ParseJSONFile(file_name_utf8.c_str());
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ SpaceParser::Status SpaceParser::ParseSpaceFile(const wchar_t * file_name)
|
||||
{
|
||||
std::string file_name_utf8;
|
||||
|
||||
WideToUTF8(file_name, file_name_utf8);
|
||||
wide_to_utf8(file_name, file_name_utf8);
|
||||
return ParseSpaceFile(file_name_utf8.c_str());
|
||||
}
|
||||
|
||||
@@ -972,7 +972,7 @@ bool correct;
|
||||
|
||||
do
|
||||
{
|
||||
UTF8ToInt(file, c, correct);
|
||||
utf8_to_int(file, c, correct);
|
||||
|
||||
if( !file )
|
||||
return lastc;
|
||||
@@ -1025,7 +1025,7 @@ bool correct;
|
||||
|
||||
do
|
||||
{
|
||||
size_t len = UTF8ToInt(pchar_ascii, c, correct);
|
||||
size_t len = utf8_to_int(pchar_ascii, c, correct);
|
||||
pchar_ascii += len;
|
||||
}
|
||||
while( *pchar_ascii && !correct );
|
||||
|
Reference in New Issue
Block a user