Lines Matching refs:Formatter

28 Formatter::Formatter() : mFile(nullptr /* invalid */), mIndentDepth(0), mCurrentPosition(0) {}  in Formatter()  function in android::Formatter
30 Formatter::Formatter(FILE* file, size_t spacesPerIndent) in Formatter() function in android::Formatter
36 Formatter::~Formatter() { in ~Formatter()
43 void Formatter::indent(size_t level) { in indent()
47 void Formatter::unindent(size_t level) { in unindent()
52 Formatter& Formatter::indent(size_t level, const std::function<void(void)>& func) { in indent()
59 Formatter& Formatter::indent(const std::function<void(void)>& func) { in indent()
63 Formatter& Formatter::block(const std::function<void(void)>& func) { in block()
69 void Formatter::pushLinePrefix(const std::string& prefix) { in pushLinePrefix()
73 void Formatter::popLinePrefix() { in popLinePrefix()
77 Formatter &Formatter::endl() { in endl()
81 Formatter& Formatter::sIf(const std::string& cond, const std::function<void(void)>& block) { in sIf()
86 Formatter& Formatter::sElseIf(const std::string& cond, const std::function<void(void)>& block) { in sElseIf()
91 Formatter& Formatter::sElse(const std::function<void(void)>& block) { in sElse()
96 Formatter& Formatter::sFor(const std::string& stmts, const std::function<void(void)>& block) { in sFor()
101 Formatter& Formatter::sTry(const std::function<void(void)>& block) { in sTry()
106 Formatter& Formatter::sCatch(const std::string& exception, const std::function<void(void)>& block) { in sCatch()
111 Formatter& Formatter::sFinally(const std::function<void(void)>& block) { in sFinally()
116 Formatter& Formatter::sWhile(const std::string& cond, const std::function<void(void)>& block) { in sWhile()
121 Formatter& Formatter::operator<<(const std::string& out) { in operator <<()
162 void Formatter::printBlock(const WrappedOutput::Block& block, size_t lineLength) { in printBlock()
205 Formatter& Formatter::operator<<(const WrappedOutput& wrappedOutput) { in operator <<()
213 Formatter& Formatter::operator<<(__type__ n) { /* NOLINT */ \
233 Formatter& Formatter::operator<<(__type__ c) { /* NOLINT */ \
243 bool Formatter::isValid() const { in isValid()
247 size_t Formatter::getIndentation() const { in getIndentation()
251 void Formatter::output(const std::string &text) const { in output()
279 void WrappedOutput::Block::print(Formatter& out, bool wrapped) const { in print()