MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / strip_r

Function strip_r

src/builtin/module_builtin_string.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 static inline const char* strip_r(const char *str, uint32_t len) {
119 if (len == 0)
120 return str;
121 const char *t = &str[len-1];
122 while (t >= str && is_space(*t))
123 t--;
124 return t + 1;
125 }
126
127 char* builtin_string_strip ( const char *str, Context * context, LineInfoArg * at ) {
128 const uint32_t strLen = stringLengthSafe ( *context, str );

Callers 2

builtin_string_stripFunction · 0.85

Calls 1

is_spaceFunction · 0.70

Tested by

no test coverage detected