mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Simplify namespace access
The icu namespace is an alias which resolves to the real namespace.
This commit is contained in:
parent
8d35a42383
commit
d8200e4885
21 changed files with 43 additions and 43 deletions
|
@ -38,7 +38,7 @@ extern "C" {
|
||||||
}
|
}
|
||||||
|
|
||||||
using PHP::CodePointBreakIterator;
|
using PHP::CodePointBreakIterator;
|
||||||
using U_ICU_NAMESPACE::RuleBasedBreakIterator;
|
using icu::RuleBasedBreakIterator;
|
||||||
|
|
||||||
/* {{{ Global variables */
|
/* {{{ Global variables */
|
||||||
zend_class_entry *BreakIterator_ce_ptr;
|
zend_class_entry *BreakIterator_ce_ptr;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#ifndef USE_BREAKITERATOR_POINTER
|
#ifndef USE_BREAKITERATOR_POINTER
|
||||||
typedef void BreakIterator;
|
typedef void BreakIterator;
|
||||||
#else
|
#else
|
||||||
using U_ICU_NAMESPACE::BreakIterator;
|
using icu::BreakIterator;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -32,8 +32,8 @@ extern "C" {
|
||||||
}
|
}
|
||||||
|
|
||||||
using PHP::CodePointBreakIterator;
|
using PHP::CodePointBreakIterator;
|
||||||
using U_ICU_NAMESPACE::BreakIterator;
|
using icu::BreakIterator;
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
|
|
||||||
U_CFUNC PHP_METHOD(BreakIterator, __construct)
|
U_CFUNC PHP_METHOD(BreakIterator, __construct)
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,7 +33,7 @@ typedef union {
|
||||||
|
|
||||||
using namespace PHP;
|
using namespace PHP;
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::UCharCharacterIterator;
|
using icu::UCharCharacterIterator;
|
||||||
|
|
||||||
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CodePointBreakIterator);
|
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CodePointBreakIterator);
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
#include <unicode/brkiter.h>
|
#include <unicode/brkiter.h>
|
||||||
#include <unicode/unistr.h>
|
#include <unicode/unistr.h>
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::BreakIterator;
|
using icu::BreakIterator;
|
||||||
using U_ICU_NAMESPACE::CharacterIterator;
|
using icu::CharacterIterator;
|
||||||
using U_ICU_NAMESPACE::UnicodeString;
|
using icu::UnicodeString;
|
||||||
|
|
||||||
namespace PHP {
|
namespace PHP {
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ extern "C" {
|
||||||
#include "../intl_convertcpp.h"
|
#include "../intl_convertcpp.h"
|
||||||
#include "../intl_common.h"
|
#include "../intl_common.h"
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::RuleBasedBreakIterator;
|
using icu::RuleBasedBreakIterator;
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
|
|
||||||
static inline RuleBasedBreakIterator *fetch_rbbi(BreakIterator_object *bio) {
|
static inline RuleBasedBreakIterator *fetch_rbbi(BreakIterator_object *bio) {
|
||||||
return (RuleBasedBreakIterator*)bio->biter;
|
return (RuleBasedBreakIterator*)bio->biter;
|
||||||
|
|
|
@ -34,8 +34,8 @@ extern "C" {
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::GregorianCalendar;
|
using icu::GregorianCalendar;
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
|
|
||||||
/* {{{ Global variables */
|
/* {{{ Global variables */
|
||||||
zend_class_entry *Calendar_ce_ptr;
|
zend_class_entry *Calendar_ce_ptr;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#ifndef USE_CALENDAR_POINTER
|
#ifndef USE_CALENDAR_POINTER
|
||||||
typedef void Calendar;
|
typedef void Calendar;
|
||||||
#else
|
#else
|
||||||
using U_ICU_NAMESPACE::Calendar;
|
using icu::Calendar;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -43,7 +43,7 @@ extern "C" {
|
||||||
}
|
}
|
||||||
#include "../common/common_enum.h"
|
#include "../common/common_enum.h"
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
|
|
||||||
U_CFUNC PHP_METHOD(IntlCalendar, __construct)
|
U_CFUNC PHP_METHOD(IntlCalendar, __construct)
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,10 +36,10 @@ extern "C" {
|
||||||
#include "zend_exceptions.h"
|
#include "zend_exceptions.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::GregorianCalendar;
|
using icu::GregorianCalendar;
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
using U_ICU_NAMESPACE::UnicodeString;
|
using icu::UnicodeString;
|
||||||
using U_ICU_NAMESPACE::StringPiece;
|
using icu::StringPiece;
|
||||||
|
|
||||||
static inline GregorianCalendar *fetch_greg(Calendar_object *co) {
|
static inline GregorianCalendar *fetch_greg(Calendar_object *co) {
|
||||||
return (GregorianCalendar*)co->ucal;
|
return (GregorianCalendar*)co->ucal;
|
||||||
|
|
|
@ -25,8 +25,8 @@ extern "C" {
|
||||||
#include <ext/date/php_date.h>
|
#include <ext/date/php_date.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::TimeZone;
|
using icu::TimeZone;
|
||||||
using U_ICU_NAMESPACE::UnicodeString;
|
using icu::UnicodeString;
|
||||||
|
|
||||||
#include "zend_portability.h"
|
#include "zend_portability.h"
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ U_CDECL_END
|
||||||
|
|
||||||
#include <unicode/timezone.h>
|
#include <unicode/timezone.h>
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::TimeZone;
|
using icu::TimeZone;
|
||||||
|
|
||||||
U_CFUNC TimeZone *timezone_convert_datetimezone(int type, void *object, int is_datetime, intl_error *outside_error, const char *func);
|
U_CFUNC TimeZone *timezone_convert_datetimezone(int type, void *object, int is_datetime, intl_error *outside_error, const char *func);
|
||||||
U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz,
|
U_CFUNC int intl_datetime_decompose(zval *z, double *millis, TimeZone **tz,
|
||||||
|
|
|
@ -75,7 +75,7 @@ U_CFUNC zval *zoi_with_current_get_current_data(zend_object_iterator *iter);
|
||||||
U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter);
|
U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
using U_ICU_NAMESPACE::StringEnumeration;
|
using icu::StringEnumeration;
|
||||||
U_CFUNC void IntlIterator_from_StringEnumeration(StringEnumeration *se, zval *object);
|
U_CFUNC void IntlIterator_from_StringEnumeration(StringEnumeration *se, zval *object);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -33,11 +33,11 @@ extern "C" {
|
||||||
#include "../common/common_date.h"
|
#include "../common/common_date.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
using U_ICU_NAMESPACE::DateFormat;
|
using icu::DateFormat;
|
||||||
using U_ICU_NAMESPACE::GregorianCalendar;
|
using icu::GregorianCalendar;
|
||||||
using U_ICU_NAMESPACE::StringPiece;
|
using icu::StringPiece;
|
||||||
using U_ICU_NAMESPACE::SimpleDateFormat;
|
using icu::SimpleDateFormat;
|
||||||
|
|
||||||
static const DateFormat::EStyle valid_styles[] = {
|
static const DateFormat::EStyle valid_styles[] = {
|
||||||
DateFormat::kNone,
|
DateFormat::kNone,
|
||||||
|
|
|
@ -28,7 +28,7 @@ extern "C" {
|
||||||
#include "../calendar/calendar_class.h"
|
#include "../calendar/calendar_class.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::GregorianCalendar;
|
using icu::GregorianCalendar;
|
||||||
|
|
||||||
int datefmt_process_calendar_arg(zval* calendar_zv,
|
int datefmt_process_calendar_arg(zval* calendar_zv,
|
||||||
Locale const& locale,
|
Locale const& locale,
|
||||||
|
|
|
@ -28,9 +28,9 @@ extern "C" {
|
||||||
#include "../php_intl.h"
|
#include "../php_intl.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
using U_ICU_NAMESPACE::Calendar;
|
using icu::Calendar;
|
||||||
using U_ICU_NAMESPACE::DateFormat;
|
using icu::DateFormat;
|
||||||
|
|
||||||
int datefmt_process_calendar_arg(zval* calendar_zv,
|
int datefmt_process_calendar_arg(zval* calendar_zv,
|
||||||
Locale const& locale,
|
Locale const& locale,
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include <unicode/unistr.h>
|
#include <unicode/unistr.h>
|
||||||
#include <zend_types.h>
|
#include <zend_types.h>
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::UnicodeString;
|
using icu::UnicodeString;
|
||||||
|
|
||||||
int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status);
|
int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status);
|
||||||
|
|
||||||
|
|
|
@ -76,15 +76,15 @@ MessageFormatAdapter::getMessagePattern(MessageFormat* m) {
|
||||||
#endif
|
#endif
|
||||||
U_NAMESPACE_END
|
U_NAMESPACE_END
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::Formattable;
|
using icu::Formattable;
|
||||||
using U_ICU_NAMESPACE::Format;
|
using icu::Format;
|
||||||
using U_ICU_NAMESPACE::DateFormat;
|
using icu::DateFormat;
|
||||||
using U_ICU_NAMESPACE::MessageFormat;
|
using icu::MessageFormat;
|
||||||
#ifdef HAS_MESSAGE_PATTERN
|
#ifdef HAS_MESSAGE_PATTERN
|
||||||
using U_ICU_NAMESPACE::MessagePattern;
|
using icu::MessagePattern;
|
||||||
#endif
|
#endif
|
||||||
using U_ICU_NAMESPACE::MessageFormatAdapter;
|
using icu::MessageFormatAdapter;
|
||||||
using U_ICU_NAMESPACE::FieldPosition;
|
using icu::FieldPosition;
|
||||||
|
|
||||||
U_CFUNC int32_t umsg_format_arg_count(UMessageFormat *fmt)
|
U_CFUNC int32_t umsg_format_arg_count(UMessageFormat *fmt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,7 +37,7 @@ extern "C" {
|
||||||
#include <ext/date/php_date.h>
|
#include <ext/date/php_date.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::Calendar;
|
using icu::Calendar;
|
||||||
|
|
||||||
/* {{{ Global variables */
|
/* {{{ Global variables */
|
||||||
U_CDECL_BEGIN
|
U_CDECL_BEGIN
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#ifndef USE_TIMEZONE_POINTER
|
#ifndef USE_TIMEZONE_POINTER
|
||||||
typedef void TimeZone;
|
typedef void TimeZone;
|
||||||
#else
|
#else
|
||||||
using U_ICU_NAMESPACE::TimeZone;
|
using icu::TimeZone;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -38,8 +38,8 @@ extern "C" {
|
||||||
}
|
}
|
||||||
#include "common/common_enum.h"
|
#include "common/common_enum.h"
|
||||||
|
|
||||||
using U_ICU_NAMESPACE::Locale;
|
using icu::Locale;
|
||||||
using U_ICU_NAMESPACE::Calendar;
|
using icu::Calendar;
|
||||||
|
|
||||||
U_CFUNC PHP_METHOD(IntlTimeZone, __construct)
|
U_CFUNC PHP_METHOD(IntlTimeZone, __construct)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue