1#ifndef DBC_TEXT_UTILS_H
2#define DBC_TEXT_UTILS_H
8 inline std::string TrimText(
const std::string &text) {
9 std::string::size_type begin = 0U;
10 while ((begin < text.size()) &&
11 std::isspace(
static_cast<unsigned char>(text[begin])))
14 std::string::size_type end = text.size();
15 while ((end > begin) &&
16 std::isspace(
static_cast<unsigned char>(text[end - 1U])))
19 return text.substr(begin, end - begin);