Lines Matching refs:CodeWriter
32 CodeWriter::CodeWriter(std::unique_ptr<std::ostream> ostream) : ostream_(std::move(ostream)) {} in CodeWriter() function in android::aidl::CodeWriter
34 std::string CodeWriter::ApplyIndent(const std::string& str) { in ApplyIndent()
45 bool CodeWriter::Write(const char* format, ...) { in Write()
75 void CodeWriter::Indent() { in Indent()
78 void CodeWriter::Dedent() { in Dedent()
84 bool CodeWriter::Close() { in Close()
93 CodeWriter& CodeWriter::operator<<(const char* s) { in operator <<()
98 CodeWriter& CodeWriter::operator<<(const std::string& str) { in operator <<()
103 CodeWriterPtr CodeWriter::ForFile(const std::string& filename) { in ForFile()
111 return CodeWriterPtr(new CodeWriter(std::move(stream))); in ForFile()
114 CodeWriterPtr CodeWriter::ForString(std::string* buf) { in ForString()
118 class StringCodeWriter : public CodeWriter { in ForString()
121 : CodeWriter(std::unique_ptr<std::ostream>(new std::stringstream())), buf_(buf) {} in ForString()