ZEND_ARG_INFO( 0, form )
ZEND_END_ARG_INFO()
+#if U_ICU_VERSION_MAJOR_NUM >= 49
ZEND_BEGIN_ARG_INFO_EX( decomposition_args, 0, 0, 1 )
ZEND_ARG_INFO( 0, input )
ZEND_END_ARG_INFO();
+#endif
/* }}} */
static const zend_function_entry Normalizer_class_functions[] = {
ZEND_FENTRY( normalize, ZEND_FN( normalizer_normalize ), normalizer_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
ZEND_FENTRY( isNormalized, ZEND_FN( normalizer_is_normalized ), normalizer_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
+#if U_ICU_VERSION_MAJOR_NUM >= 49
ZEND_FENTRY( getRawDecomposition, ZEND_FN( normalizer_get_raw_decomposition ), decomposition_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC )
+#endif
PHP_FE_END
};
/* }}} */
/* {{{ proto string|null normalizer_get_raw_decomposition( string $input )
* Returns the Decomposition_Mapping property for the given UTF-8 encoded code point.
*/
+#if U_ICU_VERSION_MAJOR_NUM >= 49
PHP_FUNCTION( normalizer_get_raw_decomposition )
{
char* input = NULL;
RETVAL_NEW_STR(intl_convert_utf16_to_utf8(decomposition, decomposition_length, &status));
}
+#endif
/* }}} */
/*
PHP_FUNCTION( normalizer_normalize );
PHP_FUNCTION( normalizer_is_normalized );
+#if U_ICU_VERSION_MAJOR_NUM >= 49
PHP_FUNCTION( normalizer_get_raw_decomposition );
+#endif
#endif // NORMALIZER_NORMALIZE_H
ZEND_ARG_INFO(0, form)
ZEND_END_ARG_INFO()
+#if U_ICU_VERSION_MAJOR_NUM >= 49
ZEND_BEGIN_ARG_INFO_EX(decomposition_args, 0, 0, 1)
ZEND_ARG_INFO(0, input)
ZEND_END_ARG_INFO();
+#endif
ZEND_BEGIN_ARG_INFO_EX(grapheme_1_arg, 0, 0, 1)
ZEND_ARG_INFO(0, string)
/* normalizer functions */
PHP_FE( normalizer_normalize, normalizer_args )
PHP_FE( normalizer_is_normalized, normalizer_args )
+#if U_ICU_VERSION_MAJOR_NUM >= 49
PHP_FE( normalizer_get_raw_decomposition, decomposition_args )
+#endif
/* Locale functions */
PHP_NAMED_FE( locale_get_default, zif_locale_get_default, locale_0_args )
normalizer_get_raw_decomposition()
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+<?php if( !function_exists( 'normalizer_get_raw_decomposition' ) ) print 'skip'; ?>
--FILE--
<?php