| 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 ); |
no test coverage detected