• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/i18n/

Lines Matching +defs:top +defs:pos

216  * @param top Top timezone resource
221 static UResourceBundle* getZoneByName(const UResourceBundle* top, const UnicodeString& id, UResourceBundle *oldbundle, UErrorCode& status) {
223 UResourceBundle *tmp = ures_getByKey(top, kNAMES, NULL, &status);
235 tmp = ures_getByKey(top, kZONES, tmp, &status); // get Zones object from top
250 UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResourceBundle* oldbundle, UErrorCode& status) {
254 UResourceBundle *r = ures_getByKey(top, kRULES, oldbundle, &status);
267 * @return top-level resource bundle
277 UResourceBundle *top = ures_openDirect(0, kZONEINFO, &ec);
279 /* &res = */ getZoneByName(top, id, &res, ec);
286 UResourceBundle *ares = ures_getByKey(top, kZONES, NULL, &ec); // dereference Zones section
294 return top;
386 UResourceBundle *top = openOlsonResource(id, res, ec);
389 z = new OlsonTimeZone(top, &res, id, ec);
395 ures_close(top);
708 int32_t pos;
710 TZEnumeration(int32_t* mapData, int32_t mapLen, UBool adoptMapData) : pos(0) {
720 UResourceBundle *top = ures_openDirect(0, kZONEINFO, &ec);
721 top = ures_getByKey(top, kNAMES, top, &ec); // dereference Zones section
722 id = ures_getStringByIndex(top, i, &idLen, &ec);
729 ures_close(top);
874 TZEnumeration(const TZEnumeration &other) : StringEnumeration(), map(NULL), localMap(NULL), len(0), pos(0) {
880 pos = other.pos;
884 pos = 0;
891 pos = other.pos;
906 if (U_SUCCESS(status) && map != NULL && pos < len) {
907 getID(map[pos]);
908 ++pos;
915 pos = 0;
967 UResourceBundle *top = openOlsonResource(id, res, ec);
976 ures_close(top);
989 UResourceBundle *top = openOlsonResource(id, res, ec);
1006 UResourceBundle *ares = ures_getByKey(top, kNAMES, NULL, &ec); // dereference Zones section
1015 ures_close(top);
1314 ParsePosition pos(GMT_ID_LENGTH);
1320 if (id[pos.getIndex()] == MINUS /*'-'*/) {
1322 } else if (id[pos.getIndex()] != PLUS /*'+'*/) {
1325 pos.setIndex(pos.getIndex() + 1);
1336 int32_t start = pos.getIndex();
1338 numberFormat->parse(id, n, pos);
1339 if (pos.getIndex() == start) {
1345 if (pos.getIndex() < id.length()) {
1346 if (pos.getIndex() - start > 2
1347 || id[pos.getIndex()] != COLON) {
1352 pos.setIndex(pos.getIndex() + 1);
1353 int32_t oldPos = pos.getIndex();
1355 numberFormat->parse(id, n, pos);
1356 if ((pos.getIndex() - oldPos) != 2) {
1362 if (pos.getIndex() < id.length()) {
1363 if (id[pos.getIndex()] != COLON) {
1368 pos.setIndex(pos.getIndex() + 1);
1369 oldPos = pos.getIndex();
1371 numberFormat->parse(id, n, pos);
1372 if (pos.getIndex() != id.length()
1373 || (pos.getIndex() - oldPos) != 2) {
1389 int32_t length = pos.getIndex() - start;