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

Method SkipSpaceAndGetCharFallback

library/cpp/yson/detail.h:687–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685
686 template <bool AllowFinish>
687 char SkipSpaceAndGetCharFallback() {
688 while (true) {
689 if (TBaseStream::IsEmpty()) {
690 if (TBaseStream::IsFinished()) {
691 return '\0';
692 }
693 TBaseStream::template Refresh<AllowFinish>();
694 continue;
695 }
696 if (!IsSpaceFast(*TBaseStream::Begin())) {
697 break;
698 }
699 TBaseStream::Advance(1);
700 }
701 return TBaseStream::template GetChar<AllowFinish>();
702 }
703 };
704
705 ////////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

BeginClass · 0.85
IsEmptyFunction · 0.50
AdvanceFunction · 0.50

Tested by

no test coverage detected