1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-09-02 01:22:37 +02:00

Support for various Unicode spaces in toAscii()

* no-break space (U+00A0)
* thin space (U+2009)
* narrow no-break space (U+202F)
* ideographic space (U+3000)
This commit is contained in:
vlakoff
2015-01-07 01:12:05 +01:00
parent e0d50f0b8f
commit 7b88b4f3da
2 changed files with 7 additions and 2 deletions

View File

@@ -508,7 +508,9 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess
'TS' => array('Ц'),
'YA' => array('Я'),
'YU' => array('Ю'),
'ZH' => array('Ж')
'ZH' => array('Ж'),
' ' => array("\xC2\xA0", "\xE2\x80\x89", "\xE2\x80\xAF",
"\xE3\x80\x80"),
);
foreach ($charsArray as $key => $value) {