changed utf8 functions: PascalCase to snake_case

This commit is contained in:
2021-05-21 00:24:56 +02:00
parent b574289054
commit 59d4c9a9c8
13 changed files with 161 additions and 163 deletions

View File

@@ -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;
}

View File

@@ -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);
}
}

View File

@@ -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 );