Browse Source

add USTR_VAL() access zstr value

migration/RELEASE_1_0_0
Antony Dovgal 20 years ago
parent
commit
c7639e9e19
  1. 1
      Zend/zend_unicode.h

1
Zend/zend_unicode.h

@ -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)

Loading…
Cancel
Save