예제 #1
0
 UBool upToDate(UErrorCode& status) const {
     if (U_SUCCESS(status)) {
         if (_timestamp == _service->getTimestamp()) {
             return TRUE;
         }
         status = U_ENUM_OUT_OF_SYNC_ERROR;
     }
     return FALSE;
 }
예제 #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);
     }
 }