ngscopeclient v0.2.1
Loading...
Searching...
No Matches
Functions
StringUtil.cpp File Reference

Implementation of string utility functions. More...

#include "StringUtil.h"
#include <string>
#include <cwchar>
#include <clocale>
#include <cstdlib>
Include dependency graph for StringUtil.cpp:

Functions

std::string WstringToString (const std::wstring &wstr)
 Convert a std::wstring into an std::string.
 
std::wstring StringToWstring (const std::string &str)
 Convert a std::string into an std::wstring.
 

Detailed Description

Implementation of string utility functions.

Author
Frederic BORRY

Function Documentation

◆ StringToWstring()

std::wstring StringToWstring ( const std::string &  str)

Convert a std::string into an std::wstring.

Parameters
wstrthe string to convert
Returns
the converted wstring

◆ WstringToString()

std::string WstringToString ( const std::wstring &  wstr)

Convert a std::wstring into an std::string.

Parameters
wstrthe wstring to convert
Returns
the converted string