Lines Matching refs:Indent
53 std::string Indent(IndentCount * 2 + 4, ' '); in EmitStringMatcherForChar() local
65 OS << Indent << Split.first << "\t // \"" << Matches[0]->first << "\"\n"; in EmitStringMatcherForChar()
70 OS << Indent << Split.first << "\n"; in EmitStringMatcherForChar()
92 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '" in EmitStringMatcherForChar()
94 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
98 OS << Indent << "if (memcmp(" << StrVariableName << ".data()+" << CharNo in EmitStringMatcherForChar()
101 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
110 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n"; in EmitStringMatcherForChar()
111 OS << Indent << "default: break;\n"; in EmitStringMatcherForChar()
115 OS << Indent << "case '" << LI.first << "':\t // " << LI.second.size() in EmitStringMatcherForChar()
122 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
125 OS << Indent << "}\n"; in EmitStringMatcherForChar()
131 void StringMatcher::Emit(unsigned Indent, bool IgnoreDuplicates) const { in Emit() argument
143 OS.indent(Indent*2+2) << "switch (" << StrVariableName << ".size()) {\n"; in Emit()
144 OS.indent(Indent*2+2) << "default: break;\n"; in Emit()
147 OS.indent(Indent * 2 + 2) in Emit()
150 if (EmitStringMatcherForChar(LI.second, 0, Indent, IgnoreDuplicates)) in Emit()
151 OS.indent(Indent*2+4) << "break;\n"; in Emit()
154 OS.indent(Indent*2+2) << "}\n"; in Emit()