Lines Matching refs:SResource
56 static const struct SResource kNoResource = { URES_NONE };
110 res_write16(struct SRBRoot *bundle, struct SResource *res,
129 struct SRBRoot *bundle, struct SResource *res,
139 struct SRBRoot *bundle, struct SResource *res,
218 string_write16(struct SRBRoot *bundle, struct SResource *res, UErrorCode *status) {
219 struct SResource *same;
232 array_write16(struct SRBRoot *bundle, struct SResource *res,
234 struct SResource *current;
264 table_write16(struct SRBRoot *bundle, struct SResource *res,
266 struct SResource *current;
338 res_write16(struct SRBRoot *bundle, struct SResource *res,
375 struct SRBRoot *bundle, struct SResource *res,
384 struct SRBRoot *bundle, struct SResource *res,
399 struct SRBRoot *bundle, struct SResource *res,
401 struct SResource *current;
415 struct SRBRoot *bundle, struct SResource *res,
417 struct SResource *current;
438 struct SRBRoot *bundle, struct SResource *res,
492 struct SRBRoot *bundle, struct SResource *res,
503 struct SRBRoot *bundle, struct SResource *res,
512 struct SRBRoot *bundle, struct SResource *res,
516 struct SResource *current = NULL;
534 struct SRBRoot *bundle, struct SResource *res,
545 struct SRBRoot *bundle, struct SResource *res,
564 struct SRBRoot *bundle, struct SResource *res,
566 struct SResource *current;
603 struct SRBRoot *bundle, struct SResource *res,
832 struct SResource* res_open(struct SRBRoot *bundle, const char *tag,
835 struct SResource* res_open(struct SRBRoot *bundle, const char *tag,
837 struct SResource *res;
843 res = (struct SResource *) uprv_malloc(sizeof(struct SResource));
848 uprv_memset(res, 0, sizeof(struct SResource));
863 struct SResource* res_none() {
864 return (struct SResource*)&kNoResource;
867 struct SResource* table_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, UErrorCode *status) {
868 struct SResource *res = res_open(bundle, tag, comment, status);
877 struct SResource* array_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, UErrorCode *status) {
878 struct SResource *res = res_open(bundle, tag, comment, status);
888 const struct SResource *res = (struct SResource *)key.pointer;
894 const struct SResource *res1 = (struct SResource *)key1.pointer;
895 const struct SResource *res2 = (struct SResource *)key2.pointer;
901 struct SResource *string_open(struct SRBRoot *bundle, char *tag, const UChar *value, int32_t len, const struct UString* comment, UErrorCode *status) {
902 struct SResource *res = res_open(bundle, tag, comment, status);
962 struct SResource *same = res->u.fString.fSame;
969 struct SResource
970 struct SResource *res = res_open(bundle, tag, comment, status);
994 struct SResource* intvector_open(struct SRBRoot *bundle, char *tag, const struct UString* comment, UErrorCode *status) {
995 struct SResource *res = res_open(bundle, tag, comment, status);
1011 struct SResource *int_open(struct SRBRoot *bundle, char *tag, int32_t value, const struct UString* comment, UErrorCode *status) {
1012 struct SResource *res = res_open(bundle, tag, comment, status);
1023 struct SResource *bin_open(struct SRBRoot *bundle, const char *tag, uint32_t length, uint8_t *data, const char* fileName, const struct UString* comment, UErrorCode *status) {
1024 struct SResource *res = res_open(bundle, tag, comment, status);
1107 static void table_close(struct SResource *table) {
1108 struct SResource *current = NULL;
1109 struct SResource *prev = NULL;
1123 static void array_close(struct SResource *array) {
1124 struct SResource *current = NULL;
1125 struct SResource *prev = NULL;
1141 static void string_close(struct SResource *string) {
1151 static void alias_close(struct SResource *alias) {
1158 static void intvector_close(struct SResource *intvector) {
1165 static void int_close(struct SResource *intres) {
1169 static void bin_close(struct SResource *binres) {
1176 void res_close(struct SResource *res) {
1220 void bundle_closeString(struct SRBRoot *bundle, struct SResource *string) {
1228 void table_add(struct SResource *table, struct SResource *res, int linenumber, UErrorCode *status) {
1229 struct SResource *current = NULL;
1230 struct SResource *prev = NULL;
1299 void array_add(struct SResource *array, struct SResource *res, UErrorCode *status) {
1315 void intvector_add(struct SResource *intvector, int32_t value, UErrorCode *status) {
1358 res_getKeyString(const struct SRBRoot *bundle, const struct SResource *res, char temp[8]) {
1598 struct SResource *left = *((struct SResource **)l);
1599 struct SResource *right = *((struct SResource **)r);
1618 struct SResource *left = *((struct SResource **)l);
1619 struct SResource *right = *((struct SResource **)r);
1631 string_writeUTF16v2(struct SRBRoot *bundle, struct SResource *res, int32_t utf16Length) {
1667 struct SResource **array;
1677 array = (struct SResource **)uprv_malloc(count * sizeof(struct SResource **));
1691 array[i] = (struct SResource *)uhash_nextElement(bundle->fStringSet, &pos)->key.pointer;
1694 uprv_sortArray(array, count, (int32_t)sizeof(struct SResource **),
1708 struct SResource *res = array[i];
1712 struct SResource *suffixRes = array[j];
1742 uprv_sortArray(array, count, (int32_t)sizeof(struct SResource **),
1751 struct SResource *res = array[i];
1752 struct SResource *same = res->u.fString.fSame;