MCPcopy Create free account
hub / github.com/catboost/catboost / RunFormatterAt

Function RunFormatterAt

library/cpp/yt/string/format-inl.h:1016–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014
1015template <CFormatter TFormatter>
1016void 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

Callers 2

RunFormatterFullScanFunction · 0.85
RunFormatterFunction · 0.85

Calls 3

AppendCharMethod · 0.80
formatterFunction · 0.50
ContainsMethod · 0.45

Tested by

no test coverage detected