Lines Matching defs:top
162 static UBool getOlsonMeta(const UResourceBundle* top) {
167 ures_getByKey(top, kZONES, &res, &ec);
183 UResourceBundle *top = ures_openDirect(0, kZONEINFO, &ec);
185 getOlsonMeta(top);
187 ures_close(top);
235 * @param top Top timezone resource
240 static UResourceBundle* getZoneByName(const UResourceBundle* top, const UnicodeString& id, UResourceBundle *oldbundle, UErrorCode& status) {
242 UResourceBundle *tmp = ures_getByKey(top, kNAMES, NULL, &status);
254 tmp = ures_getByKey(top, kZONES, tmp, &status); // get Zones object from top
269 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResourceBundle* oldbundle, UErrorCode& status) {
273 UResourceBundle *r = ures_getByKey(top, kRULES, oldbundle, &status);
286 * @return top-level resource bundle
296 UResourceBundle *top = ures_openDirect(0, kZONEINFO, &ec);
298 /* &res = */ getZoneByName(top, id, &res, ec);
302 if (ures_getType(&res) == URES_INT && getOlsonMeta(top)) {
305 UResourceBundle *ares = ures_getByKey(top, kZONES, NULL, &ec); // dereference Zones section
313 return top;
432 UResourceBundle *top = openOlsonResource(id, res, ec);
435 z = new OlsonTimeZone(top, &res, ec);
443 ures_close(top);
669 UResourceBundle *top = ures_openDirect(0, kZONEINFO, &ec);
670 top = ures_getByKey(top, kNAMES, top, &ec); // dereference Zones section
671 id = ures_getStringByIndex(top, i, &idLen, &ec);
678 ures_close(top);
848 UResourceBundle *top = openOlsonResource(id, res, ec);
857 ures_close(top);
870 UResourceBundle *top = openOlsonResource(id, res, ec);
887 UResourceBundle *ares = ures_getByKey(top, kNAMES, NULL, &ec); // dereference Zones section
896 ures_close(top);