Browse Source

- These files do not conform to any kind of coding standard. Sync from 5.3 too

experimental/first_unicode_implementation
Jani Taskinen 18 years ago
parent
commit
3d0b68418b
  1. 8
      ext/intl/locale/locale.c
  2. 6
      ext/intl/locale/locale.h
  3. 27
      ext/intl/locale/locale_class.c
  4. 6
      ext/intl/locale/locale_class.h
  5. 558
      ext/intl/locale/locale_methods.c
  6. 5
      ext/intl/locale/locale_methods.h

8
ext/intl/locale/locale.c

@ -10,9 +10,11 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Kirti Velankar <kirtig@yahoo-inc.com> |
| Author: Kirti Velankar <kirtig@yahoo-inc.com> |
+----------------------------------------------------------------------+
*/
*/
/* $Id$ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@ -54,7 +56,7 @@ void locale_register_constants( INIT_FUNC_ARGS )
LOCALE_EXPOSE_CUSTOM_CLASS_CONST_STR( "GRANDFATHERED_LANG_TAG",LOC_GRANDFATHERED_LANG_TAG);
LOCALE_EXPOSE_CUSTOM_CLASS_CONST_STR( "PRIVATE_TAG",LOC_PRIVATE_TAG);
#undef LOCALE_EXPOSE_CUSTOM_CLASS_CONS_STR
#undef LOCALE_EXPOSE_CUSTOM_CLASS_CONST_STR
#undef LOCALE_EXPOSE_CLASS_CONST
#undef LOCALE_EXPOSE_CONST
}

6
ext/intl/locale/locale.h

@ -10,9 +10,11 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Kirti Velankar <kirtig@yahoo-inc.com> |
| Authors: Kirti Velankar <kirtig@yahoo-inc.com> |
+----------------------------------------------------------------------+
*/
*/
/* $Id$ */
#ifndef LOCALE_LOCALE_H
#define LOCALE_LOCALE_H

27
ext/intl/locale/locale_class.c

@ -10,14 +10,14 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Kirti Velankar <kirtig@yahoo-inc.com> |
| Authors: Kirti Velankar <kirtig@yahoo-inc.com> |
+----------------------------------------------------------------------+
*/
*/
#include <unicode/uloc.h>
/* $Id $ */
#include <unicode/uloc.h>
#include "php_intl.h"
#include "intl_error.h"
#include "locale_class.h"
#include "locale_methods.h"
@ -25,15 +25,15 @@
zend_class_entry *Locale_ce_ptr = NULL;
/////////////////////////////////////////////////////////////////////////////
// 'Locale' class registration structures & functions
/////////////////////////////////////////////////////////////////////////////
/*
* 'Locale' class registration structures & functions
*/
/* {{{ Locale methods arguments info */
// NOTE: modifying 'locale_XX_args' do not forget to
// modify approptiate 'locale_XX_args' for
// the procedural API.
/*
* NOTE: when modifying 'locale_XX_args' do not forget to modify
* approptiate 'locale_XX_args' for the procedural API!
*/
static
ZEND_BEGIN_ARG_INFO_EX( locale_0_args, 0, 0, 0 )
@ -101,12 +101,12 @@ void locale_register_Locale_class( TSRMLS_D )
{
zend_class_entry ce;
// Create and register 'Locale' class.
/* Create and register 'Locale' class. */
INIT_CLASS_ENTRY( ce, "Locale", Locale_class_functions );
ce.create_object = NULL;
Locale_ce_ptr = zend_register_internal_class( &ce TSRMLS_CC );
// Declare 'Locale' class properties.
/* Declare 'Locale' class properties. */
if( !Locale_ce_ptr )
{
zend_error( E_ERROR,
@ -116,7 +116,6 @@ void locale_register_Locale_class( TSRMLS_D )
}
/* }}} */
/*
* Local variables:
* tab-width: 4

6
ext/intl/locale/locale_class.h

@ -10,9 +10,11 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Kirti Velankar <kirtig@yahoo-inc.com> |
| Authors: Kirti Velankar <kirtig@yahoo-inc.com> |
+----------------------------------------------------------------------+
*/
*/
/* $Id$ */
#ifndef LOCALE_CLASS_H
#define LOCALE_CLASS_H

558
ext/intl/locale/locale_methods.c
File diff suppressed because it is too large
View File

5
ext/intl/locale/locale_methods.h

@ -12,14 +12,15 @@
+----------------------------------------------------------------------+
| Author: Kirti Velankar <kirtig@yahoo-inc.com> |
+----------------------------------------------------------------------+
*/
*/
/* $Id$ */
#ifndef LOCALE_METHODS_H
#define LOCALE_METHODS_H
#include <php.h>
PHP_FUNCTION( locale_get_primary_language );
PHP_FUNCTION( locale_get_script );
PHP_FUNCTION( locale_get_region );

Loading…
Cancel
Save