Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


Global Functions in Namespace rtl
in Sourcefile ustring.hxx


OStringToOUString
OUString OStringToOUString(
const OString & rStr,
rtl_TextEncoding encoding,
sal_uInt32 convertFlags = OSTRING_TO_OUSTRING_CVTFLAGS );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO

Summary
Convert an OString to an OUString, using a specific text encoding.
Description
The lengths of the two strings may differ (e.g., for double-byte encodings, UTF-7, UTF-8).
Parameters
rStr
    an OString to convert.

    
encoding
    the text encoding to use for conversion.

    
convertFlags
    flags which control the conversion.  Either use
    OSTRING_TO_OUSTRING_CVTFLAGS, or see
     for more
    details.
 

OUStringToOString
OString OUStringToOString(
const OUString & rUnicode,
rtl_TextEncoding encoding,
sal_uInt32 convertFlags = OUSTRING_TO_OSTRING_CVTFLAGS );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO

Summary
Convert an OUString to an OString, using a specific text encoding.
Description
The lengths of the two strings may differ (e.g., for double-byte encodings, UTF-7, UTF-8).
Parameters
rStr
    an OUString to convert.

    
encoding
    the text encoding to use for conversion.

    
convertFlags
    flags which control the conversion.  Either use
    OUSTRING_TO_OSTRING_CVTFLAGS, or see
     for more
    details.
 

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.