Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
StripHead
Function · 0.80
ConsumePrefix
Function · 0.80
SkipSpaces
Function · 0.80
SafeStringTo32
Function · 0.80
SafeStringTo64
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected