StormByte-System 2.0.0
C++26 process and environment module of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::System::Variable Class Reference

Environment variable expansion helpers. More...

#include <StormByte/system/variable.hxx>

Static Public Member Functions

static StormByte::String::String Expand (std::string_view str)
 Expand environment variables in UTF-8 text.
 
static StormByte::String::String Expand (const StormByte::String::String &str)
 Expand environment variables in owned UTF-8 text.
 
static StormByte::String::String Expand (const StormByte::CString &str)
 Expand environment variables in a CString.
 
static StormByte::String::String Expand (std::wstring_view str)
 Expand environment variables in wide text.
 
static StormByte::String::String Expand (const StormByte::String::WString &str)
 Expand environment variables in owned wide text.
 
static StormByte::String::String Expand (const StormByte::WCString &str)
 Expand environment variables in a WCString.
 

Detailed Description

Environment variable expansion helpers.

Windows: ExpandEnvironmentStrings. UNIX: expand ~ to the home path.

Member Function Documentation

◆ Expand() [1/6]

static StormByte::String::String StormByte::System::Variable::Expand ( const StormByte::CString &  str)
static

Expand environment variables in a CString.

Parameters
strInput.
Returns
Expanded owned text.

◆ Expand() [2/6]

static StormByte::String::String StormByte::System::Variable::Expand ( const StormByte::String::String &  str)
static

Expand environment variables in owned UTF-8 text.

Parameters
strInput.
Returns
Expanded owned text.

◆ Expand() [3/6]

static StormByte::String::String StormByte::System::Variable::Expand ( const StormByte::String::WString &  str)
static

Expand environment variables in owned wide text.

Parameters
strInput.
Returns
Expanded owned UTF-8 text.

◆ Expand() [4/6]

static StormByte::String::String StormByte::System::Variable::Expand ( const StormByte::WCString &  str)
static

Expand environment variables in a WCString.

Parameters
strInput.
Returns
Expanded owned UTF-8 text.

◆ Expand() [5/6]

static StormByte::String::String StormByte::System::Variable::Expand ( std::string_view  str)
static

Expand environment variables in UTF-8 text.

Parameters
strInput.
Returns
Expanded owned text.

◆ Expand() [6/6]

static StormByte::String::String StormByte::System::Variable::Expand ( std::wstring_view  str)
static

Expand environment variables in wide text.

Parameters
strInput.
Returns
Expanded owned UTF-8 text.

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