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

Function FormatUnexpectedMarker

library/cpp/yt/yson_string/convert.cpp:154–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152namespace {
153
154TString FormatUnexpectedMarker(char ch)
155{
156 switch (ch) {
157 case NDetail::BeginListSymbol:
158 return "list";
159 case NDetail::BeginMapSymbol:
160 return "map";
161 case NDetail::BeginAttributesSymbol:
162 return "attributes";
163 case NDetail::EntitySymbol:
164 return "\"entity\" literal";
165 case NDetail::StringMarker:
166 return "\"string\" literal";
167 case NDetail::Int64Marker:
168 return "\"int64\" literal";
169 case NDetail::DoubleMarker:
170 return "\"double\" literal";
171 case NDetail::FalseMarker:
172 case NDetail::TrueMarker:
173 return "\"boolean\" literal";
174 case NDetail::Uint64Marker:
175 return "\"uint64\" literal";
176 default:
177 return Format("unexpected symbol %qv", ch);
178 }
179}
180
181i64 ParseInt64FromYsonString(const TYsonStringBuf& str)
182{

Callers 5

ParseInt64FromYsonStringFunction · 0.85

Calls 1

FormatFunction · 0.50

Tested by

no test coverage detected