mirror of
https://github.com/php/php-src.git
synced 2026-10-29 02:07:35 +08:00
Except for arginfo header as PHP_FUNCTION/PHP_METHOD are marked as U_CFUNC and the `ext/date/php_date.h` header doesn't use extern C. We now specificy the header symbols that _need_ to follow the C function ABI, meaning in some places we drop U_CFUNC declarations and in others we add it. Also use the `BEGIN_EXTERN_C()` portability macro when possible so that searching for this is easier.
46 lines
1.5 KiB
C++
46 lines
1.5 KiB
C++
/*
|
|
+----------------------------------------------------------------------+
|
|
| Copyright © The PHP Group and Contributors. |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to the Modified BSD License that is |
|
|
| bundled with this package in the file LICENSE, and is available |
|
|
| through the World Wide Web at <https://www.php.net/license/>. |
|
|
| |
|
|
| SPDX-License-Identifier: BSD-3-Clause |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Ed Batutis <ed@batutis.com> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#if __cplusplus >= 201703L
|
|
#include <string_view>
|
|
#endif
|
|
#include <unicode/unistr.h>
|
|
|
|
#include "normalizer.h"
|
|
#include "normalizer_class.h"
|
|
#include "php_intl.h"
|
|
BEGIN_EXTERN_C()
|
|
#include "normalizer_arginfo.h"
|
|
END_EXTERN_C()
|
|
#include "intl_error.h"
|
|
|
|
#include <unicode/unorm.h>
|
|
|
|
zend_class_entry *Normalizer_ce_ptr = NULL;
|
|
|
|
/*
|
|
* 'Normalizer' class registration structures & functions
|
|
*/
|
|
|
|
/* {{{ normalizer_register_Normalizer_class
|
|
* Initialize 'Normalizer' class
|
|
*/
|
|
U_CFUNC void normalizer_register_Normalizer_class( void )
|
|
{
|
|
/* Create and register 'Normalizer' class. */
|
|
Normalizer_ce_ptr = register_class_Normalizer();
|
|
Normalizer_ce_ptr->create_object = NULL;
|
|
}
|
|
/* }}} */
|