/external/icu/icu4c/source/test/cintltst/ |
D | unumberrangeformattertst.c | 58 UFormattedNumberRange* uresult = unumrf_openResult(&ec); in TestExampleCode() local 62 unumrf_formatDoubleRange(uformatter, 3.0, 5.0, uresult, &ec); in TestExampleCode() 67 const UChar* str = ufmtval_getString(unumrf_resultAsValue(uresult, &ec), &len, &ec); in TestExampleCode() 75 unumrf_closeResult(uresult); in TestExampleCode() 90 UFormattedNumberRange* uresult = unumrf_openResult(&ec); in TestFormattedValue() local 94 unumrf_formatDecimalRange(uformatter, "5.5e4", -1, "1.5e5", -1, uresult, &ec); in TestFormattedValue() 97 const UFormattedValue* fv = unumrf_resultAsValue(uresult, &ec); in TestFormattedValue() 116 unumrf_resultGetIdentityResult(uresult, &ec)); in TestFormattedValue() 119 unumrf_closeResult(uresult); in TestFormattedValue() 172 UFormattedNumberRange* uresult = unumrf_openResult(&ec); in TestGetDecimalNumbers() local [all …]
|
D | unumberformattertst.c | 101 UFormattedNumber* uresult = unumf_openResult(&ec); in TestSkeletonFormatToFields() local 103 unumf_formatInt(uformatter, 9876543210L, uresult, &ec); // "+9,876,543,210.00 m" in TestSkeletonFormatToFields() 108 unumf_resultNextFieldPosition(uresult, &ufpos, &ec); in TestSkeletonFormatToFields() 116 unumf_resultGetAllFieldPositions(uresult, ufpositer, &ec); in TestSkeletonFormatToFields() 161 while (unumf_resultNextFieldPosition(uresult, &actual, &ec)) { in TestSkeletonFormatToFields() 171 unumf_closeResult(uresult); in TestSkeletonFormatToFields() 183 UFormattedNumber* uresult = unumf_openResult(&ec); in TestExampleCode() local 188 unumf_formatDouble(uformatter, 5142.3, uresult, &ec); in TestExampleCode() 192 int32_t len = unumf_resultToString(uresult, NULL, 0, &ec); in TestExampleCode() 196 unumf_resultToString(uresult, buffer, len+1, &ec); in TestExampleCode() [all …]
|
D | cpluralrulestest.c | 264 UFormattedNumber* uresult = NULL; in TestFormatted() local 277 uresult = unumf_openResult(&ec); in TestFormatted() 282 unumf_formatDouble(unumf, 100.2, uresult, &ec); in TestFormatted() 288 uplrules_selectFormatted(uplrules, uresult, buffer, 40, &ec); in TestFormatted() 298 unumf_closeResult(uresult); in TestFormatted() 304 UFormattedNumberRange* uresult = NULL; in TestSelectRange() local 328 uresult = unumrf_openResult(&ec); in TestSelectRange() 333 unumrf_formatDoubleRange(unumrf, d1, d2, uresult, &ec); in TestSelectRange() 339 int32_t len = uplrules_selectForRange(uplrules, uresult, buffer, 40, &ec); in TestSelectRange() 350 unumrf_closeResult(uresult); in TestSelectRange()
|
/external/icu/icu4c/source/i18n/ |
D | number_capi.cpp | 74 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 …]
|
D | numrange_capi.cpp | 75 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 …]
|
D | formattedval_impl.h | 266 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \ 267 const ImplType* result = HelperType::validate(uresult, *ec); \ 272 Prefix ## _closeResult (CType* uresult) { \ 274 const ImplType* impl = HelperType::validate(uresult, localStatus); \
|
D | ulistformatter.cpp | 142 UFormattedList* uresult, in ulistfmt_formatStringsToResult() argument 144 auto* result = UFormattedListApiHelper::validate(uresult, *status); in ulistfmt_formatStringsToResult()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | unumberformatter.h | 510 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, 530 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, 555 UFormattedNumber* uresult, UErrorCode* ec); 572 unumf_resultAsValue(const UFormattedNumber* uresult, UErrorCode* ec); 595 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, 633 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* e… 658 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer, 683 const UFormattedNumber* uresult, 707 unumf_closeResult(UFormattedNumber* uresult);
|
D | unumberrangeformatter.h | 289 UFormattedNumberRange* uresult, 319 UFormattedNumberRange* uresult, 338 unumrf_resultAsValue(const UFormattedNumberRange* uresult, UErrorCode* ec); 353 const UFormattedNumberRange* uresult, 379 const UFormattedNumberRange* uresult, 406 const UFormattedNumberRange* uresult, 430 unumrf_closeResult(UFormattedNumberRange* uresult);
|
D | ulistformatter.h | 211 ulistfmt_resultAsValue(const UFormattedList* uresult, UErrorCode* ec); 220 ulistfmt_closeResult(UFormattedList* uresult); 328 UFormattedList* uresult,
|
D | udateintervalformat.h | 173 udtitvfmt_resultAsValue(const UFormattedDateInterval* uresult, UErrorCode* ec); 182 udtitvfmt_closeResult(UFormattedDateInterval* uresult);
|
/external/icu/libicu/cts_headers/unicode/ |
D | unumberformatter.h | 510 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, 530 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, 555 UFormattedNumber* uresult, UErrorCode* ec); 572 unumf_resultAsValue(const UFormattedNumber* uresult, UErrorCode* ec); 595 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, 633 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* e… 658 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer, 683 const UFormattedNumber* uresult, 707 unumf_closeResult(UFormattedNumber* uresult);
|
D | unumberrangeformatter.h | 289 UFormattedNumberRange* uresult, 319 UFormattedNumberRange* uresult, 338 unumrf_resultAsValue(const UFormattedNumberRange* uresult, UErrorCode* ec); 353 const UFormattedNumberRange* uresult, 379 const UFormattedNumberRange* uresult, 406 const UFormattedNumberRange* uresult, 430 unumrf_closeResult(UFormattedNumberRange* uresult);
|
D | ulistformatter.h | 211 ulistfmt_resultAsValue(const UFormattedList* uresult, UErrorCode* ec); 220 ulistfmt_closeResult(UFormattedList* uresult); 328 UFormattedList* uresult,
|
D | udateintervalformat.h | 173 udtitvfmt_resultAsValue(const UFormattedDateInterval* uresult, UErrorCode* ec); 182 udtitvfmt_closeResult(UFormattedDateInterval* uresult);
|
/external/icu/libandroidicu/include/unicode/ |
D | unumberformatter.h | 510 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, 530 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, 555 UFormattedNumber* uresult, UErrorCode* ec); 572 unumf_resultAsValue(const UFormattedNumber* uresult, UErrorCode* ec); 595 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, 633 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* e… 658 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer, 683 const UFormattedNumber* uresult, 707 unumf_closeResult(UFormattedNumber* uresult);
|
D | ulistformatter.h | 211 ulistfmt_resultAsValue(const UFormattedList* uresult, UErrorCode* ec); 220 ulistfmt_closeResult(UFormattedList* uresult); 328 UFormattedList* uresult,
|
D | udateintervalformat.h | 173 udtitvfmt_resultAsValue(const UFormattedDateInterval* uresult, UErrorCode* ec); 182 udtitvfmt_closeResult(UFormattedDateInterval* uresult);
|
/external/python/cpython2/Python/ |
D | mystrtoul.c | 260 unsigned long uresult; in PyOS_strtol() local 270 uresult = PyOS_strtoul(str, ptr, base); in PyOS_strtol() 272 if (uresult <= (unsigned long)LONG_MAX) { in PyOS_strtol() 273 result = (long)uresult; in PyOS_strtol() 277 else if (sign == '-' && uresult == PY_ABS_LONG_MIN) { in PyOS_strtol()
|
/external/python/cpython3/Python/ |
D | mystrtoul.c | 266 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()
|
/external/angle/src/common/third_party/base/anglebase/numerics/ |
D | safe_math_impl.h | 164 UnsignedDst uresult = static_cast<UnsignedDst>(ux + uy); 169 if (HasSignBit(BinaryComplement(static_cast<UnsignedDst>((uresult ^ ux) & (uresult ^ uy))))) 175 *validity = HasSignBit(uresult) ? RANGE_OVERFLOW : RANGE_UNDERFLOW; 182 return static_cast<T>(uresult); 194 UnsignedDst uresult = static_cast<UnsignedDst>(ux - uy); 199 if (HasSignBit(BinaryComplement(static_cast<UnsignedDst>((uresult ^ ux) & (ux ^ uy))))) 205 *validity = HasSignBit(uresult) ? RANGE_OVERFLOW : RANGE_UNDERFLOW; 212 return static_cast<T>(uresult);
|
/external/libchrome/base/numerics/ |
D | checked_math_impl.h | 32 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;
|
/external/icu/libicu/cts_headers/ |
D | formattedval_impl.h | 266 Prefix ## _resultAsValue (const CType* uresult, UErrorCode* ec) { \ 267 const ImplType* result = HelperType::validate(uresult, *ec); \ 272 Prefix ## _closeResult (CType* uresult) { \ 274 const ImplType* impl = HelperType::validate(uresult, localStatus); \
|
D | number_utypes.h | 22 const UFormattedNumber* uresult, UErrorCode& status);
|
/external/pdfium/third_party/base/numerics/ |
D | safe_math_impl.h | 68 auto uresult = static_cast<UnsignedDst>(ux + uy); 69 *result = static_cast<T>(uresult); 73 ? static_cast<SignedDst>((uresult ^ ux) & (uresult ^ uy)) >= 0 74 : uresult >= uy; // Unsigned is either valid or underflow. 119 auto uresult = static_cast<UnsignedDst>(ux - uy); 120 *result = static_cast<T>(uresult); 124 ? static_cast<SignedDst>((uresult ^ ux) & (ux ^ uy)) >= 0 170 auto uresult = static_cast<UnsignedDst>(ux * uy); 173 *result = is_negative ? 0 - uresult : uresult;
|