Hi guys,

        Stefan asked me to post here with the new API details from CWS
salstrintern, which should make it's way in sometime soon.

        We add an 'intern' feature - which uses an internal string pool to
reduce rampant string duplication (we also use this in a few key places
to drastically cut our string wastage).

        2 new OUString methods:

    OUString intern() const

        and a more efficient:

    static OUString intern( const sal_Char * value, sal_Int32 length,
                            rtl_TextEncoding encoding,
                            sal_uInt32 convertFlags = 
OSTRING_TO_OUSTRING_CVTFLAGS,
                            sal_uInt32 *pInfo = NULL )

        if a conversion is being done anyway - whereby we can avoid heap
allocation entirely in some cases.

        HTH,

                Michael.

-- 
 [EMAIL PROTECTED]  <><, Pseudo Engineer, itinerant idiot


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to