Lines Matching refs:two
20 bool starts_with(const std::string& one, const std::string& two) {
21 return one.compare(0, two.size(), two) == 0;
24 std::string lstrip(const std::string& one, const std::string& two) {
25 if (starts_with(one, two))
26 return one.substr(two.size());
30 bool ends_with(const std::string& one, const std::string& two) {
31 if (two.size() > one.size())
34 return one.compare(one.size() - two.size(), two.size(), two) == 0;