Rename String to JsonString

This commit is contained in:
Benoit Blanchon
2022-12-19 12:02:48 +01:00
parent d0b619ea93
commit b8eff868e6
15 changed files with 61 additions and 58 deletions

View File

@@ -222,7 +222,7 @@ template <typename TAdaptedString, typename TCallback>
bool storeString(MemoryPool* pool, TAdaptedString str,
StringStoragePolicy::Copy, TCallback callback) {
const char* copy = pool->saveString(str);
String storedString(copy, str.size(), String::Copied);
JsonString storedString(copy, str.size(), JsonString::Copied);
callback(storedString);
return copy != 0;
}
@@ -230,7 +230,7 @@ bool storeString(MemoryPool* pool, TAdaptedString str,
template <typename TAdaptedString, typename TCallback>
bool storeString(MemoryPool*, TAdaptedString str, StringStoragePolicy::Link,
TCallback callback) {
String storedString(str.data(), str.size(), String::Linked);
JsonString storedString(str.data(), str.size(), JsonString::Linked);
callback(storedString);
return !str.isNull();
}