macro renamed: PT_HAS_MORM -> PT_HAS_MORM_LIBRARY

TextStream::to_string(...) is now TextStream::to_str(...)
added: std::string TextStream::to_str() const;
added: std::wstring TextStream::to_wstr() const;
This commit is contained in:
2021-06-20 16:46:08 +02:00
parent 819c49e638
commit ac407b2362
6 changed files with 51 additions and 17 deletions

View File

@@ -954,7 +954,7 @@ std::string Space::to_str() const
{
TextStream stream;
serialize_string_buffer(value.value_wstring.c_str(), value.value_wstring.size(), stream, Escape::no_escape);
stream.to_string(str);
stream.to_str(str);
return str;
}
@@ -1310,7 +1310,7 @@ void Space::serialize_to_space_to(std::string & str, bool pretty_print) const
TextStream stream;
serialize_to_space_stream(stream, pretty_print);
stream.to_string(str);
stream.to_str(str);
}
@@ -1319,7 +1319,7 @@ void Space::serialize_to_space_to(std::wstring & str, bool pretty_print) const
WTextStream stream;
serialize_to_space_stream(stream, pretty_print);
stream.to_string(str);
stream.to_str(str);
}
@@ -1345,7 +1345,7 @@ void Space::serialize_to_json_to(std::string & str) const
TextStream stream;
serialize_to_json_stream(stream);
stream.to_string(str);
stream.to_str(str);
}
@@ -1354,7 +1354,7 @@ void Space::serialize_to_json_to(std::wstring & str) const
WTextStream stream;
serialize_to_json_stream(stream);
stream.to_string(str);
stream.to_str(str);
}