A struct representing a string or part of a string. Strings within the
parser are represented by a char* and a length; the char* points into
an existing data buffer owned by some other code (often the original input).
GumboStringPieces are assumed (by convention) to be immutable, because they
may share data. Use GumboStringBuffer if you need to construct a string.
Clients should assume that it is not NUL-terminated, and should always use
explicit lengths when manipulating them.
A struct representing a string or part of a string. Strings within the parser are represented by a char* and a length; the char* points into an existing data buffer owned by some other code (often the original input). GumboStringPieces are assumed (by convention) to be immutable, because they may share data. Use GumboStringBuffer if you need to construct a string. Clients should assume that it is not NUL-terminated, and should always use explicit lengths when manipulating them.