|
|
|
@ -131,6 +131,7 @@ static inline int zend_codepoint_to_uchar(UChar32 codepoint, UChar *buf) |
|
|
|
#define USTR_FREE(ustr) do { if (ustr) { efree(ustr); } } while (0); |
|
|
|
#define UBYTES(len) ((len) * sizeof(UChar)) |
|
|
|
#define USTR_LEN(str) (UG(unicode)?u_strlen((str).u):strlen((str).s)) |
|
|
|
#define USTR_VAL(str) (UG(unicode)?(str).u:(str).s) |
|
|
|
|
|
|
|
#define USTR_MAKE(cs) zend_ascii_to_unicode(cs, sizeof(cs) ZEND_FILE_LINE_CC) |
|
|
|
#define USTR_MAKE_REL(cs) zend_ascii_to_unicode(cs, sizeof(cs) ZEND_FILE_LINE_RELAY_CC) |
|
|
|
|