On Thu, Apr 10, 2008 at 9:07 PM, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Hi! > > > > > UnicodeString::UnicodeString(unsigned short const *,int) seems > > actually wrong, for what I can see in the headers. There is no > > > > It builds on my machine. And it uses UnicodeString(UChar *, int) which > looks OK and ctor with this signature is defined in unistr.h. > > > > > it this way is correct, should you not use the UNICODE_STRING macro? > > > > Seems to be roughly the same...
Ah? in 3.6/8 it takes three arguments on my architecture (win xp, 32bit mode with amd64). Which version do you use? The define: #if U_SIZEOF_WCHAR_T==U_SIZEOF_UCHAR && (U_CHARSET_FAMILY==U_ASCII_FAMILY || (U_SIZEOF_UCHAR == 2 && defined(U_WCHAR_IS_UTF16))) # define UNICODE_STRING(cs, _length) UnicodeString(TRUE, (const UChar *)L ## cs, _length) #elif U_SIZEOF_UCHAR==1 && U_CHARSET_FAMILY==U_ASCII_FAMILY # define UNICODE_STRING(cs, _length) UnicodeString(TRUE, (const UChar *)cs, _length) #else # define UNICODE_STRING(cs, _length) UnicodeString(cs, _length, US_INV) #endif Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php