-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3cd5b8
commit 7022d22
Showing
8 changed files
with
87 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright (c) php-ecma-intl contributors. | ||
* | ||
* This source file is subject to the BSD-3-Clause license that is bundled with | ||
* this package in the file LICENSE and is available at the following web | ||
* address: https://opensource.org/license/bsd-3-clause/ | ||
* | ||
* This source file may utilize copyrighted material from third-party open | ||
* source projects, the use of which is acknowledged in the NOTICE file bundled | ||
* with this package. | ||
* | ||
* @generate-class-entries | ||
*/ | ||
|
||
namespace Ecma\Intl | ||
{ | ||
/** | ||
* Categories of values supported by this implementation. | ||
* | ||
* @link https://tc39.es/ecma402/#sec-intl.supportedvaluesof ECMA-402, section 8.3.2, Intl.supportedValuesOf | ||
*/ | ||
enum Category: string | ||
{ | ||
case Calendar = 'calendar'; | ||
case Collation = 'collation'; | ||
case Currency = 'currency'; | ||
case NumberingSystem = 'numberingSystem'; | ||
case TimeZone = 'timeZone'; | ||
case Unit = 'unit'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* This is a generated file, edit the .stub.php file instead. | ||
* Stub hash: 430525d27dcfa691b8f1e7204cbc53adb2db059f */ | ||
|
||
|
||
|
||
|
||
static const zend_function_entry class_Ecma_Intl_Category_methods[] = { | ||
ZEND_FE_END | ||
}; | ||
|
||
static zend_class_entry *register_class_Ecma_Intl_Category(void) | ||
{ | ||
zend_class_entry *class_entry = zend_register_internal_enum("Ecma\\Intl\\Category", IS_STRING, class_Ecma_Intl_Category_methods); | ||
|
||
zval enum_case_Calendar_value; | ||
zend_string *enum_case_Calendar_value_str = zend_string_init("calendar", strlen("calendar"), 1); | ||
ZVAL_STR(&enum_case_Calendar_value, enum_case_Calendar_value_str); | ||
zend_enum_add_case_cstr(class_entry, "Calendar", &enum_case_Calendar_value); | ||
|
||
zval enum_case_Collation_value; | ||
zend_string *enum_case_Collation_value_str = zend_string_init("collation", strlen("collation"), 1); | ||
ZVAL_STR(&enum_case_Collation_value, enum_case_Collation_value_str); | ||
zend_enum_add_case_cstr(class_entry, "Collation", &enum_case_Collation_value); | ||
|
||
zval enum_case_Currency_value; | ||
zend_string *enum_case_Currency_value_str = zend_string_init("currency", strlen("currency"), 1); | ||
ZVAL_STR(&enum_case_Currency_value, enum_case_Currency_value_str); | ||
zend_enum_add_case_cstr(class_entry, "Currency", &enum_case_Currency_value); | ||
|
||
zval enum_case_NumberingSystem_value; | ||
zend_string *enum_case_NumberingSystem_value_str = zend_string_init("numberingSystem", strlen("numberingSystem"), 1); | ||
ZVAL_STR(&enum_case_NumberingSystem_value, enum_case_NumberingSystem_value_str); | ||
zend_enum_add_case_cstr(class_entry, "NumberingSystem", &enum_case_NumberingSystem_value); | ||
|
||
zval enum_case_TimeZone_value; | ||
zend_string *enum_case_TimeZone_value_str = zend_string_init("timeZone", strlen("timeZone"), 1); | ||
ZVAL_STR(&enum_case_TimeZone_value, enum_case_TimeZone_value_str); | ||
zend_enum_add_case_cstr(class_entry, "TimeZone", &enum_case_TimeZone_value); | ||
|
||
zval enum_case_Unit_value; | ||
zend_string *enum_case_Unit_value_str = zend_string_init("unit", strlen("unit"), 1); | ||
ZVAL_STR(&enum_case_Unit_value, enum_case_Unit_value_str); | ||
zend_enum_add_case_cstr(class_entry, "Unit", &enum_case_Unit_value); | ||
|
||
return class_entry; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters