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

Method move_to

smallthinker/common/chat-parser.h:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 const common_chat_syntax & syntax() const { return syntax_; }
35
36 void move_to(size_t pos) {
37 if (pos > input_.size()) {
38 throw std::runtime_error("Invalid position!");
39 }
40 pos_ = pos;
41 }
42 void move_back(size_t n) {
43 if (pos_ < n) {
44 throw std::runtime_error("Can't move back that far!");

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected