Home
last modified time | relevance | path

Searched refs:indent_ (Results 1 – 20 of 20) sorted by relevance

/external/libwebm/common/
Dindent.cc17 Indent::Indent(int indent) : indent_(indent), indent_str_() { Update(); } in Indent()
20 indent_ += indent; in Adjust()
21 if (indent_ < 0) in Adjust()
22 indent_ = 0; in Adjust()
27 void Indent::Update() { indent_str_ = std::string(indent_, ' '); } in Update()
Dindent.h40 int indent_; variable
/external/tensorflow/tensorflow/core/lib/strings/
Dproto_text_util.h46 StrAppend(output_, level_empty_ ? "" : field_separator_, indent_, in OpenNestedMessage()
48 if (!short_debug_) StrAppend(&indent_, " "); in OpenNestedMessage()
54 if (!short_debug_) indent_.resize(indent_.size() - 2); in CloseNestedMessage()
55 StrAppend(output_, level_empty_ ? "" : field_separator_, indent_, "}"); in CloseNestedMessage()
105 absl::StrAppend(output_, level_empty_ ? "" : field_separator_, indent_, in AppendFieldAndValue()
113 string indent_; variable
/external/protobuf/src/google/protobuf/io/
Dprinter.cc185 void Printer::Indent() { indent_ += " "; } in Indent()
188 if (indent_.empty()) { in Outdent()
193 indent_.resize(indent_.size() - 2); in Outdent()
212 CopyToBuffer(indent_.data(), indent_.size()); in WriteRaw()
218 substitutions_[*i].first += indent_.size(); in WriteRaw()
219 substitutions_[*i].second += indent_.size(); in WriteRaw()
271 CopyToBuffer(indent_.data(), indent_.size()); in IndentIfAtStart()
Dprinter.h346 std::string indent_; variable
/external/bcc/src/cc/frontends/b/
Dprinter.cc25 fprintf(out_, "%*s", indent_, ""); in print_indent()
32 ++indent_; in visit_block_stmt_node()
38 --indent_; in visit_block_stmt_node()
40 fprintf(out_, "%*s}", indent_, ""); in visit_block_stmt_node()
171 ++indent_; in visit_method_call_expr_node()
177 --indent_; in visit_method_call_expr_node()
178 fprintf(out_, "%*s}", indent_, ""); in visit_method_call_expr_node()
228 ++indent_; in visit_struct_decl_stmt_node()
234 --indent_; in visit_struct_decl_stmt_node()
235 fprintf(out_, "%*s}", indent_, ""); in visit_struct_decl_stmt_node()
Dprinter.h28 explicit Printer(FILE* out) : out_(out), indent_(0) {} in Printer()
38 int indent_;
Dcodegen_llvm.h114 int indent_; variable
Dcodegen_llvm.cc97 : out_(stdout), mod_(mod), indent_(0), tmp_reg_index_(0), scopes_(scopes), in CodegenLLVM()
1032 ++indent_; in visit_struct_decl_stmt_node()
/external/tflite-support/tensorflow_lite_support/codegen/
Dutils.cc49 CodeWriter::CodeWriter(ErrorReporter* err) : indent_(0), err_(err) {} in CodeWriter()
72 void CodeWriter::Indent() { indent_++; } in Indent()
74 void CodeWriter::Outdent() { indent_--; } in Outdent()
78 res.reserve(indent_str_.size() * indent_); in GenerateIndent()
79 for (int i = 0; i < indent_; i++) { in GenerateIndent()
160 indent_ = 0; in Clear()
Dutils.h107 int indent_; variable
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_writer.cc51 explicit JsonWriter(int indent) : indent_(indent) {} in JsonWriter()
70 int indent_; member in grpc_core::__anon206dd4880111::JsonWriter
106 unsigned spaces = static_cast<unsigned>(depth_ * indent_); in OutputIndent()
107 if (indent_ == 0) return; in OutputIndent()
124 if (indent_ == 0 || depth_ == 0) return; in ValueEnd()
128 if (indent_ == 0) return; in ValueEnd()
251 if (indent_ && !container_empty_) OutputChar('\n'); in ContainerEnds()
/external/swiftshader/third_party/SPIRV-Tools/source/
Ddisassemble.cpp54 indent_(spvIsInBitfield(SPV_BINARY_TO_TEXT_OPTION_INDENT, options) in Disassembler()
121 const int indent_; // How much to indent. 0 means don't indent member in __anonc69a88420111::Disassembler
169 stream_ << std::string(indent_, ' '); in HandleInstruction()
176 stream_ << std::string(indent_, ' '); in HandleInstruction()
182 stream_ << std::string(indent_, ' '); in HandleInstruction()
188 stream_ << std::string(indent_, ' '); in HandleInstruction()
195 if (indent_) in HandleInstruction()
196 stream_ << std::setw(std::max(0, indent_ - 3 - int(id_name.size()))); in HandleInstruction()
201 stream_ << std::string(indent_, ' '); in HandleInstruction()
/external/deqp-deps/SPIRV-Tools/source/
Ddisassemble.cpp54 indent_(spvIsInBitfield(SPV_BINARY_TO_TEXT_OPTION_INDENT, options) in Disassembler()
121 const int indent_; // How much to indent. 0 means don't indent member in __anon707ed5080111::Disassembler
169 stream_ << std::string(indent_, ' '); in HandleInstruction()
176 stream_ << std::string(indent_, ' '); in HandleInstruction()
182 stream_ << std::string(indent_, ' '); in HandleInstruction()
188 stream_ << std::string(indent_, ' '); in HandleInstruction()
195 if (indent_) in HandleInstruction()
196 stream_ << std::setw(std::max(0, indent_ - 3 - int(id_name.size()))); in HandleInstruction()
201 stream_ << std::string(indent_, ' '); in HandleInstruction()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/
Ddisassemble.cpp54 indent_(spvIsInBitfield(SPV_BINARY_TO_TEXT_OPTION_INDENT, options) in Disassembler()
121 const int indent_; // How much to indent. 0 means don't indent member in __anona619db950111::Disassembler
169 stream_ << std::string(indent_, ' '); in HandleInstruction()
176 stream_ << std::string(indent_, ' '); in HandleInstruction()
182 stream_ << std::string(indent_, ' '); in HandleInstruction()
188 stream_ << std::string(indent_, ' '); in HandleInstruction()
195 if (indent_) in HandleInstruction()
196 stream_ << std::setw(std::max(0, indent_ - 3 - int(id_name.size()))); in HandleInstruction()
201 stream_ << std::string(indent_, ' '); in HandleInstruction()
/external/flatbuffers/src/
Didl_gen_grpc.cpp131 FlatBufPrinter(std::string *str) : str_(str), escape_char_('$'), indent_(0) {} in FlatBufPrinter()
158 str_->insert(str_->end(), indent_ * 2, ' '); in Print()
172 void Indent() { indent_++; } in Indent()
175 indent_--; in Outdent()
176 FLATBUFFERS_ASSERT(indent_ >= 0); in Outdent()
182 int indent_; member in flatbuffers::FlatBufPrinter
/external/ruy/ruy/
Dtrace.h100 entry.indent = indent_; in Write()
109 indent_++; in EnterScope()
112 indent_--; in LeaveScope()
121 int indent_ = 0; variable
/external/llvm-project/flang/include/flang/Parser/
Ddump-parse-tree.h719 ++indent_; in NODE()
728 --indent_; in Post()
829 if (emptyline_ && indent_ > 0) { in IndentEmptyLine()
830 for (int i{0}; i < indent_; ++i) { in IndentEmptyLine()
861 int indent_{0};
/external/llvm-project/flang/lib/Parser/
Dunparse.cpp71 (*preStatement_)(x.source, out_, indent_); in Before()
2546 void Done() const { CHECK(indent_ == 0); } in WALK_NESTED_ENUM()
2556 void Indent() { indent_ += indentationAmount_; } in Indent()
2558 CHECK(indent_ >= indentationAmount_); in Outdent()
2559 indent_ -= indentationAmount_; in Outdent()
2627 int indent_{0}; member in Fortran::parser::UnparseVisitor
2642 int sav = indent_; in Put()
2644 indent_ = 0; in Put()
2650 for (int j{0}; j < indent_; ++j) { in Put()
2653 column_ = indent_ + 2; in Put()
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface.cc734 std::string indent_(*target, pos, in ~MemoryOutputStream() local
737 if (indent_.empty()) { in ~MemoryOutputStream()
745 if (data_[i] == '\n') indent_size += indent_.size(); in ~MemoryOutputStream()
757 memcpy(target_ptr, indent_.data(), indent_.size()); in ~MemoryOutputStream()
758 target_ptr += indent_.size(); in ~MemoryOutputStream()