rfc:intl.char
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:intl.char [2014/11/25 04:43] – created pollita | rfc:intl.char [2015/01/16 17:17] – pollita | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2014-11-24 | * Date: 2014-11-24 | ||
* Author: Sara Golemon, pollita@php.net | * Author: Sara Golemon, pollita@php.net | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 12: | Line 12: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Expose additional ICU functionality from [[http:// | + | Expose additional ICU functionality from [[http:// |
+ | |||
+ | See hphp/ | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | PHP 7 | + | PHP 7 (or 5.next if there is one) |
==== New Constants ==== | ==== New Constants ==== | ||
- | Enumerations of UProperty, UCharNameChoice, | + | Enumerations of UProperty, UCharNameChoice, |
class IntlChar { | class IntlChar { | ||
const PROPERTY_ALPHABETIC = _UCHAR_ALPHABETIC_; | const PROPERTY_ALPHABETIC = _UCHAR_ALPHABETIC_; | ||
const PROPERTY_ASCII_HEX_DIGIT = _UCHAR_ASCII_HEX_DIGIT_; | const PROPERTY_ASCII_HEX_DIGIT = _UCHAR_ASCII_HEX_DIGIT_; | ||
- | /* etc... */ | ||
- | | ||
- | const CHARNAME_UNICODE = _U_UNICODE_CHAR_NAME_; | ||
- | const CHARNAME_UNICODE10 = _U_UNICODE_10_CHAR_NAME_; | ||
- | const CHARNAME_EXTENDED = _U_EXTENDED_CHAR_NAME_; | ||
- | const CHARNAME_ALIAS = _U_CHAR_NAME_ALIAS_; | ||
- | | ||
/* etc... */ | /* etc... */ | ||
} | } | ||
Line 44: | Line 39: | ||
/* etc... */ | /* etc... */ | ||
} | } | ||
- | | ||
- | public function intl_char_has_binary_property($cp, | ||
- | return IntlChar:: | ||
- | } | ||
- | ===== Proposed Voting Choices | + | Note that properties taking a codepoint will accept either an integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as UTF-8 (e.g. " |
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | I also added IntlChar:: | ||
+ | |||
+ | Some methods take a range in the form ($start, $limit) which the range is INclusive of $start, and EXclusive of $limit. | ||
+ | |||
+ | ===== Vote ===== | ||
- | 50% + 1: "Merge IntlChar | + | <doodle title="Accept the IntlChar |
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
- | Note that I'll link a pull request from this RFC prior to opening | + | * Voting opened: 2014-12-26 02:20 UTC |
+ | * Voting closed: 2015-01-16 17:20 UTC (3 week voting | ||
===== Implementation ===== | ===== Implementation ===== | ||
- | I'll implement this after receiving feedback on the concept. | + | * PHP7: [[https:// |
+ | * HHVM [[https:// |
rfc/intl.char.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1