| 383 | } |
| 384 | |
| 385 | bool LoadCountriesImpl(string const & jsonBuffer, StoreInterface & store) |
| 386 | { |
| 387 | try |
| 388 | { |
| 389 | base::Json root(jsonBuffer.c_str()); |
| 390 | LoadGroupImpl(0 /* depth */, root.get(), kInvalidCountryId, store); |
| 391 | return true; |
| 392 | } |
| 393 | catch (base::Json::Exception const & e) |
| 394 | { |
| 395 | LOG(LERROR, (e.Msg())); |
| 396 | return false; |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | int64_t LoadCountriesFromBuffer(string const & jsonBuffer, CountryTree & countries, Affiliations & affiliations, |
| 401 | CountryNameSynonyms & countryNameSynonyms, MwmTopCityGeoIds & mwmTopCityGeoIds, |
no test coverage detected