Home
last modified time | relevance | path

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

/external/chromium_org/sync/internal_api/public/base/
Dunique_position.cc250 size_t ref_FFs = reference.find_first_not_of(kuint8max); in FindGreaterWithSuffix() local
253 if (ref_FFs == std::string::npos) { in FindGreaterWithSuffix()
254 ref_FFs = reference.length(); in FindGreaterWithSuffix()
260 if (suffix_FFs > ref_FFs) { in FindGreaterWithSuffix()
265 if (suffix.substr(suffix_FFs) > reference.substr(ref_FFs)) { in FindGreaterWithSuffix()
267 return std::string(ref_FFs - suffix_FFs, kuint8max); in FindGreaterWithSuffix()
272 return std::string(ref_FFs - suffix_FFs + 1, kuint8max); in FindGreaterWithSuffix()
276 char gt_digit = static_cast<uint8>(reference[ref_FFs]) + in FindGreaterWithSuffix()
277 (kuint8max - static_cast<uint8>(reference[ref_FFs]) + 1) / 2; in FindGreaterWithSuffix()
278 return std::string(ref_FFs, kuint8max) + gt_digit; in FindGreaterWithSuffix()