(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4
 Overview   Namespace   Class   Index   Help 

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 Feather

Copyright & License | Privacy | Contact Us

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.