Home
last modified time | relevance | path

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

/external/chromium_org/sync/internal_api/public/base/
Dunique_position.cc218 size_t suffix_zeroes = suffix.find_first_not_of('\0'); in FindSmallerWithSuffix() local
223 DCHECK_NE(suffix_zeroes, std::string::npos); in FindSmallerWithSuffix()
225 if (suffix_zeroes > ref_zeroes) { in FindSmallerWithSuffix()
230 if (suffix.substr(suffix_zeroes) < reference.substr(ref_zeroes)) { in FindSmallerWithSuffix()
232 return std::string(ref_zeroes - suffix_zeroes, '\0'); in FindSmallerWithSuffix()
233 } else if (suffix_zeroes > 1) { in FindSmallerWithSuffix()
237 return std::string(ref_zeroes - suffix_zeroes + 1, '\0'); in FindSmallerWithSuffix()