Home
last modified time | relevance | path

Searched refs:ec (Results 1 - 25 of 845) sorted by relevance

12345678910>>...34

/third_party/node/deps/icu-small/source/i18n/
H A Dnumber_capi.cpp112 UErrorCode* ec) { in unumf_openForSkeletonAndLocale()
115 *ec = U_MEMORY_ALLOCATION_ERROR; in unumf_openForSkeletonAndLocale()
120 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *ec).locale(locale); in unumf_openForSkeletonAndLocale()
126 UParseError* perror, UErrorCode* ec) { in unumf_openForSkeletonAndLocaleWithError()
129 *ec = U_MEMORY_ALLOCATION_ERROR; in unumf_openForSkeletonAndLocaleWithError()
135 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, (perror == nullptr) ? tempParseError : *perror, *ec).locale(locale); in unumf_openForSkeletonAndLocaleWithError()
141 UErrorCode* ec) { in unumf_formatInt()
142 const UNumberFormatterData* formatter = UNumberFormatterData::validate(uformatter, *ec); in unumf_formatInt()
143 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatInt()
144 if (U_FAILURE(*ec)) { retur in unumf_formatInt()
111 unumf_openForSkeletonAndLocale(const char16_t* skeleton, int32_t skeletonLen, const char* locale, UErrorCode* ec) unumf_openForSkeletonAndLocale() argument
125 unumf_openForSkeletonAndLocaleWithError(const char16_t* skeleton, int32_t skeletonLen, const char* locale, UParseError* perror, UErrorCode* ec) unumf_openForSkeletonAndLocaleWithError() argument
140 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatInt() argument
153 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatDouble() argument
166 unumf_formatDecimal(const UNumberFormatter* uformatter, const char* value, int32_t valueLen, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatDecimal() argument
180 unumf_resultToString(const UFormattedNumber* uresult, char16_t* buffer, int32_t bufferCapacity, UErrorCode* ec) unumf_resultToString() argument
194 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* ec) unumf_resultNextFieldPosition() argument
215 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer, UErrorCode* ec) unumf_resultGetAllFieldPositions() argument
231 unumf_resultToDecimalNumber( const UFormattedNumber* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumf_resultToDecimalNumber() argument
258 usnum_openForInt64(int64_t value, UErrorCode* ec) usnum_openForInt64() argument
269 usnum_setToInt64(USimpleNumber* unumber, int64_t value, UErrorCode* ec) usnum_setToInt64() argument
278 usnum_multiplyByPowerOfTen(USimpleNumber* unumber, int32_t power, UErrorCode* ec) usnum_multiplyByPowerOfTen() argument
287 usnum_roundTo(USimpleNumber* unumber, int32_t position, UNumberFormatRoundingMode roundingMode, UErrorCode* ec) usnum_roundTo() argument
296 usnum_setMinimumIntegerDigits(USimpleNumber* unumber, int32_t minimumIntegerDigits, UErrorCode* ec) usnum_setMinimumIntegerDigits() argument
305 usnum_setMinimumFractionDigits(USimpleNumber* unumber, int32_t minimumFractionDigits, UErrorCode* ec) usnum_setMinimumFractionDigits() argument
314 usnum_truncateStart(USimpleNumber* unumber, int32_t maximumIntegerDigits, UErrorCode* ec) usnum_truncateStart() argument
323 usnum_setSign(USimpleNumber* unumber, USimpleNumberSign sign, UErrorCode* ec) usnum_setSign() argument
332 usnumf_openForLocale(const char* locale, UErrorCode* ec) usnumf_openForLocale() argument
343 usnumf_openForLocaleAndGroupingStrategy( const char* locale, UNumberGroupingStrategy groupingStrategy, UErrorCode* ec) usnumf_openForLocaleAndGroupingStrategy() argument
355 usnumf_format( const USimpleNumberFormatter* uformatter, USimpleNumber* unumber, UFormattedNumber* uresult, UErrorCode* ec) usnumf_format() argument
374 usnumf_formatInt64( const USimpleNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, UErrorCode* ec) usnumf_formatInt64() argument
[all...]
H A Dformattedvalue.cpp82 ucfpos_open(UErrorCode* ec) { in ucfpos_open() argument
85 *ec = U_MEMORY_ALLOCATION_ERROR; in ucfpos_open()
92 ucfpos_reset(UConstrainedFieldPosition* ptr, UErrorCode* ec) { in ucfpos_reset() argument
93 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_reset()
94 if (U_FAILURE(*ec)) { in ucfpos_reset()
101 ucfpos_constrainCategory(UConstrainedFieldPosition* ptr, int32_t category, UErrorCode* ec) { in ucfpos_constrainCategory() argument
102 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_constrainCategory()
103 if (U_FAILURE(*ec)) { in ucfpos_constrainCategory()
110 ucfpos_constrainField(UConstrainedFieldPosition* ptr, int32_t category, int32_t field, UErrorCode* ec) { in ucfpos_constrainField() argument
111 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_constrainField()
119 ucfpos_getCategory(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getCategory() argument
128 ucfpos_getField(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getField() argument
137 ucfpos_getIndexes(const UConstrainedFieldPosition* ptr, int32_t* pStart, int32_t* pLimit, UErrorCode* ec) ucfpos_getIndexes() argument
147 ucfpos_getInt64IterationContext(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getInt64IterationContext() argument
156 ucfpos_setInt64IterationContext(UConstrainedFieldPosition* ptr, int64_t context, UErrorCode* ec) ucfpos_setInt64IterationContext() argument
165 ucfpos_matchesField(const UConstrainedFieldPosition* ptr, int32_t category, int32_t field, UErrorCode* ec) ucfpos_matchesField() argument
174 ucfpos_setState( UConstrainedFieldPosition* ptr, int32_t category, int32_t field, int32_t start, int32_t limit, UErrorCode* ec) ucfpos_setState() argument
197 ufmtval_getString( const UFormattedValue* ufmtval, int32_t* pLength, UErrorCode* ec) ufmtval_getString() argument
219 ufmtval_nextPosition( const UFormattedValue* ufmtval, UConstrainedFieldPosition* ucfpos, UErrorCode* ec) ufmtval_nextPosition() argument
[all...]
H A Dnumrange_capi.cpp92 UErrorCode* ec) { in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
95 *ec = U_MEMORY_ALLOCATION_ERROR; in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
102 .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, (perror == nullptr) ? tempParseError : *perror, *ec)) in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
114 UErrorCode* ec) { in unumrf_formatDoubleRange()
115 const UNumberRangeFormatterData* formatter = UNumberRangeFormatterData::validate(uformatter, *ec); in unumrf_formatDoubleRange()
116 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDoubleRange()
117 if (U_FAILURE(*ec)) { return; } in unumrf_formatDoubleRange()
124 formatter->fFormatter.formatImpl(result->fData, first == second, *ec); in unumrf_formatDoubleRange()
133 UErrorCode* ec) { in unumrf_formatDecimalRange()
134 const UNumberRangeFormatterData* formatter = UNumberRangeFormatterData::validate(uformatter, *ec); in unumrf_formatDecimalRange()
85 unumrf_openForSkeletonWithCollapseAndIdentityFallback( const char16_t* skeleton, int32_t skeletonLen, UNumberRangeCollapse collapse, UNumberRangeIdentityFallback identityFallback, const char* locale, UParseError* perror, UErrorCode* ec) unumrf_openForSkeletonWithCollapseAndIdentityFallback() argument
109 unumrf_formatDoubleRange( const UNumberRangeFormatter* uformatter, double first, double second, UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_formatDoubleRange() argument
128 unumrf_formatDecimalRange( const UNumberRangeFormatter* uformatter, const char* first, int32_t firstLen, const char* second, int32_t secondLen, UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_formatDecimalRange() argument
147 unumrf_resultGetIdentityResult( const UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_resultGetIdentityResult() argument
158 unumrf_resultGetFirstDecimalNumber( const UFormattedNumberRange* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumrf_resultGetFirstDecimalNumber() argument
174 unumrf_resultGetSecondDecimalNumber( const UFormattedNumberRange* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumrf_resultGetSecondDecimalNumber() argument
[all...]
H A Dolsontz.cpp118 * @param ec input-output error code
123 UErrorCode& ec) : in OlsonTimeZone()
128 if ((top == nullptr || res == nullptr) && U_SUCCESS(ec)) { in OlsonTimeZone()
129 ec = U_ILLEGAL_ARGUMENT_ERROR; in OlsonTimeZone()
131 if (U_SUCCESS(ec)) { in OlsonTimeZone()
140 ures_getByKey(res, kTRANSPRE32, r.getAlias(), &ec); in OlsonTimeZone()
141 transitionTimesPre32 = ures_getIntVector(r.getAlias(), &len, &ec); in OlsonTimeZone()
143 if (ec == U_MISSING_RESOURCE_ERROR) { in OlsonTimeZone()
147 ec = U_ZERO_ERROR; in OlsonTimeZone()
148 } else if (U_SUCCESS(ec) in OlsonTimeZone()
120 OlsonTimeZone(const UResourceBundle* top, const UResourceBundle* res, const UnicodeString& tzid, UErrorCode& ec) OlsonTimeZone() argument
431 UErrorCode ec = U_ZERO_ERROR; getRawOffset() local
433 getOffset(uprv_getUTCtime(), false, raw, dst, ec); getRawOffset() local
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dunumberrangeformattertst.c50 UErrorCode ec = U_ZERO_ERROR; in TestExampleCode() local
58 &ec); in TestExampleCode()
59 UFormattedNumberRange* uresult = unumrf_openResult(&ec); in TestExampleCode()
60 assertSuccessCheck("There should not be a failure in the example code", &ec, true); in TestExampleCode()
63 unumrf_formatDoubleRange(uformatter, 3.0, 5.0, uresult, &ec); in TestExampleCode()
64 assertSuccessCheck("There should not be a failure in the example code", &ec, true); in TestExampleCode()
68 const UChar* str = ufmtval_getString(unumrf_resultAsValue(uresult, &ec), &len, &ec); in TestExampleCode()
69 assertSuccessCheck("There should not be a failure in the example code", &ec, true); in TestExampleCode()
81 UErrorCode ec in TestFormattedValue() local
127 UErrorCode ec = U_ZERO_ERROR; TestSkeletonParseError() local
164 UErrorCode ec = U_ZERO_ERROR; TestGetDecimalNumbers() local
[all...]
H A Dunumberformattertst.c60 UErrorCode ec = U_ZERO_ERROR; in TestSkeletonFormatToString() local
66 u"precision-integer currency/USD sign-accounting", -1, "en", &ec); in TestSkeletonFormatToString()
67 assertSuccessCheck("Should create without error", &ec, true); in TestSkeletonFormatToString()
68 result = unumf_openResult(&ec); in TestSkeletonFormatToString()
69 assertSuccess("Should create result without error", &ec); in TestSkeletonFormatToString()
72 unumf_formatInt(f, -444444, result, &ec); in TestSkeletonFormatToString()
74 if (assertSuccessCheck("Should format integer without error", &ec, true)) { in TestSkeletonFormatToString()
75 unumf_resultToString(result, buffer, CAPACITY, &ec); in TestSkeletonFormatToString()
76 assertSuccess("Should print string to buffer without error", &ec); in TestSkeletonFormatToString()
80 unumf_formatDouble(f, -5142.3, result, &ec); in TestSkeletonFormatToString()
101 UErrorCode ec = U_ZERO_ERROR; TestSkeletonFormatToFields() local
188 UErrorCode ec = U_ZERO_ERROR; TestExampleCode() local
216 UErrorCode ec = U_ZERO_ERROR; TestFormattedValue() local
249 UErrorCode ec = U_ZERO_ERROR; TestSkeletonParseError() local
274 UErrorCode ec = U_ZERO_ERROR; TestToDecimalNumber() local
[all...]
H A Duformattedvaluetst.c194 UErrorCode* ec) { in checkFormattedValueString()
196 const UChar* actualString = ufmtval_getString(fv, &length, ec); in checkFormattedValueString()
197 if (U_FAILURE(*ec)) { in checkFormattedValueString()
201 assertSuccess(message, ec); in checkFormattedValueString()
217 UErrorCode ec = U_ZERO_ERROR; in checkFormattedValue() local
218 checkFormattedValueString(message, fv, expectedString, &ec); in checkFormattedValue()
219 if (U_FAILURE(ec)) { return; } in checkFormattedValue()
222 UConstrainedFieldPosition* ucfpos = ucfpos_open(&ec); in checkFormattedValue()
224 while (ufmtval_nextPosition(fv, ucfpos, &ec)) { in checkFormattedValue()
226 expectedCategory, ucfpos_getCategory(ucfpos, &ec)); in checkFormattedValue()
190 checkFormattedValueString( const char* message, const UFormattedValue* fv, const UChar* expectedString, UErrorCode* ec) checkFormattedValueString() argument
249 UErrorCode ec = U_ZERO_ERROR; checkMixedFormattedValue() local
[all...]
/third_party/icu/icu4c/source/i18n/
H A Dnumber_capi.cpp86 UErrorCode* ec) { in unumf_openForSkeletonAndLocale()
89 *ec = U_MEMORY_ALLOCATION_ERROR; in unumf_openForSkeletonAndLocale()
94 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *ec).locale(locale); in unumf_openForSkeletonAndLocale()
100 UParseError* perror, UErrorCode* ec) { in unumf_openForSkeletonAndLocaleWithError()
103 *ec = U_MEMORY_ALLOCATION_ERROR; in unumf_openForSkeletonAndLocaleWithError()
108 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *perror, *ec).locale(locale); in unumf_openForSkeletonAndLocaleWithError()
114 UErrorCode* ec) { in unumf_formatInt()
115 const UNumberFormatterData* formatter = UNumberFormatterData::validate(uformatter, *ec); in unumf_formatInt()
116 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatInt()
117 if (U_FAILURE(*ec)) { retur in unumf_formatInt()
85 unumf_openForSkeletonAndLocale(const UChar* skeleton, int32_t skeletonLen, const char* locale, UErrorCode* ec) unumf_openForSkeletonAndLocale() argument
99 unumf_openForSkeletonAndLocaleWithError(const UChar* skeleton, int32_t skeletonLen, const char* locale, UParseError* perror, UErrorCode* ec) unumf_openForSkeletonAndLocaleWithError() argument
113 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatInt() argument
126 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatDouble() argument
139 unumf_formatDecimal(const UNumberFormatter* uformatter, const char* value, int32_t valueLen, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatDecimal() argument
153 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, UErrorCode* ec) unumf_resultToString() argument
167 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* ec) unumf_resultNextFieldPosition() argument
188 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer, UErrorCode* ec) unumf_resultGetAllFieldPositions() argument
204 unumf_resultToDecimalNumber( const UFormattedNumber* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumf_resultToDecimalNumber() argument
[all...]
H A Dformattedvalue.cpp82 ucfpos_open(UErrorCode* ec) { in ucfpos_open() argument
85 *ec = U_MEMORY_ALLOCATION_ERROR; in ucfpos_open()
92 ucfpos_reset(UConstrainedFieldPosition* ptr, UErrorCode* ec) { in ucfpos_reset() argument
93 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_reset()
94 if (U_FAILURE(*ec)) { in ucfpos_reset()
101 ucfpos_constrainCategory(UConstrainedFieldPosition* ptr, int32_t category, UErrorCode* ec) { in ucfpos_constrainCategory() argument
102 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_constrainCategory()
103 if (U_FAILURE(*ec)) { in ucfpos_constrainCategory()
110 ucfpos_constrainField(UConstrainedFieldPosition* ptr, int32_t category, int32_t field, UErrorCode* ec) { in ucfpos_constrainField() argument
111 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_constrainField()
119 ucfpos_getCategory(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getCategory() argument
128 ucfpos_getField(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getField() argument
137 ucfpos_getIndexes(const UConstrainedFieldPosition* ptr, int32_t* pStart, int32_t* pLimit, UErrorCode* ec) ucfpos_getIndexes() argument
147 ucfpos_getInt64IterationContext(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getInt64IterationContext() argument
156 ucfpos_setInt64IterationContext(UConstrainedFieldPosition* ptr, int64_t context, UErrorCode* ec) ucfpos_setInt64IterationContext() argument
165 ucfpos_matchesField(const UConstrainedFieldPosition* ptr, int32_t category, int32_t field, UErrorCode* ec) ucfpos_matchesField() argument
174 ucfpos_setState( UConstrainedFieldPosition* ptr, int32_t category, int32_t field, int32_t start, int32_t limit, UErrorCode* ec) ucfpos_setState() argument
197 ufmtval_getString( const UFormattedValue* ufmtval, int32_t* pLength, UErrorCode* ec) ufmtval_getString() argument
219 ufmtval_nextPosition( const UFormattedValue* ufmtval, UConstrainedFieldPosition* ucfpos, UErrorCode* ec) ufmtval_nextPosition() argument
[all...]
H A Dnumrange_capi.cpp92 UErrorCode* ec) { in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
95 *ec = U_MEMORY_ALLOCATION_ERROR; in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
101 .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, *perror, *ec)) in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
113 UErrorCode* ec) { in unumrf_formatDoubleRange()
114 const UNumberRangeFormatterData* formatter = UNumberRangeFormatterData::validate(uformatter, *ec); in unumrf_formatDoubleRange()
115 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDoubleRange()
116 if (U_FAILURE(*ec)) { return; } in unumrf_formatDoubleRange()
123 formatter->fFormatter.formatImpl(result->fData, first == second, *ec); in unumrf_formatDoubleRange()
132 UErrorCode* ec) { in unumrf_formatDecimalRange()
133 const UNumberRangeFormatterData* formatter = UNumberRangeFormatterData::validate(uformatter, *ec); in unumrf_formatDecimalRange()
85 unumrf_openForSkeletonWithCollapseAndIdentityFallback( const UChar* skeleton, int32_t skeletonLen, UNumberRangeCollapse collapse, UNumberRangeIdentityFallback identityFallback, const char* locale, UParseError* perror, UErrorCode* ec) unumrf_openForSkeletonWithCollapseAndIdentityFallback() argument
108 unumrf_formatDoubleRange( const UNumberRangeFormatter* uformatter, double first, double second, UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_formatDoubleRange() argument
127 unumrf_formatDecimalRange( const UNumberRangeFormatter* uformatter, const char* first, int32_t firstLen, const char* second, int32_t secondLen, UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_formatDecimalRange() argument
146 unumrf_resultGetIdentityResult( const UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_resultGetIdentityResult() argument
157 unumrf_resultGetFirstDecimalNumber( const UFormattedNumberRange* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumrf_resultGetFirstDecimalNumber() argument
173 unumrf_resultGetSecondDecimalNumber( const UFormattedNumberRange* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumrf_resultGetSecondDecimalNumber() argument
[all...]
H A Dolsontz.cpp118 * @param ec input-output error code
123 UErrorCode& ec) : in OlsonTimeZone()
128 if ((top == NULL || res == NULL) && U_SUCCESS(ec)) { in OlsonTimeZone()
129 ec = U_ILLEGAL_ARGUMENT_ERROR; in OlsonTimeZone()
131 if (U_SUCCESS(ec)) { in OlsonTimeZone()
140 ures_getByKey(res, kTRANSPRE32, r.getAlias(), &ec); in OlsonTimeZone()
141 transitionTimesPre32 = ures_getIntVector(r.getAlias(), &len, &ec); in OlsonTimeZone()
143 if (ec == U_MISSING_RESOURCE_ERROR) { in OlsonTimeZone()
147 ec = U_ZERO_ERROR; in OlsonTimeZone()
148 } else if (U_SUCCESS(ec) in OlsonTimeZone()
120 OlsonTimeZone(const UResourceBundle* top, const UResourceBundle* res, const UnicodeString& tzid, UErrorCode& ec) OlsonTimeZone() argument
431 UErrorCode ec = U_ZERO_ERROR; getRawOffset() local
433 getOffset(uprv_getUTCtime(), false, raw, dst, ec); getRawOffset() local
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dnumber_capi.cpp86 UErrorCode* ec) { in unumf_openForSkeletonAndLocale()
89 *ec = U_MEMORY_ALLOCATION_ERROR; in unumf_openForSkeletonAndLocale()
94 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *ec).locale(locale); in unumf_openForSkeletonAndLocale()
100 UParseError* perror, UErrorCode* ec) { in unumf_openForSkeletonAndLocaleWithError()
103 *ec = U_MEMORY_ALLOCATION_ERROR; in unumf_openForSkeletonAndLocaleWithError()
108 impl->fFormatter = NumberFormatter::forSkeleton(skeletonString, *perror, *ec).locale(locale); in unumf_openForSkeletonAndLocaleWithError()
114 UErrorCode* ec) { in unumf_formatInt()
115 const UNumberFormatterData* formatter = UNumberFormatterData::validate(uformatter, *ec); in unumf_formatInt()
116 auto* result = UFormattedNumberApiHelper::validate(uresult, *ec); in unumf_formatInt()
117 if (U_FAILURE(*ec)) { retur in unumf_formatInt()
85 unumf_openForSkeletonAndLocale(const UChar* skeleton, int32_t skeletonLen, const char* locale, UErrorCode* ec) unumf_openForSkeletonAndLocale() argument
99 unumf_openForSkeletonAndLocaleWithError(const UChar* skeleton, int32_t skeletonLen, const char* locale, UParseError* perror, UErrorCode* ec) unumf_openForSkeletonAndLocaleWithError() argument
113 unumf_formatInt(const UNumberFormatter* uformatter, int64_t value, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatInt() argument
125 unumf_formatDouble(const UNumberFormatter* uformatter, double value, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatDouble() argument
137 unumf_formatDecimal(const UNumberFormatter* uformatter, const char* value, int32_t valueLen, UFormattedNumber* uresult, UErrorCode* ec) unumf_formatDecimal() argument
150 unumf_resultToString(const UFormattedNumber* uresult, UChar* buffer, int32_t bufferCapacity, UErrorCode* ec) unumf_resultToString() argument
164 unumf_resultNextFieldPosition(const UFormattedNumber* uresult, UFieldPosition* ufpos, UErrorCode* ec) unumf_resultNextFieldPosition() argument
185 unumf_resultGetAllFieldPositions(const UFormattedNumber* uresult, UFieldPositionIterator* ufpositer, UErrorCode* ec) unumf_resultGetAllFieldPositions() argument
201 unumf_resultToDecimalNumber( const UFormattedNumber* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumf_resultToDecimalNumber() argument
[all...]
H A Dformattedvalue.cpp82 ucfpos_open(UErrorCode* ec) { in ucfpos_open() argument
85 *ec = U_MEMORY_ALLOCATION_ERROR; in ucfpos_open()
92 ucfpos_reset(UConstrainedFieldPosition* ptr, UErrorCode* ec) { in ucfpos_reset() argument
93 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_reset()
94 if (U_FAILURE(*ec)) { in ucfpos_reset()
101 ucfpos_constrainCategory(UConstrainedFieldPosition* ptr, int32_t category, UErrorCode* ec) { in ucfpos_constrainCategory() argument
102 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_constrainCategory()
103 if (U_FAILURE(*ec)) { in ucfpos_constrainCategory()
110 ucfpos_constrainField(UConstrainedFieldPosition* ptr, int32_t category, int32_t field, UErrorCode* ec) { in ucfpos_constrainField() argument
111 auto* impl = UConstrainedFieldPositionImpl::validate(ptr, *ec); in ucfpos_constrainField()
119 ucfpos_getCategory(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getCategory() argument
128 ucfpos_getField(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getField() argument
137 ucfpos_getIndexes(const UConstrainedFieldPosition* ptr, int32_t* pStart, int32_t* pLimit, UErrorCode* ec) ucfpos_getIndexes() argument
147 ucfpos_getInt64IterationContext(const UConstrainedFieldPosition* ptr, UErrorCode* ec) ucfpos_getInt64IterationContext() argument
156 ucfpos_setInt64IterationContext(UConstrainedFieldPosition* ptr, int64_t context, UErrorCode* ec) ucfpos_setInt64IterationContext() argument
165 ucfpos_matchesField(const UConstrainedFieldPosition* ptr, int32_t category, int32_t field, UErrorCode* ec) ucfpos_matchesField() argument
174 ucfpos_setState( UConstrainedFieldPosition* ptr, int32_t category, int32_t field, int32_t start, int32_t limit, UErrorCode* ec) ucfpos_setState() argument
197 ufmtval_getString( const UFormattedValue* ufmtval, int32_t* pLength, UErrorCode* ec) ufmtval_getString() argument
217 ufmtval_nextPosition( const UFormattedValue* ufmtval, UConstrainedFieldPosition* ucfpos, UErrorCode* ec) ufmtval_nextPosition() argument
[all...]
H A Dnumrange_capi.cpp92 UErrorCode* ec) { in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
95 *ec = U_MEMORY_ALLOCATION_ERROR; in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
101 .numberFormatterBoth(NumberFormatter::forSkeleton(skeletonString, *perror, *ec)) in unumrf_openForSkeletonWithCollapseAndIdentityFallback()
113 UErrorCode* ec) { in unumrf_formatDoubleRange()
114 const UNumberRangeFormatterData* formatter = UNumberRangeFormatterData::validate(uformatter, *ec); in unumrf_formatDoubleRange()
115 auto* result = UFormattedNumberRangeApiHelper::validate(uresult, *ec); in unumrf_formatDoubleRange()
116 if (U_FAILURE(*ec)) { return; } in unumrf_formatDoubleRange()
121 formatter->fFormatter.formatImpl(result->fData, first == second, *ec); in unumrf_formatDoubleRange()
130 UErrorCode* ec) { in unumrf_formatDecimalRange()
131 const UNumberRangeFormatterData* formatter = UNumberRangeFormatterData::validate(uformatter, *ec); in unumrf_formatDecimalRange()
85 unumrf_openForSkeletonWithCollapseAndIdentityFallback( const UChar* skeleton, int32_t skeletonLen, UNumberRangeCollapse collapse, UNumberRangeIdentityFallback identityFallback, const char* locale, UParseError* perror, UErrorCode* ec) unumrf_openForSkeletonWithCollapseAndIdentityFallback() argument
108 unumrf_formatDoubleRange( const UNumberRangeFormatter* uformatter, double first, double second, UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_formatDoubleRange() argument
125 unumrf_formatDecimalRange( const UNumberRangeFormatter* uformatter, const char* first, int32_t firstLen, const char* second, int32_t secondLen, UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_formatDecimalRange() argument
142 unumrf_resultGetIdentityResult( const UFormattedNumberRange* uresult, UErrorCode* ec) unumrf_resultGetIdentityResult() argument
153 unumrf_resultGetFirstDecimalNumber( const UFormattedNumberRange* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumrf_resultGetFirstDecimalNumber() argument
169 unumrf_resultGetSecondDecimalNumber( const UFormattedNumberRange* uresult, char* dest, int32_t destCapacity, UErrorCode* ec) unumrf_resultGetSecondDecimalNumber() argument
[all...]
H A Dolsontz.cpp118 * @param ec input-output error code
123 UErrorCode& ec) : in OlsonTimeZone()
128 if ((top == NULL || res == NULL) && U_SUCCESS(ec)) { in OlsonTimeZone()
129 ec = U_ILLEGAL_ARGUMENT_ERROR; in OlsonTimeZone()
131 if (U_SUCCESS(ec)) { in OlsonTimeZone()
140 ures_getByKey(res, kTRANSPRE32, r.getAlias(), &ec); in OlsonTimeZone()
141 transitionTimesPre32 = ures_getIntVector(r.getAlias(), &len, &ec); in OlsonTimeZone()
143 if (ec == U_MISSING_RESOURCE_ERROR) { in OlsonTimeZone()
147 ec = U_ZERO_ERROR; in OlsonTimeZone()
148 } else if (U_SUCCESS(ec) in OlsonTimeZone()
120 OlsonTimeZone(const UResourceBundle* top, const UResourceBundle* res, const UnicodeString& tzid, UErrorCode& ec) OlsonTimeZone() argument
431 UErrorCode ec = U_ZERO_ERROR; getRawOffset() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/cms/
H A Dcms_enc.c25 BIO *ossl_cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec, in ossl_cms_EncryptedContent_init_bio() argument
32 X509_ALGOR *calg = ec->contentEncryptionAlgorithm; in ossl_cms_EncryptedContent_init_bio()
44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio()
56 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio()
60 if (ec->key != NULL) in ossl_cms_EncryptedContent_init_bio()
61 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio()
108 if (ec->taglen > 0 in ossl_cms_EncryptedContent_init_bio()
110 ec->taglen, ec->tag) <= 0) { in ossl_cms_EncryptedContent_init_bio()
122 if (!enc || !ec in ossl_cms_EncryptedContent_init_bio()
207 ossl_cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen, const CMS_CTX *cms_ctx) ossl_cms_EncryptedContent_init() argument
229 CMS_EncryptedContentInfo *ec; CMS_EncryptedData_set1_key() local
[all...]
/third_party/openssl/crypto/cms/
H A Dcms_enc.c24 BIO *ossl_cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec, in ossl_cms_EncryptedContent_init_bio() argument
31 X509_ALGOR *calg = ec->contentEncryptionAlgorithm; in ossl_cms_EncryptedContent_init_bio()
43 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio()
55 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio()
59 if (ec->key != NULL) in ossl_cms_EncryptedContent_init_bio()
60 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio()
107 if (ec->taglen > 0 in ossl_cms_EncryptedContent_init_bio()
109 ec->taglen, ec->tag) <= 0) { in ossl_cms_EncryptedContent_init_bio()
121 if (!enc || !ec in ossl_cms_EncryptedContent_init_bio()
206 ossl_cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen, const CMS_CTX *cms_ctx) ossl_cms_EncryptedContent_init() argument
228 CMS_EncryptedContentInfo *ec; CMS_EncryptedData_set1_key() local
[all...]
/third_party/icu/icu4c/source/common/
H A Duniset_props.cpp264 UErrorCode& ec) { in applyPattern()
265 if (U_FAILURE(ec)) return; in applyPattern()
267 ec = U_ILLEGAL_ARGUMENT_ERROR; in applyPattern()
324 c = chars.next(opts, literal, ec); in applyPattern()
325 if (U_FAILURE(ec)) return; in applyPattern()
336 c = chars.next(opts, literal, ec); in applyPattern()
337 if (U_FAILURE(ec)) return; in applyPattern()
342 c = chars.next(opts, literal, ec); in applyPattern()
343 if (U_FAILURE(ec)) return; in applyPattern()
360 ec in applyPattern()
258 applyPattern(RuleCharacterIterator& chars, const SymbolTable* symbols, UnicodeString& rebuiltPat, uint32_t options, UnicodeSet& (UnicodeSet::*caseClosure)(int32_t attribute), int32_t depth, UErrorCode& ec) applyPattern() argument
779 applyIntPropertyValue(UProperty prop, int32_t value, UErrorCode& ec) applyIntPropertyValue() argument
810 applyPropertyAlias(const UnicodeString& prop, const UnicodeString& value, UErrorCode& ec) applyPropertyAlias() argument
1002 UErrorCode ec = U_ZERO_ERROR; resemblesPropertyPattern() local
1020 applyPropertyPattern(const UnicodeString& pattern, ParsePosition& ppos, UErrorCode &ec) applyPropertyPattern() argument
1124 applyPropertyPattern(RuleCharacterIterator& chars, UnicodeString& rebuiltPat, UErrorCode& ec) applyPropertyPattern() argument
[all...]
/third_party/node/deps/icu-small/source/common/
H A Duniset_props.cpp264 UErrorCode& ec) { in applyPattern()
265 if (U_FAILURE(ec)) return; in applyPattern()
267 ec = U_ILLEGAL_ARGUMENT_ERROR; in applyPattern()
324 c = chars.next(opts, literal, ec); in applyPattern()
325 if (U_FAILURE(ec)) return; in applyPattern()
336 c = chars.next(opts, literal, ec); in applyPattern()
337 if (U_FAILURE(ec)) return; in applyPattern()
342 c = chars.next(opts, literal, ec); in applyPattern()
343 if (U_FAILURE(ec)) return; in applyPattern()
360 ec in applyPattern()
258 applyPattern(RuleCharacterIterator& chars, const SymbolTable* symbols, UnicodeString& rebuiltPat, uint32_t options, UnicodeSet& (UnicodeSet::*caseClosure)(int32_t attribute), int32_t depth, UErrorCode& ec) applyPattern() argument
776 applyIntPropertyValue(UProperty prop, int32_t value, UErrorCode& ec) applyIntPropertyValue() argument
807 applyPropertyAlias(const UnicodeString& prop, const UnicodeString& value, UErrorCode& ec) applyPropertyAlias() argument
999 UErrorCode ec = U_ZERO_ERROR; resemblesPropertyPattern() local
1017 applyPropertyPattern(const UnicodeString& pattern, ParsePosition& ppos, UErrorCode &ec) applyPropertyPattern() argument
1121 applyPropertyPattern(RuleCharacterIterator& chars, UnicodeString& rebuiltPat, UErrorCode& ec) applyPropertyPattern() argument
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Duniset_props.cpp264 UErrorCode& ec) { in applyPattern()
265 if (U_FAILURE(ec)) return; in applyPattern()
267 ec = U_ILLEGAL_ARGUMENT_ERROR; in applyPattern()
324 c = chars.next(opts, literal, ec); in applyPattern()
325 if (U_FAILURE(ec)) return; in applyPattern()
336 c = chars.next(opts, literal, ec); in applyPattern()
337 if (U_FAILURE(ec)) return; in applyPattern()
342 c = chars.next(opts, literal, ec); in applyPattern()
343 if (U_FAILURE(ec)) return; in applyPattern()
360 ec in applyPattern()
258 applyPattern(RuleCharacterIterator& chars, const SymbolTable* symbols, UnicodeString& rebuiltPat, uint32_t options, UnicodeSet& (UnicodeSet::*caseClosure)(int32_t attribute), int32_t depth, UErrorCode& ec) applyPattern() argument
779 applyIntPropertyValue(UProperty prop, int32_t value, UErrorCode& ec) applyIntPropertyValue() argument
810 applyPropertyAlias(const UnicodeString& prop, const UnicodeString& value, UErrorCode& ec) applyPropertyAlias() argument
1002 UErrorCode ec = U_ZERO_ERROR; resemblesPropertyPattern() local
1020 applyPropertyPattern(const UnicodeString& pattern, ParsePosition& ppos, UErrorCode &ec) applyPropertyPattern() argument
1124 applyPropertyPattern(RuleCharacterIterator& chars, UnicodeString& rebuiltPat, UErrorCode& ec) applyPropertyPattern() argument
[all...]
/third_party/pulseaudio/src/modules/echo-cancel/
H A Dspeex.c63 static bool pa_speex_ec_preprocessor_init(pa_echo_canceller *ec, pa_sample_spec *out_ss, uint32_t nframes, pa_modargs *ma) { in pa_speex_ec_preprocessor_init() argument
123 ec->params.speex.pp_state = speex_preprocess_state_init(nframes, out_ss->rate); in pa_speex_ec_preprocessor_init()
126 speex_preprocess_ctl(ec->params.speex.pp_state, SPEEX_PREPROCESS_SET_AGC, &tmp); in pa_speex_ec_preprocessor_init()
129 speex_preprocess_ctl(ec->params.speex.pp_state, SPEEX_PREPROCESS_SET_DENOISE, &tmp); in pa_speex_ec_preprocessor_init()
132 speex_preprocess_ctl(ec->params.speex.pp_state, SPEEX_PREPROCESS_SET_DEREVERB, &tmp); in pa_speex_ec_preprocessor_init()
136 speex_preprocess_ctl(ec->params.speex.pp_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS, in pa_speex_ec_preprocessor_init()
140 speex_preprocess_ctl(ec->params.speex.pp_state, SPEEX_PREPROCESS_SET_ECHO_SUPPRESS_ACTIVE, in pa_speex_ec_preprocessor_init()
145 speex_preprocess_ctl(ec->params.speex.pp_state, SPEEX_PREPROCESS_SET_ECHO_STATE, in pa_speex_ec_preprocessor_init()
146 ec->params.speex.state); in pa_speex_ec_preprocessor_init()
159 bool pa_speex_ec_init(pa_core *c, pa_echo_canceller *ec, in pa_speex_ec_init() argument
218 pa_speex_ec_run(pa_echo_canceller *ec, const uint8_t *rec, const uint8_t *play, uint8_t *out) pa_speex_ec_run() argument
227 pa_speex_ec_done(pa_echo_canceller *ec) pa_speex_ec_done() argument
[all...]
H A Decho-cancel.h89 pa_echo_canceller *ec,
105 void (*play) (pa_echo_canceller *ec, const uint8_t *play);
108 void (*record) (pa_echo_canceller *ec, const uint8_t *rec, uint8_t *out);
112 void (*run) (pa_echo_canceller *ec, const uint8_t *rec, const uint8_t *play, uint8_t *out);
122 void (*set_drift) (pa_echo_canceller *ec, float drift);
125 void (*done) (pa_echo_canceller *ec);
135 pa_volume_t pa_echo_canceller_get_capture_volume(pa_echo_canceller *ec);
136 void pa_echo_canceller_set_capture_volume(pa_echo_canceller *ec, pa_volume_t volume);
143 bool pa_null_ec_init(pa_core *c, pa_echo_canceller *ec,
148 void pa_null_ec_run(pa_echo_canceller *ec, cons
[all...]
H A Dwebrtc.cc233 bool pa_webrtc_ec_init(pa_core *c, pa_echo_canceller *ec, in pa_webrtc_ec_init() argument
287 ec->params.drift_compensation = DEFAULT_DRIFT_COMPENSATION; in pa_webrtc_ec_init()
288 if (pa_modargs_get_value_boolean(ma, "drift_compensation", &ec->params.drift_compensation) < 0) { in pa_webrtc_ec_init()
294 if (ec->params.drift_compensation) { in pa_webrtc_ec_init()
349 ec->params.webrtc.agc_start_volume = agc_start_volume; in pa_webrtc_ec_init()
362 config.Set<webrtc::ExperimentalAgc>(new webrtc::ExperimentalAgc(true, ec->params.webrtc.agc_start_volume)); in pa_webrtc_ec_init()
373 ec->params.webrtc.trace_callback = new PaWebrtcTraceCallback(); in pa_webrtc_ec_init()
374 webrtc::Trace::SetTraceCallback((PaWebrtcTraceCallback *) ec->params.webrtc.trace_callback); in pa_webrtc_ec_init()
443 apm->echo_cancellation()->enable_drift_compensation(ec->params.drift_compensation); in pa_webrtc_ec_init()
460 ec in pa_webrtc_ec_init()
508 pa_webrtc_ec_play(pa_echo_canceller *ec, const uint8_t *play) pa_webrtc_ec_play() argument
526 pa_webrtc_ec_record(pa_echo_canceller *ec, const uint8_t *rec, uint8_t *out) pa_webrtc_ec_record() argument
566 pa_webrtc_ec_set_drift(pa_echo_canceller *ec, float drift) pa_webrtc_ec_set_drift() argument
572 pa_webrtc_ec_run(pa_echo_canceller *ec, const uint8_t *rec, const uint8_t *play, uint8_t *out) pa_webrtc_ec_run() argument
577 pa_webrtc_ec_done(pa_echo_canceller *ec) pa_webrtc_ec_done() argument
[all...]
/third_party/libexif/libexif/huawei/
H A Dmnote-huawei-data-type.c27 MnoteHuaweiEntryCount *ec = exif_huawei_entry_count_new_mem (mem); in exif_huawei_entry_count_new() local
31 return ec; in exif_huawei_entry_count_new()
37 MnoteHuaweiEntryCount *ec; in exif_huawei_entry_count_new_mem() local
42 ec = exif_mem_alloc (mem, sizeof (MnoteHuaweiEntryCount)); in exif_huawei_entry_count_new_mem()
43 if (!ec) in exif_huawei_entry_count_new_mem()
46 memset(ec, 0, sizeof (MnoteHuaweiEntryCount)); in exif_huawei_entry_count_new_mem()
47 ec->mem = mem; in exif_huawei_entry_count_new_mem()
50 return ec; in exif_huawei_entry_count_new_mem()
54 exif_huawei_entry_count_free (MnoteHuaweiEntryCount *ec) in exif_huawei_entry_count_free() argument
58 if (!ec) in exif_huawei_entry_count_free()
[all...]
/third_party/curl/tests/libtest/
H A Dtest.h174 CURLcode ec; \
175 if((ec = curl_easy_setopt((A), (B), (C))) != CURLE_OK) { \
178 (Y), (Z), (int)ec, curl_easy_strerror(ec)); \
179 res = ec; \
198 CURLMcode ec; \
199 if((ec = curl_multi_setopt((A), (B), (C))) != CURLM_OK) { \
202 (Y), (Z), (int)ec, curl_multi_strerror(ec)); \
222 CURLMcode ec; \
[all...]

Completed in 17 milliseconds

12345678910>>...34