Lines Matching refs:Indent
52 std::string Indent(IndentCount * 2 + 4, ' '); in EmitStringMatcherForChar() local
64 OS << Indent << Split.first << "\t // \"" << Matches[0]->first << "\"\n"; in EmitStringMatcherForChar()
69 OS << Indent << Split.first << "\n"; in EmitStringMatcherForChar()
91 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '" in EmitStringMatcherForChar()
93 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
97 OS << Indent << "if (memcmp(" << StrVariableName << ".data()+" << CharNo in EmitStringMatcherForChar()
100 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
109 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n"; in EmitStringMatcherForChar()
110 OS << Indent << "default: break;\n"; in EmitStringMatcherForChar()
114 OS << Indent << "case '" << LI.first << "':\t // " << LI.second.size() in EmitStringMatcherForChar()
121 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
124 OS << Indent << "}\n"; in EmitStringMatcherForChar()
130 void StringMatcher::Emit(unsigned Indent, bool IgnoreDuplicates) const { in Emit() argument
142 OS.indent(Indent*2+2) << "switch (" << StrVariableName << ".size()) {\n"; in Emit()
143 OS.indent(Indent*2+2) << "default: break;\n"; in Emit()
146 OS.indent(Indent * 2 + 2) in Emit()
149 if (EmitStringMatcherForChar(LI.second, 0, Indent, IgnoreDuplicates)) in Emit()
150 OS.indent(Indent*2+4) << "break;\n"; in Emit()
153 OS.indent(Indent*2+2) << "}\n"; in Emit()