renamed "toString()" to "to_string()"
This commit is contained in:
parent
f63ff7727e
commit
3bef1a5097
4 changed files with 14 additions and 14 deletions
|
|
@ -477,7 +477,7 @@ json::operator object_t() const
|
|||
return get<object_t>();
|
||||
}
|
||||
|
||||
const std::string json::toString() const noexcept
|
||||
const std::string json::to_string() const noexcept
|
||||
{
|
||||
switch (_type)
|
||||
{
|
||||
|
|
@ -511,7 +511,7 @@ const std::string json::toString() const noexcept
|
|||
{
|
||||
result += ", ";
|
||||
}
|
||||
result += i->toString();
|
||||
result += i->to_string();
|
||||
}
|
||||
|
||||
return "[" + result + "]";
|
||||
|
|
@ -527,7 +527,7 @@ const std::string json::toString() const noexcept
|
|||
{
|
||||
result += ", ";
|
||||
}
|
||||
result += "\"" + i->first + "\": " + i->second.toString();
|
||||
result += "\"" + i->first + "\": " + i->second.to_string();
|
||||
}
|
||||
|
||||
return "{" + result + "}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue