예제 #1
0
 ServiceEnumeration(const ICULocaleService* service, UErrorCode &status)
     : _service(service)
     , _timestamp(service->getTimestamp())
     , _ids(uhash_deleteUnicodeString, NULL, status)
     , _pos(0)
 {
     _service->getVisibleIDs(_ids, status);
 }
예제 #2
0
 virtual void reset(UErrorCode& status) {
     if (status == U_ENUM_OUT_OF_SYNC_ERROR) {
         status = U_ZERO_ERROR;
     }
     if (U_SUCCESS(status)) {
         _timestamp = _service->getTimestamp();
         _pos = 0;
         _service->getVisibleIDs(_ids, status);
     }
 }