php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
locale_methods.c File Reference
#include <unicode/ustring.h>
#include <unicode/udata.h>
#include <unicode/putil.h>
#include <unicode/ures.h>
#include "php_intl.h"
#include "locale.h"
#include "locale_class.h"
#include "intl_convert.h"
#include "intl_data.h"
#include <zend_API.h>
#include <zend.h>
#include <php.h>
#include "main/php_ini.h"
#include "zend_smart_str.h"

Go to the source code of this file.

Macros

#define SEPARATOR   "_"
 
#define SEPARATOR1   "-"
 
#define DELIMITER   "-_"
 
#define EXTLANG_PREFIX   "a"
 
#define PRIVATE_PREFIX   "x"
 
#define DISP_NAME   "name"
 
#define MAX_NO_VARIANT   15
 
#define MAX_NO_EXTLANG   3
 
#define MAX_NO_PRIVATE   15
 
#define MAX_NO_LOOKUP_LANG_TAG   100
 
#define LOC_NOT_FOUND   1
 
#define VARIANT_KEYNAME_LEN   11
 
#define EXTLANG_KEYNAME_LEN   10
 
#define PRIVATE_KEYNAME_LEN   11
 
#define isIDSeparator(a)
 
#define isKeywordSeparator(a)
 
#define isEndOfTag(a)
 
#define isPrefixLetter(a)
 
#define isIDPrefix(s)
 
#define isKeywordPrefix(s)
 
#define isTerminator(a)
 
#define RETURN_SMART_STR(str)
 
#define LOOKUP_CLEAN_RETURN(value)
 

Functions

 PHP_NAMED_FUNCTION (zif_locale_get_default)
 
 PHP_NAMED_FUNCTION (zif_locale_set_default)
 
 PHP_FUNCTION (locale_get_script)
 
 PHP_FUNCTION (locale_get_region)
 
 PHP_FUNCTION (locale_get_primary_language)
 
 PHP_FUNCTION (locale_get_display_name)
 
 PHP_FUNCTION (locale_get_display_language)
 
 PHP_FUNCTION (locale_get_display_script)
 
 PHP_FUNCTION (locale_get_display_region)
 
 PHP_FUNCTION (locale_get_display_variant)
 
 PHP_FUNCTION (locale_get_keywords)
 
 PHP_FUNCTION (locale_canonicalize)
 
 PHP_FUNCTION (locale_compose)
 
 PHP_FUNCTION (locale_parse)
 
 PHP_FUNCTION (locale_get_all_variants)
 
 PHP_FUNCTION (locale_filter_matches)
 
 PHP_FUNCTION (locale_lookup)
 
 PHP_FUNCTION (locale_accept_from_http)
 

Macro Definition Documentation

◆ DELIMITER

#define DELIMITER   "-_"

Definition at line 41 of file locale_methods.c.

◆ DISP_NAME

#define DISP_NAME   "name"

Definition at line 44 of file locale_methods.c.

◆ EXTLANG_KEYNAME_LEN

#define EXTLANG_KEYNAME_LEN   10

Definition at line 55 of file locale_methods.c.

◆ EXTLANG_PREFIX

#define EXTLANG_PREFIX   "a"

Definition at line 42 of file locale_methods.c.

◆ isEndOfTag

#define isEndOfTag ( a)
Value:
(a == '\0' )
$obj a
Definition test.php:84

Definition at line 183 of file locale_methods.c.

◆ isIDPrefix

#define isIDPrefix ( s)
Value:
char s[4]
Definition cdf.c:77
#define isIDSeparator(a)
#define isPrefixLetter(a)

Definition at line 189 of file locale_methods.c.

◆ isIDSeparator

#define isIDSeparator ( a)
Value:
(a == '_' || a == '-')

Definition at line 181 of file locale_methods.c.

◆ isKeywordPrefix

#define isKeywordPrefix ( s)
Value:
#define isKeywordSeparator(a)

Definition at line 190 of file locale_methods.c.

◆ isKeywordSeparator

#define isKeywordSeparator ( a)
Value:
(a == '@' )

Definition at line 182 of file locale_methods.c.

◆ isPrefixLetter

#define isPrefixLetter ( a)
Value:
((a=='x')||(a=='X')||(a=='i')||(a=='I'))

Definition at line 185 of file locale_methods.c.

◆ isTerminator

#define isTerminator ( a)
Value:
((a==0)||(a=='.')||(a=='@'))

Definition at line 194 of file locale_methods.c.

◆ LOC_NOT_FOUND

#define LOC_NOT_FOUND   1

Definition at line 51 of file locale_methods.c.

◆ LOOKUP_CLEAN_RETURN

#define LOOKUP_CLEAN_RETURN ( value)
Value:
array_cleanup(cur_arr, cur_arr_len); return (value)
value

Definition at line 1408 of file locale_methods.c.

◆ MAX_NO_EXTLANG

#define MAX_NO_EXTLANG   3

Definition at line 47 of file locale_methods.c.

◆ MAX_NO_LOOKUP_LANG_TAG

#define MAX_NO_LOOKUP_LANG_TAG   100

Definition at line 49 of file locale_methods.c.

◆ MAX_NO_PRIVATE

#define MAX_NO_PRIVATE   15

Definition at line 48 of file locale_methods.c.

◆ MAX_NO_VARIANT

#define MAX_NO_VARIANT   15

Definition at line 46 of file locale_methods.c.

◆ PRIVATE_KEYNAME_LEN

#define PRIVATE_KEYNAME_LEN   11

Definition at line 56 of file locale_methods.c.

◆ PRIVATE_PREFIX

#define PRIVATE_PREFIX   "x"

Definition at line 43 of file locale_methods.c.

◆ RETURN_SMART_STR

#define RETURN_SMART_STR ( str)
Value:
smart_str_0((str)); RETURN_NEW_STR((str)->s)
#define RETURN_NEW_STR(s)
Definition zend_API.h:1041

Definition at line 934 of file locale_methods.c.

◆ SEPARATOR

#define SEPARATOR   "_"

Definition at line 39 of file locale_methods.c.

◆ SEPARATOR1

#define SEPARATOR1   "-"

Definition at line 40 of file locale_methods.c.

◆ VARIANT_KEYNAME_LEN

#define VARIANT_KEYNAME_LEN   11

Definition at line 54 of file locale_methods.c.

Function Documentation

◆ PHP_FUNCTION() [1/16]

PHP_FUNCTION ( locale_accept_from_http )

Definition at line 1578 of file locale_methods.c.

◆ PHP_FUNCTION() [2/16]

PHP_FUNCTION ( locale_canonicalize )

Definition at line 794 of file locale_methods.c.

◆ PHP_FUNCTION() [3/16]

PHP_FUNCTION ( locale_compose )

Definition at line 939 of file locale_methods.c.

◆ PHP_FUNCTION() [4/16]

PHP_FUNCTION ( locale_filter_matches )

Definition at line 1240 of file locale_methods.c.

◆ PHP_FUNCTION() [5/16]

PHP_FUNCTION ( locale_get_all_variants )

Definition at line 1156 of file locale_methods.c.

◆ PHP_FUNCTION() [6/16]

PHP_FUNCTION ( locale_get_display_language )

Definition at line 684 of file locale_methods.c.

◆ PHP_FUNCTION() [7/16]

PHP_FUNCTION ( locale_get_display_name )

Definition at line 677 of file locale_methods.c.

◆ PHP_FUNCTION() [8/16]

PHP_FUNCTION ( locale_get_display_region )

Definition at line 698 of file locale_methods.c.

◆ PHP_FUNCTION() [9/16]

PHP_FUNCTION ( locale_get_display_script )

Definition at line 691 of file locale_methods.c.

◆ PHP_FUNCTION() [10/16]

PHP_FUNCTION ( locale_get_display_variant )

Definition at line 712 of file locale_methods.c.

◆ PHP_FUNCTION() [11/16]

PHP_FUNCTION ( locale_get_keywords )

Definition at line 724 of file locale_methods.c.

◆ PHP_FUNCTION() [12/16]

PHP_FUNCTION ( locale_get_primary_language )

Definition at line 537 of file locale_methods.c.

◆ PHP_FUNCTION() [13/16]

PHP_FUNCTION ( locale_get_region )

Definition at line 530 of file locale_methods.c.

◆ PHP_FUNCTION() [14/16]

PHP_FUNCTION ( locale_get_script )

Definition at line 523 of file locale_methods.c.

◆ PHP_FUNCTION() [15/16]

PHP_FUNCTION ( locale_lookup )

Definition at line 1523 of file locale_methods.c.

◆ PHP_FUNCTION() [16/16]

PHP_FUNCTION ( locale_parse )

Definition at line 1120 of file locale_methods.c.

◆ PHP_NAMED_FUNCTION() [1/2]

PHP_NAMED_FUNCTION ( zif_locale_get_default )

Definition at line 299 of file locale_methods.c.

◆ PHP_NAMED_FUNCTION() [2/2]

PHP_NAMED_FUNCTION ( zif_locale_set_default )

Definition at line 311 of file locale_methods.c.