mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Rename String methods to use lowerCamelCase
This commit is contained in:
@@ -134,7 +134,7 @@ public:
|
||||
std::string value;
|
||||
if (TryGetString(name, &value))
|
||||
{
|
||||
result = String::IEquals(value, "true");
|
||||
result = String::iequals(value, "true");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -220,7 +220,7 @@ private:
|
||||
return;
|
||||
}
|
||||
utf8* file = reinterpret_cast<utf8*>(_buffer.data());
|
||||
utf8* content = String::SkipBOM(file);
|
||||
utf8* content = String::skipBOM(file);
|
||||
if (file != content)
|
||||
{
|
||||
size_t skipLength = content - file;
|
||||
@@ -260,7 +260,7 @@ private:
|
||||
for (size_t i = 0; i < _lines.size(); i++)
|
||||
{
|
||||
std::string line = GetLine(i);
|
||||
line = String::Trim(line);
|
||||
line = String::trim(line);
|
||||
if (line.size() > 3 && line[0] == '[')
|
||||
{
|
||||
size_t endIndex = line.find_first_of(']');
|
||||
@@ -309,8 +309,8 @@ private:
|
||||
}
|
||||
|
||||
// Get the key and value
|
||||
std::string key = String::Trim(line.substr(0, equalsIndex));
|
||||
std::string value = String::Trim(line.substr(equalsIndex + 1));
|
||||
std::string key = String::trim(line.substr(0, equalsIndex));
|
||||
std::string value = String::trim(line.substr(equalsIndex + 1));
|
||||
|
||||
value = UnquoteValue(value);
|
||||
value = UnescapeValue(value);
|
||||
|
||||
Reference in New Issue
Block a user