Lines Matching refs:preIndex

74     int preIndex = isupdatedLanguageCodes ? FindLanguageCode(languageCode) : index;
75 AddPrefixDescriptions(languageCode, preIndex);
78 prefixDescriptionsMap->insert(std::make_pair(languageCode, *(prefixDescriptionsArray[preIndex])));
96 int preIndex = 0;
99 while (preIndex < preLanguageCodesSize && mdyIndex < languageCodeInfo->language_codes_size()) {
100 if (strcmp(languageCodeInfo->language_codes(mdyIndex).c_str(), preLanguageCodes[preIndex]) < 0) {
104 } else if (strcmp(languageCodeInfo->language_codes(mdyIndex).c_str(), preLanguageCodes[preIndex]) == 0) {
105 preIndex++;
108 curLanguageCodes[curIndex] = preLanguageCodes[preIndex];
110 preIndex++;
114 while (preIndex < preLanguageCodesSize) {
115 curLanguageCodes[curIndex] = preLanguageCodes[preIndex];
117 preIndex++;
176 int preIndex = 0;
185 while (preIndex < prefixesSize && mdyIndex < prefixesInfo.prefixes_size()) {
186 int prePrefix = prefixDescriptions->prefixes[preIndex];
190 preIndex++;
196 preIndex++;
205 descriptions[curIndex] = prefixDescriptions->descriptions[preIndex];
206 preIndex++;
210 while (preIndex < prefixesSize) {
211 prefixes[curIndex] = prefixDescriptions->prefixes[preIndex];
212 descriptions[curIndex] = prefixDescriptions->descriptions[preIndex];
213 preIndex++;
244 int preIndex = isupdatedCountryCodes ? FindCountryCode(countryCode) : index;
246 if (countryLanguagesMap->find(countryCode) == countryLanguagesMap->end() && preIndex != -1) {
247 countryLanguagesMap->insert(std::make_pair(countryCode, *(countryLanguagesArray[preIndex])));
265 int preIndex = 0;
268 while (preIndex < preCountryCodesSize && mdyIndex < countryCodeInfo->country_codes_size()) {
269 int preCountryCode = preCountryCodes[preIndex];
276 preIndex++;
281 preIndex++;
284 while (preIndex < preCountryCodesSize) {
285 curCountryCodes[curIndex] = preCountryCodes[preIndex];
287 preIndex++;
339 const char** const preIndex = std::lower_bound(preLanguageCodes,
343 if (preIndex == preLanguageCodesEnd || languageCode.compare(*preIndex) != 0) {
346 return preIndex - preLanguageCodes;
352 const int* const preIndex = std::lower_bound(preCountryCodes,
355 if (preIndex == preCountryCodesEnd || *preIndex != countryCode) {
358 return preIndex - preCountryCodes;