Home | History | Annotate | Download | only in src

Lines Matching refs:lookup_key

36 #include "lookup_key.h"
253 LookupKey lookup_key;
254 lookup_key.FromAddress(address);
255 return lookup_key.ToKeyString(0); // Zero depth = COUNTRY level.
275 void PreloadSupplier::Supply(const LookupKey& lookup_key,
278 bool success = GetRuleHierarchy(lookup_key, &hierarchy);
279 supplied(success, lookup_key, hierarchy);
282 const Rule* PreloadSupplier::GetRule(const LookupKey& lookup_key) const {
283 assert(IsLoaded(lookup_key.GetRegionCode()));
285 if (!GetRuleHierarchy(lookup_key, &hierarchy)) {
288 return hierarchy.rule[lookup_key.GetDepth()];
322 bool PreloadSupplier::GetRuleHierarchy(const LookupKey& lookup_key,
326 if (RegionDataConstants::IsSupported(lookup_key.GetRegionCode())) {
328 lookup_key.GetDepth(),
329 RegionDataConstants::GetMaxLookupKeyDepth(lookup_key.GetRegionCode()));
332 const std::string& key = lookup_key.ToKeyString(depth);