Felipe Pena
|
c14338f5a9
|
- Fixed bug #46067 (Collator methods - Segfault)
|
2008-09-20 22:06:18 +00:00 |
|
Felipe Pena
|
2818d4fc51
|
New way for check void parameters
|
2008-03-04 23:39:15 +00:00 |
|
Felipe Pena
|
a1e8d340c3
|
New macro for check void parameters
|
2008-02-28 14:16:25 +00:00 |
|
Jani Taskinen
|
a897a0221e
|
Fix build
|
2007-11-02 16:19:57 +00:00 |
|
Dmitry Stogov
|
8146078f7b
|
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
|
2007-09-27 18:28:44 +00:00 |
|
Andrei Zmievski
|
324cdbf874
|
Wrong locale name.
|
2007-04-10 22:44:57 +00:00 |
|
Andrei Zmievski
|
4e0c1190b7
|
Fix protos.
|
2006-10-06 17:14:14 +00:00 |
|
Andrei Zmievski
|
bc871831e2
|
Fix protos.
|
2006-09-22 19:50:02 +00:00 |
|
Andrei Zmievski
|
f09b8eb846
|
Fix protos.
|
2006-09-21 18:26:31 +00:00 |
|
Sara Golemon
|
67af7e225c
|
Backfill protos for ext/unicode functions
|
2006-09-20 23:44:23 +00:00 |
|
Andrei Zmievski
|
76d6cca78e
|
Add collator_set_default().
|
2006-04-21 21:10:01 +00:00 |
|
Andrei Zmievski
|
ec57be524b
|
Hmm, ZEND_FENTRY() is the only one that allows flags to be added..
|
2006-04-21 19:40:57 +00:00 |
|
Andrei Zmievski
|
24988a088c
|
Implement collator_get_default() and simplify/fix the underlying code.
# Derick, objects aren't that difficult.. :)
|
2006-04-21 18:25:16 +00:00 |
|
Andrei Zmievski
|
16c55fb25a
|
Move to refcounted implementation of collators.
|
2006-04-20 21:56:43 +00:00 |
|
Andrei Zmievski
|
3eee3a5fd6
|
Fix collator instantiation.
|
2006-03-28 04:33:29 +00:00 |
|
Andrei Zmievski
|
cbbfebc428
|
Fix typos.
|
2006-03-28 03:28:08 +00:00 |
|
Derick Rethans
|
ad6a972de3
|
- Implemented basic collation support. For some reason "new Collator" gives 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";
?>
|
2006-03-26 11:06:24 +00:00 |
|