Safir SDK Core
Loading...
Searching...
No Matches
Convenience.h File Reference
Include dependency graph for Convenience.h:

Go to the source code of this file.

Functions

auto Str (const std::wstring &wstr)
 Convenience function for calling Safir::Dob::Typesystem::Utilities::ToUtf8 but without all the long namespacing.
 
auto Wstr (const std::string &str)
 Convenience function for calling Safir::Dob::Typesystem::Utilities::ToWstring but without all the long namespacing.
 

Function Documentation

◆ Str()

auto Str ( const std::wstring & wstr)

Convenience function for calling Safir::Dob::Typesystem::Utilities::ToUtf8 but without all the long namespacing.

Convert a std::wstring to UTF8-encoded std::string.

Parameters
wstr[in] - The wstring to convert.
Returns
- The string in UTF8 format.

References Safir::Dob::Typesystem::Utilities::ToUtf8().

Here is the call graph for this function:

◆ Wstr()

auto Wstr ( const std::string & str)

Convenience function for calling Safir::Dob::Typesystem::Utilities::ToWstring but without all the long namespacing.

Convert a UTF8-encoded std::string to std::wstring

Parameters
str[in] - The string to convert.
Returns
- The wide string.

References Safir::Dob::Typesystem::Utilities::ToWstring().

Here is the call graph for this function: