Searched refs:size_diff (Results 1 – 1 of 1) sorted by relevance
154 ssize_t size_diff = str.size() - prefix.size(); in HasPrefix() local155 return size_diff >= 0 && str.substr(0, prefix.size()) == prefix; in HasPrefix()159 ssize_t size_diff = str.size() - suffix.size(); in HasSuffix() local160 return size_diff >= 0 && str.substr(size_diff) == suffix; in HasSuffix()176 ssize_t size_diff = str.size() - prefix.size(); in TrimPrefix() local177 if (size_diff < 0 || str.substr(0, prefix.size()) != prefix) in TrimPrefix()183 ssize_t size_diff = str.size() - suffix.size(); in TrimSuffix() local184 if (size_diff < 0 || str.substr(size_diff) != suffix) in TrimSuffix()186 return str.substr(0, size_diff); in TrimSuffix()