SHAPER  9.15.0
Locale::Convert Namespace Reference

Convert strings. More...

Functions

LOCALE_EXPORT std::string toString (const std::wstring &theWStr)
 Converts a wide-string to a simple (byte) string. More...
 
LOCALE_EXPORT std::string toString (const char16_t *theExtStr)
 Converts an extended string to a simple (byte) string. More...
 
LOCALE_EXPORT std::wstring toWString (const std::string &theStr)
 Converts a byte string to a wide-string. More...
 
LOCALE_EXPORT std::wstring toWString (const char16_t *theExtStr)
 Converts an extended string to a wide-string. More...
 

Detailed Description

Convert strings.

Function Documentation

◆ toString() [1/2]

std::string Locale::Convert::toString ( const std::wstring &  theWStr)

Converts a wide-string to a simple (byte) string.

Parameters
theWStra wide-string

◆ toString() [2/2]

std::string Locale::Convert::toString ( const char16_t *  theExtStr)

Converts an extended string to a simple (byte) string.

Parameters
theExtStran extended string

◆ toWString() [1/2]

std::wstring Locale::Convert::toWString ( const std::string &  theStr)

Converts a byte string to a wide-string.

Parameters
theStra byte string

◆ toWString() [2/2]

std::wstring Locale::Convert::toWString ( const char16_t *  theExtStr)

Converts an extended string to a wide-string.

Parameters
theStra byte string