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

Method FromString

tools/enum_parser/enum_serialization_runtime/enum_runtime.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82 template <typename TEnumRepresentationType>
83 auto TEnumDescriptionBase<TEnumRepresentationType>::FromString(const TStringBuf name) const -> TRepresentationType {
84 const auto findResult = TryFromString(name);
85 if (Y_LIKELY(findResult.first)) {
86 return findResult.second;
87 }
88 ThrowUndefinedNameException(name, ClassName, AllEnumNames());
89 }
90
91 template <typename TEnumRepresentationType>
92 TEnumRepresentationType TEnumDescriptionBase<TEnumRepresentationType>::FromStringFullScan(const TStringBuf name, const TInitializationData& enumInitData) {

Callers 2

DispatchFromStringImplFnFunction · 0.45

Calls 2

TryFromStringFunction · 0.85

Tested by

no test coverage detected