//----------------------------------------------------------------------- String DataChunk::getLine(bool trimAfter) { static char buf[512]; // prevent continuous allocation / deallocation - not thread safe! int count; count = readUpTo(buf, 511); buf[count] = '\0'; String ret = buf; if (trimAfter) TrimWhitespaceASCII(ret, TRIM_ALL, &ret); return ret; }
// This function is only for backward-compatibility. // To be removed when all callers are updated. TrimPositions TrimWhitespace(const std::string& input, TrimPositions positions, std::string* output) { return TrimWhitespaceASCII(input, positions, output); }