| 125 | } |
| 126 | |
| 127 | char* builtin_string_strip ( const char *str, Context * context, LineInfoArg * at ) { |
| 128 | const uint32_t strLen = stringLengthSafe ( *context, str ); |
| 129 | if (!strLen) |
| 130 | return nullptr; |
| 131 | const char *start = strip_l(str); |
| 132 | const char *end = strip_r(str, strLen); |
| 133 | return end > start ? context->allocateString(start, uint32_t(end-start), at) : nullptr; |
| 134 | } |
| 135 | |
| 136 | char* builtin_string_strip_left ( const char *str, Context * context, LineInfoArg * at ) { |
| 137 | const uint32_t strLen = stringLengthSafe ( *context, str ); |
nothing calls this directly
no test coverage detected