MCPcopy Create free account
hub / github.com/apache/trafficserver / PrepareIntegralStream

Method PrepareIntegralStream

lib/yamlcpp/src/emitter.cpp:682–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682void Emitter::PrepareIntegralStream(std::stringstream& stream) const {
683
684 switch (m_pState->GetIntFormat()) {
685 case Dec:
686 stream << std::dec;
687 break;
688 case Hex:
689 stream << "0x";
690 stream << std::hex;
691 break;
692 case Oct:
693 stream << "0";
694 stream << std::oct;
695 break;
696 default:
697 assert(false);
698 }
699}
700
701void Emitter::StartedScalar() { m_pState->StartedScalar(); }
702

Callers

nothing calls this directly

Calls 1

GetIntFormatMethod · 0.80

Tested by

no test coverage detected