32 for (
const char* i = whitespaces; *i !=
'\0'; ++i) {
33 m_isWhitespace.set(*i);
38 StripSpace::convert(
const uint8_t* buf,
size_t buflen)
40 auto buffer = make_unique<OBuffer>();
41 buffer->reserve(buflen);
43 for (
size_t i = 0; i < buflen; ++i) {
45 if (!m_isWhitespace[ch]) {
46 buffer->push_back(ch);
57 return make_unique<StripSpace>(whitespaces);