Lines Matching refs:err
35 static const UNormalizer2 *intl_get_normalizer(zend_long form, UErrorCode *err) in intl_get_normalizer() argument
40 return unorm2_getNFCInstance(err); in intl_get_normalizer()
43 return unorm2_getNFDInstance(err); in intl_get_normalizer()
46 return unorm2_getNFKCInstance(err); in intl_get_normalizer()
49 return unorm2_getNFKDInstance(err); in intl_get_normalizer()
52 return unorm2_getNFKCCasefoldInstance(err); in intl_get_normalizer()
56 *err = U_ILLEGAL_ARGUMENT_ERROR; in intl_get_normalizer()
60 …ze(zend_long form, const UChar *src, int32_t src_len, UChar *dst, int32_t dst_len, UErrorCode *err) in intl_normalize() argument
72 *err = U_ZERO_ERROR; in intl_normalize()
76 *err = U_BUFFER_OVERFLOW_ERROR; in intl_normalize()
80 norm = intl_get_normalizer(form, err); in intl_normalize()
81 if(U_FAILURE(*err)) { in intl_normalize()
85 return unorm2_normalize(norm, src, src_len, dst, dst_len, err); in intl_normalize()
88 … UBool intl_is_normalized(zend_long form, const UChar *uinput, int32_t uinput_len, UErrorCode *err) in intl_is_normalized() argument
90 const UNormalizer2 *norm = intl_get_normalizer(form, err); in intl_is_normalized()
92 if(U_FAILURE(*err)) { in intl_is_normalized()
96 return unorm2_isNormalized(norm, uinput, uinput_len, err); in intl_is_normalized()