Lines Matching defs:string
24 std::string ReadFileToString(const std::string &fileName)
33 std::string content(firstIt, lastIt);
37 std::vector<std::string> StringSplit(std::string source, const std::string &split)
39 std::vector<std::string> result;
44 while ((pos = source.find(split)) != std::string::npos) {
46 std::string token = source.substr(0, pos);
60 bool StringEndsWith(const std::string &string, const std::string &with)
62 if (string.empty()) {
63 // empty string only end with empty string
70 return string.rfind(with) == (string.length() - with.length());