Unravel Engine C++ Reference
Loading...
Searching...
No Matches
string_utils Namespace Reference

Namespaces

namespace  alterable
 

Typedefs

using string_tokens_t = std::vector<std::string>
 

Functions

auto ltrim (const std::string &str) -> std::string
 
auto rtrim (const std::string &str) -> std::string
 
auto trim (const std::string &str) -> std::string
 
auto replace (const std::string &str, const std::string &search, const std::string &replace) -> std::string
 
auto to_upper (const std::string &str) -> std::string
 
auto to_lower (const std::string &str) -> std::string
 
auto extract_substring (const std::string &str, const std::string &from, const std::string &to) -> std::string
 
auto tokenize (const std::string &str, const std::string &delimiters) -> string_tokens_t
 

Typedef Documentation

◆ string_tokens_t

using string_utils::string_tokens_t = std::vector<std::string>

Definition at line 9 of file utils.h.

Function Documentation

◆ extract_substring()

auto string_utils::extract_substring ( const std::string & str,
const std::string & from,
const std::string & to ) -> std::string

Definition at line 49 of file utils.cpp.

◆ ltrim()

auto string_utils::ltrim ( const std::string & str) -> std::string

Definition at line 7 of file utils.cpp.

◆ replace()

auto string_utils::replace ( const std::string & str,
const std::string & search,
const std::string & replace ) -> std::string

Definition at line 28 of file utils.cpp.

◆ rtrim()

auto string_utils::rtrim ( const std::string & str) -> std::string

Definition at line 14 of file utils.cpp.

◆ to_lower()

auto string_utils::to_lower ( const std::string & str) -> std::string

Definition at line 42 of file utils.cpp.

◆ to_upper()

auto string_utils::to_upper ( const std::string & str) -> std::string

Definition at line 35 of file utils.cpp.

◆ tokenize()

auto string_utils::tokenize ( const std::string & str,
const std::string & delimiters ) -> string_tokens_t

Definition at line 136 of file utils.cpp.

◆ trim()

auto string_utils::trim ( const std::string & str) -> std::string

Definition at line 21 of file utils.cpp.