Lines Matching refs:value

55      * conversion rates that are found in `value` to the output vector.
59 * @param value The "convertUnits" resource, containing unit conversion rate
64 void put(const char *source, ResourceValue &value, UBool /*noFallback*/, UErrorCode &status) override {
68 // that with `value`, we're looking at the convertUnits table.
72 ResourceTable conversionRateTable = value.getTable(status);
74 // We're reusing `value`, which seems to be a common pattern:
75 for (int32_t unit = 0; conversionRateTable.getKeyAndValue(unit, srcUnit, value); unit++) {
76 ResourceTable unitTable = value.getTable(status);
81 for (int32_t i = 0; unitTable.getKeyAndValue(i, key, value); i++) {
83 baseUnit = value.getUnicodeString(status);
85 factor = value.getUnicodeString(status);
87 offset = value.getUnicodeString(status);
141 * preferences info that are found in `value` to the output vector.
145 * @param value The "unitPreferenceData" resource, containing unit
151 void put(const char *key, ResourceValue &value, UBool /*noFallback*/, UErrorCode &status) override {
155 // that with `value`, we're looking at the convertUnits table.
163 ResourceTable unitPreferenceDataTable = value.getTable(status);
165 for (int32_t i = 0; unitPreferenceDataTable.getKeyAndValue(i, category, value); i++) {
166 ResourceTable categoryTable = value.getTable(status);
168 for (int32_t j = 0; categoryTable.getKeyAndValue(j, usage, value); j++) {
169 ResourceTable regionTable = value.getTable(status);
171 for (int32_t k = 0; regionTable.getKeyAndValue(k, region, value); k++) {
172 // `value` now contains the set of preferences for
174 ResourceArray unitPrefs = value.getArray(status);
197 for (int32_t i = 0; unitPrefs.getValue(i, value); i++) {
203 ResourceTable unitPref = value.getTable(status);
205 for (int32_t i = 0; unitPref.getKeyAndValue(i, key, value); ++i) {
208 const UChar *u = value.getString(length, status);
212 const UChar *g = value.getString(length, status);
219 up->skeleton = value.getUnicodeString(status);