/********************************************************************
* COPYRIGHT:
- * Copyright (c) 2002-2004, International Business Machines Corporation and
+ * Copyright (c) 2002-2006, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
UResourceBundle *t = NULL;
for(i = 0; i < ures_getSize(data); i++) {
t = ures_getByIndex(data, i, t, &status);
- fData->put(UnicodeString(ures_getKey(t), ""), new ResourceBundle(t, status), status);
+ fData->put(UnicodeString(ures_getKey(t), -1, US_INV), new ResourceBundle(t, status), status);
}
ures_close(t);
}
return NULL;
}
- UnicodeString hashKey(key, "");
+ UnicodeString hashKey(key, -1, US_INV);
const ResourceBundle *r = (ResourceBundle *)fData->get(hashKey);
if(r != NULL) {
return r;
if(U_SUCCESS(status)) {
return r->getString(status);
} else {
- status = U_MISSING_RESOURCE_ERROR;
return UnicodeString();
}
}
}
return result;
} else {
- status = U_MISSING_RESOURCE_ERROR;
return NULL;
}
}
}
return result;
} else {
- status = U_MISSING_RESOURCE_ERROR;
return NULL;
}
}
+