Hi,<br><br>CONTEXT:<br><br>For single characters I see often sal_Unicode( '/' ) used and sometimes OUString( sal_Unicode( '/' ).<br>Examples (for adding one space):<br><ul><li>aDefaultPageName += sal_Unicode( ' ' );</li>
<li>sAuthor += OUString( sal_Unicode( ' ' );</li></ul>sal_Unicode is defined in ./sal/inc/rtl/ustring.hxx<br><br>In ./sal/inc/rtl/ustring.hxx I see that OUString uses sal_Unicode.<br>There is also the typedef rtl_uString:<br>
typedef struct _rtl_uString<br>{<br> oslInterlockedCount refCount; /* opaque */<br> sal_Int32 length;<br> sal_Unicode buffer[1];<br>} rtl_uString;<br><br>QUESTION:<br><br>So if there is SAuthor += OUString::createFromAscii( " " );<br>
which is the correct replacement:<br>
<ul><li>sAuthor += OUString( RTL_CONSTASCII_USTRINGPARAM(sal_Unicode( " " );</li><li>sAuthor += OUString( sal_Unicode( ' ' );</li><li>sAuthor += sal_Unicode( ' ' );</li></ul>
Joost<br>