MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / ltrim

Function ltrim

src/include/common/string_utils.h:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 static bool CharacterIsDigit(char c) { return c >= '0' && c <= '9'; }
38
39 static std::string ltrim(const std::string& input) {
40 auto s = input;
41 s.erase(s.begin(),
42 find_if(s.begin(), s.end(), [](unsigned char ch) { return !isspace(ch); }));
43 return s;
44 }
45 static std::string_view ltrim(std::string_view input) {
46 auto begin = 0u;
47 while (begin < input.size() && isspace(input[begin])) {

Callers 11

TESTFunction · 0.85
inferMapOrStructFunction · 0.85
parseQueryMethod · 0.85
isBuiltInTypeMethod · 0.85
convertFromStringMethod · 0.85
parseStructFieldsFunction · 0.85
parseDecimalTypeFunction · 0.85
trimMethod · 0.85
noProxyMatchesFunction · 0.85

Calls 4

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68