MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / consume_spaces

Method consume_spaces

smallthinker/common/chat-parser.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool common_chat_msg_parser::consume_spaces() {
76 const auto length = input_.size();
77 auto consumed = false;
78 while (pos_ < length && std::isspace(input_[pos_])) {
79 ++pos_;
80 consumed = true;
81 }
82 return consumed;
83}
84
85bool common_chat_msg_parser::try_consume_literal(const std::string & literal) {
86 auto pos = pos_;

Callers 3

parse_json_tool_callsFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected