Andrei Zmievski
e875205714
Implement user conversion error handler support. Works as normal error
...
handler, in that it can return false to make the default one take over.
Handler signature is:
user_handler($direction, $encoding, $char_byte, $offset, $message)
Also removed support for using exceptions in default error handler.
2006-06-21 20:17:21 +00:00
Andrei Zmievski
534cad7064
Add a global ASCII connverter, macros to return single codepoints
...
(UCHAR32), and zend_unicode_to_ascii() function.
2006-05-04 21:22:17 +00:00
Andrei Zmievski
16c55fb25a
Move to refcounted implementation of collators.
2006-04-20 21:56:43 +00:00
Dmitry Stogov
bdfa3b1d36
Fixed ZTS build
2006-03-27 06:02:42 +00:00
Andrei Zmievski
1709428494
Implement to-Unicode conversion error behavior. Note the adjusted APIs.
2006-03-26 06:19:24 +00:00
Andrei Zmievski
930bde5897
* Remove unicode.from_error_mode and unicode.from_subst_char from INI
...
settings.
* Add unicode_set_error_mode() and unicode_set_subst_char() functions to
manipulate these global settings.
2006-03-26 01:48:33 +00:00
Andrei Zmievski
51977c926c
Support warning/exceptions flag for conversion errors.
2006-03-24 07:38:07 +00:00
Andrei Zmievski
1c09ef8e37
Update conversion error behavior and add some new modes.
...
# The various escape modes are what ICU calls them. We may want to come
# up with different names for UNICODE/ICU/JAVA ones..
2006-03-23 22:00:42 +00:00
Dmitry Stogov
c366cc6d1a
Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings
2006-03-02 13:12:45 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
2e5d0a3a9d
WS
2006-02-21 08:00:39 +00:00
Dmitry Stogov
227295a4f1
Unicode stuff is changed according to decision maden on PDM.
...
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Andi Gutmans
a93ddab01e
- More -> 2006 changes
2006-01-05 02:35:02 +00:00
foobar
d99d22dc11
oops
2006-01-01 13:25:34 +00:00
foobar
3631df802d
- fix typo
2006-01-01 13:13:11 +00:00
Andrei Zmievski
fe71ae29d9
- Implement zend_codepoint_to_uchar().
...
- Rename and fix zend_get_unified_string_type() so that it does not
allow mixing of binary and Unicode types.
2005-08-18 22:33:23 +00:00
Andrei Zmievski
b80cb7bd2f
Unicode support
2005-08-11 23:35:03 +00:00