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

Method remove_prefix

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

Source from the content-addressed store, hash-verified

79 }
80
81 void remove_prefix(size_t n) {
82 assert(n <= size());
83 data_ += n;
84 size_ -= n;
85 }
86
87 void remove_suffix(size_t n) {
88 assert(size_ >= n);

Callers 5

StripHeadFunction · 0.80
ConsumePrefixFunction · 0.80
SkipSpacesFunction · 0.80
SafeStringTo32Function · 0.80
SafeStringTo64Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected