A sub‐string delimiter that splits by ASCII whitespace (space, tab, vertical tab, formfeed, linefeed, or carriage return).

Synopsis

Declared in <absl/strings/str_split.h>

class ByAsciiWhitespace;

Description

Note: you probably want to use absl::SkipEmpty() as well!

This class is equivalent to ByAnyChar with ASCII whitespace chars.

Example:

std::vector<std::string> v = absl::StrSplit( "a btcn d n", absl::ByAsciiWhitespace(), absl::SkipEmpty()); // v[0]== "a", v[1]== "b", v[2]== "c", v[3]== "d"

Member Functions

Name

Description

Find

Finds the next run of ASCII whitespace in text at or after pos.

Created with MrDocs