The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

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 | Donate

Apache, the Apache feather logo, and OpenOffice 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.