summaryrefslogtreecommitdiff
path: root/ext/unicode/php_unicode.h
Commit message (Collapse)AuthorAgeFilesLines
* - Remove dependencies on ustdio.h. Doing so allows HEAD to be built withMoriyoshi Koizumi2009-02-121-0/+2
| | | | | ICU that comes with the out-of-the-box Mac OS X.
* Imporoved PHP binary size and startup speed with GCC4 visibility control (Nuno)Dmitry Stogov2008-01-301-2/+4
|
* Register slightly under half a metric ton of constants.Andrei Zmievski2006-05-051-2/+4
|
* Fix locale functions naming problem.Andrei Zmievski2006-05-041-0/+7
|
* Add skeleton for character property file. Also remove some HAVE_UNICODEAndrei Zmievski2006-05-021-4/+0
| | | | | tests since it's non optional.
* Add collator_set_default().Andrei Zmievski2006-04-211-1/+2
|
* Rename i18_loc_* to locale_*.Andrei Zmievski2006-04-211-2/+2
|
* Implement collator_get_default() and simplify/fix the underlying code.Andrei Zmievski2006-04-211-1/+1
| | | | | # Derick, objects aren't that difficult.. :)
* Move to refcounted implementation of collators.Andrei Zmievski2006-04-201-0/+1
|
* Another (and hopefully last) major streams commit.Sara Golemon2006-03-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This moves unicode conversion to the filter layer (rather than at the lower streams layer) unicode_filter.c has been moved from ext/unicode to main/streams as it's an integral part of the streams unicode conversion process. There are now three ways to set encoding on a stream: (1) By context $ctx = stream_context_create(NULL,array('encoding'=>'latin1')); $fp = fopen('somefile', 'r+t', false, $ctx); (2) By stream_encoding() $fp = fopen('somefile', 'r+'); stream_encoding($fp, 'latin1'); (3) By filter $fp = fopen('somefile', 'r+'); stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ); stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE); Note: Methods 1 and 2 are convenience wrappers around method 3.
* - Implemented basic collation support. For some reason "new Collator" gives ↵Derick Rethans2006-03-261-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | segfaults when the object's collation resource is used. - The following example shows what is implemented: <?php $orig = $strings = array( 'côte', 'cote', 'côté', 'coté', 'fluße', 'flüße', ); echo "German phonebook:\n"; $c = collator_create( "de@collation=phonebook" ); foreach($c->sort($strings) as $string) { echo $string, "\n"; } echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON ? "With" : "Without", " french accent sorting order\n"; echo "\nFrench with options:\n"; $c = collator_create( "fr" ); $c->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST); $c->setAttribute(Collator::CASE_LEVEL, Collator::ON); $c->setStrength(Collator::SECONDARY); foreach($c->sort($strings) as $string) { echo $string, "\n"; } echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON ? "With" : "Without", " french accent sorting order\n"; ?>
* - Moved strtotitle to ext/standard and implemented the fallback case toDerick Rethans2006-03-221-1/+0
| | | | | | | | non-unicode with ucwords. There is also an implementation for unicode ucwords but that returns different results then strtotitle as it uppercases the first character of every word, and doesn't *titlecase* a word. The test case shows that.
* bump year and license versionfoobar2006-01-011-2/+2
|
* - Rename icu_loc* to i18n_loc*Derick Rethans2005-09-141-2/+3
| | | | | - Added i18n_strtotitle (name is not sure yet) - work in progress.
* - Some minor fixesfoobar2005-08-121-1/+3
|
* Unicode support.Andrei Zmievski2005-08-111-0/+79