14 while (s && *s && std::isspace(
static_cast<unsigned char>(*s))) {
31inline const char*
nextToken(
const char* s,
char* out,
size_t outSize) {
32 if (!out || outSize == 0)
return nullptr;
34 if (!s || !*s)
return nullptr;
36 while (*s && i + 1 < outSize) {
37 if (*s ==
'\\' && *(s + 1) ==
' ') {
42 if (std::isspace(
static_cast<unsigned char>(*s)))
break;
47 if (*s ==
'\\' && *(s + 1) ==
' ') {
51 if (std::isspace(
static_cast<unsigned char>(*s)))
break;
64 for (
const char* r = s; *r; ) {
65 if (*r ==
'\\' && *(r + 1) ==
' ') {
const char * skipSpaces(const char *s)
Advances over leading ASCII whitespace in a C string.
void unescapeSpaces(char *s)
Replaces every \ escape sequence with a single space character in-place.
const char * nextToken(const char *s, char *out, size_t outSize)
Extracts one whitespace-delimited token from a string.