Home | History | Annotate | Download | only in libprop

Lines Matching refs:dict

50 "<dict>\n"
57 " <dict>\n"
62 " </dict>\n"
63 " <dict>\n"
68 " </dict>\n"
69 " <dict>\n"
74 " </dict>\n"
80 "</dict>\n"
106 prop_dictionary_t dict;
109 dict = prop_dictionary_create();
110 ATF_REQUIRE(dict != NULL);
116 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "one", num), true);
124 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "two", str), true);
137 dict_copy = prop_dictionary_copy(dict);
143 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "three", arr), true);
150 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "true-val", val), true);
155 ATF_REQUIRE_EQ(prop_dictionary_set(dict, "false-val", val), true);
159 ext1 = prop_dictionary_externalize(dict);
176 prop_object_release(dict);
221 prop_dictionary_t dict = prop_dictionary_internalize(
224 "<dict>\n"
233 "</dict>\n"
237 ATF_REQUIRE(dict != NULL);
243 ok = prop_dictionary_get_data(dict, "encoded", &data, &size);
248 ok = prop_dictionary_get_data(dict, "length-1", &data, &size);
253 ok = prop_dictionary_get_data(dict, "length-2", &data, &size);
258 ok = prop_dictionary_get_data(dict, "length-3", &data, &size);
263 prop_object_release(dict);
837 prop_dictionary_t dict;
842 dict = prop_dictionary_create();
843 ATF_REQUIRE(dict != NULL);
845 ATF_REQUIRE(prop_dictionary_set_schar(dict, "schar", SCHAR_MIN));
846 ATF_REQUIRE(prop_dictionary_get_schar(dict, "schar", &val.v_schar));
849 ATF_REQUIRE(prop_dictionary_set_short(dict, "shrt", SHRT_MIN));
850 ATF_REQUIRE(prop_dictionary_get_short(dict, "shrt", &val.v_shrt));
853 ATF_REQUIRE(prop_dictionary_set_int(dict, "int", INT_MIN));
854 ATF_REQUIRE(prop_dictionary_get_int(dict, "int", &val.v_int));
857 ATF_REQUIRE(prop_dictionary_set_long(dict, "long", LONG_MIN));
858 ATF_REQUIRE(prop_dictionary_get_long(dict, "long", &val.v_long));
861 ATF_REQUIRE(prop_dictionary_set_longlong(dict, "longlong", LLONG_MIN));
862 ATF_REQUIRE(prop_dictionary_get_longlong(dict, "longlong",
866 ATF_REQUIRE(prop_dictionary_set_intptr(dict, "intptr", INTPTR_MIN));
867 ATF_REQUIRE(prop_dictionary_get_intptr(dict, "intptr", &val.v_intptr));
870 ATF_REQUIRE(prop_dictionary_set_int8(dict, "int8", INT8_MIN));
871 ATF_REQUIRE(prop_dictionary_get_int8(dict, "int8", &val.v_int8));
874 ATF_REQUIRE(prop_dictionary_set_int16(dict, "int16", INT16_MIN));
875 ATF_REQUIRE(prop_dictionary_get_int16(dict, "int16", &val.v_int16));
878 ATF_REQUIRE(prop_dictionary_set_int32(dict, "int32", INT32_MIN));
879 ATF_REQUIRE(prop_dictionary_get_int32(dict, "int32", &val.v_int32));
882 ATF_REQUIRE(prop_dictionary_set_int64(dict, "int64", INT64_MIN));
883 ATF_REQUIRE(prop_dictionary_get_int64(dict, "int64", &val.v_int64));
887 ATF_REQUIRE(prop_dictionary_set_uchar(dict, "uchar", UCHAR_MAX));
888 ATF_REQUIRE(prop_dictionary_get_uchar(dict, "uchar", &val.v_uchar));
891 ATF_REQUIRE(prop_dictionary_set_ushort(dict, "ushrt", USHRT_MAX));
892 ATF_REQUIRE(prop_dictionary_get_ushort(dict, "ushrt", &val.v_ushrt));
895 ATF_REQUIRE(prop_dictionary_set_uint(dict, "uint", UINT_MAX));
896 ATF_REQUIRE(prop_dictionary_get_uint(dict, "uint", &val.v_uint));
899 ATF_REQUIRE(prop_dictionary_set_ulong(dict, "ulong", ULONG_MAX));
900 ATF_REQUIRE(prop_dictionary_get_ulong(dict, "ulong", &val.v_ulong));
903 ATF_REQUIRE(prop_dictionary_set_ulonglong(dict, "ulonglong",
905 ATF_REQUIRE(prop_dictionary_get_ulonglong(dict, "ulonglong",
909 ATF_REQUIRE(prop_dictionary_set_uintptr(dict, "uintptr", UINTPTR_MAX));
910 ATF_REQUIRE(prop_dictionary_get_uintptr(dict, "uintptr",
914 ATF_REQUIRE(prop_dictionary_set_uint8(dict, "uint8", UINT8_MAX));
915 ATF_REQUIRE(prop_dictionary_get_uint8(dict, "uint8", &val.v_uint8));
918 ATF_REQUIRE(prop_dictionary_set_uint16(dict, "uint16", UINT16_MAX));
919 ATF_REQUIRE(prop_dictionary_get_uint16(dict, "uint16", &val.v_uint16));
922 ATF_REQUIRE(prop_dictionary_set_uint32(dict, "uint32", UINT32_MAX));
923 ATF_REQUIRE(prop_dictionary_get_uint32(dict, "uint32", &val.v_uint32));
926 ATF_REQUIRE(prop_dictionary_set_uint64(dict, "uint64", UINT64_MAX));
927 ATF_REQUIRE(prop_dictionary_get_uint64(dict, "uint64", &val.v_uint64));
930 ATF_REQUIRE(prop_dictionary_set_string_nocopy(dict, "string",
932 ATF_REQUIRE(prop_dictionary_get_string(dict, "string", &cp));
934 prop_dictionary_remove(dict, "string");
936 ATF_REQUIRE(prop_dictionary_set_string(dict, "string", const_string1));
937 ATF_REQUIRE(prop_dictionary_get_string(dict, "string", &cp));
941 ATF_REQUIRE(prop_dictionary_set_data_nocopy(dict, "data",
944 ATF_REQUIRE(prop_dictionary_get_data(dict, "data", &v, NULL));
946 prop_dictionary_remove(dict, "data");
949 ATF_REQUIRE(prop_dictionary_set_data(dict, "data", const_data1,
951 ATF_REQUIRE(prop_dictionary_get_data(dict, "data", &v, &size));
956 prop_object_release(dict);