format_test -> format-test. Add support for wide char to BasicWriter.

This commit is contained in:
Victor Zverovich
2014-01-02 11:30:28 -08:00
parent 1cc61329ae
commit 6038c85231
2 changed files with 23 additions and 4 deletions
+8
View File
@@ -700,11 +700,19 @@ class BasicWriter {
return *this;
}
/**
* Writes a character to the stream.
*/
BasicWriter &operator<<(char value) {
*GrowBuffer(1) = value;
return *this;
}
BasicWriter &operator<<(wchar_t value) {
*GrowBuffer(1) = internal::CharTraits<Char>::ConvertWChar(value);
return *this;
}
/**
Writes *value* to the stream.
*/