Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
StringUtils Class Referencefinal

#include <StringUtils.hpp>

Static Public Member Functions

template<typename StringType >
static void Trim (StringType &str)
 
template<typename StringType >
static void TrimLeft (StringType &str)
 
template<typename StringType >
static void TrimRight (StringType &str)
 
template<typename StringType >
static void Lower (StringType &str)
 
template<typename StringType >
static auto LowerCopy (const StringType &str)
 
template<typename StringType >
static void Upper (StringType &str)
 
template<typename StringType >
static auto UpperCopy (const StringType &str)
 
template<typename StringType >
static bool StartsWith (const StringType &str, const StringType &prefix)
 
template<typename StringType >
static bool EndsWith (const StringType &str, const StringType &suffix)
 
template<typename StringType >
static std::vector< StringType > Split (const StringType &str, const typename std::string::value_type delimiter)
 
template<typename StringType >
static bool Contains (const StringType &str, const StringType &other)
 
static std::wstring StringToWString (const std::string &str)
 
static std::string WStringToString (const std::wstring &wstr)
 
template<typename T , typename StringType >
static T To (const StringType &str)
 

Detailed Description

Definition at line 19 of file StringUtils.hpp.

Member Function Documentation

◆ Contains()

template<typename StringType >
static bool StringUtils::Contains ( const StringType &  str,
const StringType &  other 
)
inlinestatic

Definition at line 139 of file StringUtils.hpp.

◆ EndsWith()

template<typename StringType >
static bool StringUtils::EndsWith ( const StringType &  str,
const StringType &  suffix 
)
inlinestatic

Definition at line 117 of file StringUtils.hpp.

◆ Lower()

template<typename StringType >
static void StringUtils::Lower ( StringType &  str)
inlinestatic

Definition at line 60 of file StringUtils.hpp.

◆ LowerCopy()

template<typename StringType >
static auto StringUtils::LowerCopy ( const StringType &  str)
inlinestatic

Definition at line 71 of file StringUtils.hpp.

◆ Split()

template<typename StringType >
static std::vector<StringType> StringUtils::Split ( const StringType &  str,
const typename std::string::value_type  delimiter 
)
inlinestatic

Definition at line 125 of file StringUtils.hpp.

◆ StartsWith()

template<typename StringType >
static bool StringUtils::StartsWith ( const StringType &  str,
const StringType &  prefix 
)
inlinestatic

Definition at line 108 of file StringUtils.hpp.

◆ StringToWString()

static std::wstring StringUtils::StringToWString ( const std::string &  str)
inlinestatic

Definition at line 147 of file StringUtils.hpp.

◆ To()

template<typename T , typename StringType >
static T StringUtils::To ( const StringType &  str)
inlinestatic

Definition at line 168 of file StringUtils.hpp.

◆ Trim()

template<typename StringType >
static void StringUtils::Trim ( StringType &  str)
inlinestatic

Definition at line 27 of file StringUtils.hpp.

◆ TrimLeft()

template<typename StringType >
static void StringUtils::TrimLeft ( StringType &  str)
inlinestatic

Definition at line 37 of file StringUtils.hpp.

◆ TrimRight()

template<typename StringType >
static void StringUtils::TrimRight ( StringType &  str)
inlinestatic

Definition at line 48 of file StringUtils.hpp.

◆ Upper()

template<typename StringType >
static void StringUtils::Upper ( StringType &  str)
inlinestatic

Definition at line 84 of file StringUtils.hpp.

◆ UpperCopy()

template<typename StringType >
static auto StringUtils::UpperCopy ( const StringType &  str)
inlinestatic

Definition at line 95 of file StringUtils.hpp.

◆ WStringToString()

static std::string StringUtils::WStringToString ( const std::wstring &  wstr)
inlinestatic

Definition at line 157 of file StringUtils.hpp.


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