Lines Matching refs:string
54 impl::match(const std::string& str, const std::string& regex)
79 std::string
80 impl::to_lower(const std::string& str)
82 std::string lc;
83 for (std::string::const_iterator iter = str.begin(); iter != str.end();
89 std::vector< std::string >
90 impl::split(const std::string& str, const std::string& delim)
92 std::vector< std::string > words;
94 std::string::size_type pos = 0, newpos = 0;
95 while (pos < str.length() && newpos != std::string::npos) {
105 std::string
106 impl::trim(const std::string& str)
108 std::string::size_type pos1 = str.find_first_not_of(" \t");
109 std::string::size_type pos2 = str.find_last_not_of(" \t");
111 if (pos1 == std::string::npos && pos2 == std::string::npos)
113 else if (pos1 == std::string::npos)
115 else if (pos2 == std::string::npos)
122 impl::to_bool(const std::string& str)
134 impl::to_bytes(std::string str)
148 throw std::runtime_error(std::string("Unknown size unit '") + unit