Re: [RFC] UString
| From: | Yasuo Ohgaki | Date: | Sun, 01 Mar 2015 10:19:30 +0000 |
| Subject: | Re: [RFC] UString | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84101@lists.php.net to get a copy of this message | ||
Hi Joe,
On Sun, Mar 1, 2015 at 7:14 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> public function __construct([string $string [, string $source_codepage
> [, string $substitute_char] ]);
One additional comment for constructor. It should have default
normalization. I think
it should be NFC as most system uses it. (OSX uses NFD for filenames! I
hate it and
most of Japanese developers hate it)
The API may be
public function __construct([string $string [, string $source_codepage [,
string $substitute_char [, $normalization] ]);
If $substitute_char is NULL, disallow invalid encoding.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net