| 1014 | |
| 1015 | template <CFormatter TFormatter> |
| 1016 | void RunFormatterAt( |
| 1017 | const TFormatter& formatter, |
| 1018 | size_t index, |
| 1019 | TStringBuilderBase* builder, |
| 1020 | TStringBuf spec, |
| 1021 | bool singleQuotes, |
| 1022 | bool doubleQuotes) |
| 1023 | { |
| 1024 | // 'n' means 'nothing'; skip the argument. |
| 1025 | if (!spec.Contains('n')) { |
| 1026 | if (singleQuotes) { |
| 1027 | builder->AppendChar('\''); |
| 1028 | } |
| 1029 | if (doubleQuotes) { |
| 1030 | builder->AppendChar('"'); |
| 1031 | } |
| 1032 | |
| 1033 | formatter(index, builder, spec); |
| 1034 | |
| 1035 | if (singleQuotes) { |
| 1036 | builder->AppendChar('\''); |
| 1037 | } |
| 1038 | if (doubleQuotes) { |
| 1039 | builder->AppendChar('"'); |
| 1040 | } |
| 1041 | } |
| 1042 | } |
| 1043 | |
| 1044 | //////////////////////////////////////////////////////////////////////////////// |
| 1045 |
no test coverage detected