Home
last modified time | relevance | path

Searched refs:size_diff (Results 1 – 1 of 1) sorted by relevance

/build/kati/
Dstrutil.cc154 ssize_t size_diff = str.size() - prefix.size(); in HasPrefix() local
155 return size_diff >= 0 && str.substr(0, prefix.size()) == prefix; in HasPrefix()
159 ssize_t size_diff = str.size() - suffix.size(); in HasSuffix() local
160 return size_diff >= 0 && str.substr(size_diff) == suffix; in HasSuffix()
176 ssize_t size_diff = str.size() - prefix.size(); in TrimPrefix() local
177 if (size_diff < 0 || str.substr(0, prefix.size()) != prefix) in TrimPrefix()
183 ssize_t size_diff = str.size() - suffix.size(); in TrimSuffix() local
184 if (size_diff < 0 || str.substr(size_diff) != suffix) in TrimSuffix()
186 return str.substr(0, size_diff); in TrimSuffix()