Lines Matching refs:Indent
47 std::string Indent(IndentCount*2+4, ' '); in EmitStringMatcherForChar() local
58 OS << Indent << Split.first << "\t // \"" << Matches[0]->first << "\"\n"; in EmitStringMatcherForChar()
63 OS << Indent << Split.first << "\n"; in EmitStringMatcherForChar()
86 OS << Indent << "if (" << StrVariableName << "[" << CharNo << "] != '" in EmitStringMatcherForChar()
88 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
92 OS << Indent << "if (memcmp(" << StrVariableName << ".data()+" << CharNo in EmitStringMatcherForChar()
95 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
103 OS << Indent << "switch (" << StrVariableName << "[" << CharNo << "]) {\n"; in EmitStringMatcherForChar()
104 OS << Indent << "default: break;\n"; in EmitStringMatcherForChar()
109 OS << Indent << "case '" << LI->first << "':\t // " in EmitStringMatcherForChar()
114 OS << Indent << " break;\n"; in EmitStringMatcherForChar()
117 OS << Indent << "}\n"; in EmitStringMatcherForChar()
124 void StringMatcher::Emit(unsigned Indent) const { in Emit()
136 OS.indent(Indent*2+2) << "switch (" << StrVariableName << ".size()) {\n"; in Emit()
137 OS.indent(Indent*2+2) << "default: break;\n"; in Emit()
141 OS.indent(Indent*2+2) << "case " << LI->first << ":\t // " in Emit()
144 if (EmitStringMatcherForChar(LI->second, 0, Indent)) in Emit()
145 OS.indent(Indent*2+4) << "break;\n"; in Emit()
148 OS.indent(Indent*2+2) << "}\n"; in Emit()