Sparksee 6.1.0
StringTools Class Reference

StringTools class. More...

#include <common.h>

Static Public Member Functions

static std::string WStringToUTF8String (const std::wstring &wstr)
 Conversion from unicode std::wstring to UTF8 std::string.
static std::wstring UTF8StringToWString (const std::string &str)
 Conversion from UTF8 std::string to unicode std::wstring.

Detailed Description

StringTools class.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

◆ UTF8StringToWString()

std::wstring StringTools::UTF8StringToWString ( const std::string & str)
static

Conversion from UTF8 std::string to unicode std::wstring.

Parameters
str[in] UTF8 encoded string
Returns
Return a unicode wstring

◆ WStringToUTF8String()

std::string StringTools::WStringToUTF8String ( const std::wstring & wstr)
static

Conversion from unicode std::wstring to UTF8 std::string.

Parameters
wstr[in] Unicode wstring
Returns
Return a UTF8 encoded string

The documentation for this class was generated from the following file: