MCPcopy Create free account
hub / github.com/alibaba/graph-learn / remove_suffix

Method remove_suffix

graphlearn/src/common/string/lite_string.h:87–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 void remove_suffix(size_t n) {
88 assert(size_ >= n);
89 size_ -= n;
90 }
91
92 bool Consume(LiteString x) {
93 if (starts_with(x)) {

Callers 2

StripTailFunction · 0.80
ConsumeSuffixFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected