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

Method move_back

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

Source from the content-addressed store, hash-verified

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!");
45 }
46 pos_ -= n;
47 }
48
49 // Get the substring of the input at the given range
50 std::string str(const common_string_range & rng) const;

Callers 3

test_positionsFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_positionsFunction · 0.64