Commit Graph

27 Commits

Author SHA1 Message Date
Marcus Boerger
aa4cd53b7b - Consistency: macros shall be uppercased (as requested by Andrei) 2007-01-11 22:55:33 +00:00
Marcus Boerger
6a6d9da6ea - Add zstrlen() helper 2007-01-11 21:32:57 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
e16db0f454 add two more unicode related macros 2006-11-09 23:50:47 +00:00
Antony Dovgal
4a98596c90 rename REAL_KEY_SIZE() to USTR_BYTES() and move to zend_unicode.h
this macro is going to be actively used in Unicode version of OCI8 (and other extensions, probably)
2006-10-20 10:33:31 +00:00
Andrei Zmievski
520655608a Should be slightly faster to use U16_NEXT here. 2006-08-08 17:36:20 +00:00
Antony Dovgal
f5715ee86f implement zend_unicode_to_string() and zend_string_to_unicode()
part #1 (of 2)
2006-08-08 16:58:06 +00:00
Antony Dovgal
c7639e9e19 add USTR_VAL() access zstr value 2006-07-14 10:31:32 +00:00
Andrei Zmievski
2c8398fe81 Implement convert_to_unicode_with_converter() and adjust zval_* APIs. 2006-07-12 17:35:06 +00:00
Andrei Zmievski
78f5e9f0a1 Include uclean.h header. 2006-07-10 23:06:17 +00:00
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