Home
last modified time | relevance | path

Searched refs:uresult (Results 1 – 25 of 42) sorted by relevance

12

/third_party/icu/icu4c/source/test/cintltst/
Dunumberrangeformattertst.c59 UFormattedNumberRange* uresult = unumrf_openResult(&ec); in TestExampleCode() local
63 unumrf_formatDoubleRange(uformatter, 3.0, 5.0, uresult, &ec); in TestExampleCode()
68 const UChar* str = ufmtval_getString(unumrf_resultAsValue(uresult, &ec), &len, &ec); in TestExampleCode()
76 unumrf_closeResult(uresult); in TestExampleCode()
91 UFormattedNumberRange* uresult = unumrf_openResult(&ec); in TestFormattedValue() local
95 unumrf_formatDecimalRange(uformatter, "5.5e4", -1, "1.5e5", -1, uresult, &ec); in TestFormattedValue()
98 const UFormattedValue* fv = unumrf_resultAsValue(uresult, &ec); in TestFormattedValue()
118 unumrf_resultGetIdentityResult(uresult, &ec)); in TestFormattedValue()
121 unumrf_closeResult(uresult); in TestFormattedValue()
174 UFormattedNumberRange* uresult = unumrf_openResult(&ec); in TestGetDecimalNumbers() local
[all …]
Dunumberformattertst.c108 UFormattedNumber* uresult = unumf_openResult(&ec); in TestSkeletonFormatToFields() local
110 unumf_formatInt(uformatter, 9876543210L, uresult, &ec); // "+9,876,543,210.00 m" in TestSkeletonFormatToFields()
115 unumf_resultNextFieldPosition(uresult, &ufpos, &ec); in TestSkeletonFormatToFields()
123 unumf_resultGetAllFieldPositions(uresult, ufpositer, &ec); in TestSkeletonFormatToFields()
168 while (unumf_resultNextFieldPosition(uresult, &actual, &ec)) { in TestSkeletonFormatToFields()
178 unumf_closeResult(uresult); in TestSkeletonFormatToFields()
190 UFormattedNumber* uresult = unumf_openResult(&ec); in TestExampleCode() local
195 unumf_formatDouble(uformatter, 5142.3, uresult, &ec); in TestExampleCode()
199 int32_t len = unumf_resultToString(uresult, NULL, 0, &ec); in TestExampleCode()
203 unumf_resultToString(uresult, buffer, len+1, &ec); in TestExampleCode()
[all …]
Dcpluralrulestest.c266 UFormattedNumber* uresult = NULL; in TestFormatted() local
279 uresult = unumf_openResult(&ec); in TestFormatted()
284 unumf_formatDouble(unumf, 100.2, uresult, &ec); in TestFormatted()
290 uplrules_selectFormatted(uplrules, uresult, buffer, 40, &ec); in TestFormatted()
300 unumf_closeResult(uresult); in TestFormatted()
306 UFormattedNumberRange* uresult = NULL; in TestSelectRange() local
330 uresult = unumrf_openResult(&ec); in TestSelectRange()
335 unumrf_formatDoubleRange(unumrf, d1, d2, uresult, &ec); in TestSelectRange()
341 int32_t len = uplrules_selectForRange(uplrules, uresult, buffer, 40, &ec); in TestSelectRange()
352 unumrf_closeResult(uresult); in TestSelectRange()
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_capi.cpp74 const UFormattedNumber* uresult, UErrorCode& status) { in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
75 auto* result = UFormattedNumberApiHelper::validate(uresult, status); in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
113 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, in unumf_formatInt() argument
116 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatInt()
125 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, in unumf_formatDouble() argument
128 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatDouble()
138 UFormattedNumber* uresult, UErrorCode* ec) { in unumf_formatDecimal() argument
140 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatDecimal()
150 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, in unumf_resultToString() argument
152 const auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_resultToString()
[all …]
Dnumrange_capi.cpp75 const UFormattedNumberRange* uresult, UErrorCode& status) { in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
76 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, status); in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
112 UFormattedNumberRange* uresult, in unumrf_formatDoubleRange() argument
115 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDoubleRange()
129 UFormattedNumberRange* uresult, in unumrf_formatDecimalRange() argument
132 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDecimalRange()
143 const UFormattedNumberRange* uresult, in unumrf_resultGetIdentityResult() argument
145 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_resultGetIdentityResult()
154 const UFormattedNumberRange* uresult, in unumrf_resultGetFirstDecimalNumber() argument
158 const auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_resultGetFirstDecimalNumber()
[all …]
Dformattedval_impl.h271 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \
272 const ImplType* result = HelperType::validate(uresult, *ec); \
277 Prefix ## _closeResult (CType* uresult) { \
279 const ImplType* impl = HelperType::validate(uresult, localStatus); \
/third_party/icu/icu4c/source/i18n/
Dnumber_capi.cpp74 const UFormattedNumber* uresult, UErrorCode& status) { in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
75 auto* result = UFormattedNumberApiHelper::validate(uresult, status); in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
113 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, in unumf_formatInt() argument
116 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatInt()
126 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, in unumf_formatDouble() argument
129 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatDouble()
140 UFormattedNumber* uresult, UErrorCode* ec) { in unumf_formatDecimal() argument
142 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatDecimal()
153 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, in unumf_resultToString() argument
155 const auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_resultToString()
[all …]
Dnumrange_capi.cpp75 const UFormattedNumberRange* uresult, UErrorCode& status) { in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
76 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, status); in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
112 UFormattedNumberRange* uresult, in unumrf_formatDoubleRange() argument
115 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDoubleRange()
131 UFormattedNumberRange* uresult, in unumrf_formatDecimalRange() argument
134 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDecimalRange()
147 const UFormattedNumberRange* uresult, in unumrf_resultGetIdentityResult() argument
149 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_resultGetIdentityResult()
158 const UFormattedNumberRange* uresult, in unumrf_resultGetFirstDecimalNumber() argument
162 const auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_resultGetFirstDecimalNumber()
[all …]
Dformattedval_impl.h272 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \
273 const ImplType* result = HelperType::validate(uresult, *ec); \
278 Prefix ## _closeResult (CType* uresult) { \
280 const ImplType* impl = HelperType::validate(uresult, localStatus); \
/third_party/node/deps/icu-small/source/i18n/
Dnumber_capi.cpp100 const UFormattedNumber* uresult, UErrorCode& status) { in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
101 auto* result = UFormattedNumberApiHelper::validate(uresult, status); in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
140 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, in unumf_formatInt() argument
143 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatInt()
153 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, in unumf_formatDouble() argument
156 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatDouble()
167 UFormattedNumber* uresult, UErrorCode* ec) { in unumf_formatDecimal() argument
169 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatDecimal()
180 unumf_resultToString(const UFormattedNumber* uresult, char16_t* buffer, int32_t bufferCapacity, in unumf_resultToString() argument
182 const auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_resultToString()
[all …]
Dnumrange_capi.cpp75 const UFormattedNumberRange* uresult, UErrorCode& status) { in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
76 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, status); in UPRV_FORMATTED_VALUE_CAPI_NO_IMPLTYPE_AUTO_IMPL()
113 UFormattedNumberRange* uresult, in unumrf_formatDoubleRange() argument
116 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDoubleRange()
132 UFormattedNumberRange* uresult, in unumrf_formatDecimalRange() argument
135 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDecimalRange()
148 const UFormattedNumberRange* uresult, in unumrf_resultGetIdentityResult() argument
150 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_resultGetIdentityResult()
159 const UFormattedNumberRange* uresult, in unumrf_resultGetFirstDecimalNumber() argument
163 const auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_resultGetFirstDecimalNumber()
[all …]
Dformattedval_impl.h275 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \
276 const ImplType* result = HelperType::validate(uresult, *ec); \
281 Prefix ## _closeResult (CType* uresult) { \
283 const ImplType* impl = HelperType::validate(uresult, localStatus); \
/third_party/icu/icu4c/source/i18n/unicode/
Dunumberformatter.h615 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult,
635 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult,
660 UFormattedNumber* uresult, UErrorCode* ec);
677 unumf_resultAsValue(const UFormattedNumber* uresult, UErrorCode* ec);
700 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity,
738 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* e…
763 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer,
787 const UFormattedNumber* uresult,
810 unumf_closeResult(UFormattedNumber* uresult);
Dunumberrangeformatter.h287 UFormattedNumberRange* uresult,
317 UFormattedNumberRange* uresult,
336 unumrf_resultAsValue(const UFormattedNumberRange* uresult, UErrorCode* ec);
351 const UFormattedNumberRange* uresult,
376 const UFormattedNumberRange* uresult,
403 const UFormattedNumberRange* uresult,
426 unumrf_closeResult(UFormattedNumberRange* uresult);
Dulistformatter.h211 ulistfmt_resultAsValue(const UFormattedList* uresult, UErrorCode* ec);
220 ulistfmt_closeResult(UFormattedList* uresult);
328 UFormattedList* uresult,
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dunumberformatter.h623 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult,
643 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult,
668 UFormattedNumber* uresult, UErrorCode* ec);
685 unumf_resultAsValue(const UFormattedNumber* uresult, UErrorCode* ec);
708 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity,
746 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* e…
771 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer,
796 const UFormattedNumber* uresult,
820 unumf_closeResult(UFormattedNumber* uresult);
Dunumberrangeformatter.h289 UFormattedNumberRange* uresult,
319 UFormattedNumberRange* uresult,
338 unumrf_resultAsValue(const UFormattedNumberRange* uresult, UErrorCode* ec);
353 const UFormattedNumberRange* uresult,
378 const UFormattedNumberRange* uresult,
405 const UFormattedNumberRange* uresult,
428 unumrf_closeResult(UFormattedNumberRange* uresult);
Dulistformatter.h211 ulistfmt_resultAsValue(const UFormattedList* uresult, UErrorCode* ec);
220 ulistfmt_closeResult(UFormattedList* uresult);
328 UFormattedList* uresult,
/third_party/node/deps/icu-small/source/i18n/unicode/
Dunumberrangeformatter.h287 UFormattedNumberRange* uresult,
317 UFormattedNumberRange* uresult,
336 unumrf_resultAsValue(const UFormattedNumberRange* uresult, UErrorCode* ec);
351 const UFormattedNumberRange* uresult,
376 const UFormattedNumberRange* uresult,
403 const UFormattedNumberRange* uresult,
426 unumrf_closeResult(UFormattedNumberRange* uresult);
Duformattednumber.h73 unumf_resultAsValue(const UFormattedNumber* uresult, UErrorCode* ec);
96 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity,
134 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* e…
159 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer,
183 const UFormattedNumber* uresult,
196 unumf_closeResult(UFormattedNumber* uresult);
Dunumberformatter.h492 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult,
512 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult,
537 UFormattedNumber* uresult, UErrorCode* ec);
Dulistformatter.h211 ulistfmt_resultAsValue(const UFormattedList* uresult, UErrorCode* ec);
220 ulistfmt_closeResult(UFormattedList* uresult);
328 UFormattedList* uresult,
/third_party/python/Python/
Dmystrtoul.c266 unsigned long uresult; in PyOS_strtol() local
276 uresult = PyOS_strtoul(str, ptr, base); in PyOS_strtol()
278 if (uresult <= (unsigned long)LONG_MAX) { in PyOS_strtol()
279 result = (long)uresult; in PyOS_strtol()
283 else if (sign == '-' && uresult == PY_ABS_LONG_MIN) { in PyOS_strtol()
/third_party/gn/src/base/numerics/
Dchecked_math_impl.h32 UnsignedDst uresult = static_cast<UnsignedDst>(ux + uy); in CheckedAddImpl() local
33 *result = static_cast<T>(uresult); in CheckedAddImpl()
37 ? static_cast<SignedDst>((uresult ^ ux) & (uresult ^ uy)) >= 0 in CheckedAddImpl()
38 : uresult >= uy; // Unsigned is either valid or underflow. in CheckedAddImpl()
92 UnsignedDst uresult = static_cast<UnsignedDst>(ux - uy);
93 *result = static_cast<T>(uresult);
97 ? static_cast<SignedDst>((uresult ^ ux) & (ux ^ uy)) >= 0
152 UnsignedDst uresult = static_cast<UnsignedDst>(ux * uy);
155 *result = is_negative ? 0 - uresult : uresult;
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/
Dchecked_math_impl.h37 const UnsignedDst uresult = static_cast<UnsignedDst>(ux + uy); in CheckedAddImpl() local
40 if (std::is_signed<T>::value ? static_cast<SignedDst>((uresult ^ ux) & (uresult ^ uy)) < 0 in CheckedAddImpl()
41 : uresult < uy) // Unsigned is either valid or underflow. in CheckedAddImpl()
43 *result = static_cast<T>(uresult); in CheckedAddImpl()
107 const UnsignedDst uresult = static_cast<UnsignedDst>(ux - uy);
110 if (std::is_signed<T>::value ? static_cast<SignedDst>((uresult ^ ux) & (ux ^ uy)) < 0 : x < y)
112 *result = static_cast<T>(uresult);
176 const UnsignedDst uresult = static_cast<UnsignedDst>(ux * uy);
184 *result = is_negative ? 0 - uresult : uresult;

12