Server IP : 104.21.38.3 / Your IP : 108.162.226.115 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/php/74/src/ext/intl/normalizer/ |
Upload File : |
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | [email protected] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Ed Batutis <[email protected]> | +----------------------------------------------------------------------+ */ #include "normalizer_class.h" #include "php_intl.h" #include "normalizer_normalize.h" #include "intl_error.h" #include <unicode/unorm.h> zend_class_entry *Normalizer_ce_ptr = NULL; /* * 'Normalizer' class registration structures & functions */ /* {{{ Normalizer methods arguments info */ ZEND_BEGIN_ARG_INFO_EX( normalizer_args, 0, 0, 1 ) ZEND_ARG_INFO( 0, input ) ZEND_ARG_INFO( 0, form ) ZEND_END_ARG_INFO() #if U_ICU_VERSION_MAJOR_NUM >= 56 ZEND_BEGIN_ARG_INFO_EX( decomposition_args, 0, 0, 1 ) ZEND_ARG_INFO( 0, input ) ZEND_END_ARG_INFO(); #endif /* }}} */ /* {{{ Normalizer_class_functions * Every 'Normalizer' class method has an entry in this table */ 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 >= 56 ZEND_FENTRY( getRawDecomposition, ZEND_FN( normalizer_get_raw_decomposition ), decomposition_args, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC ) #endif PHP_FE_END }; /* }}} */ /* {{{ normalizer_register_Normalizer_class * Initialize 'Normalizer' class */ void normalizer_register_Normalizer_class( void ) { zend_class_entry ce; /* Create and register 'Normalizer' class. */ INIT_CLASS_ENTRY( ce, "Normalizer", Normalizer_class_functions ); ce.create_object = NULL; Normalizer_ce_ptr = zend_register_internal_class( &ce ); /* Declare 'Normalizer' class properties. */ if( !Normalizer_ce_ptr ) { zend_error( E_ERROR, "Normalizer: attempt to create properties " "on a non-registered class." ); return; } } /* }}} */