#include <StringUtils.h>
|
static void | ltrim (std::string &s) |
|
static void | ltrim (std::string &s, const std::string &start) |
|
static void | rtrim (std::string &s) |
|
static void | rtrim (std::string &s, const std::string &ending) |
|
static void | trim (std::string &s) |
|
static std::string | ltrim_copy (const std::string &s) |
|
static std::string | ltrim_copy (const std::string &s, const std::string &start) |
|
static std::string | rtrim_copy (const std::string &s) |
|
static std::string | rtrim_copy (const std::string &s, const std::string &ending) |
|
static std::string | trim_copy (const std::string &s) |
|
static bool | endsWith (const std::string &s, const std::string &ending) |
|
static bool | beginsWith (const std::string &s, const std::string &start) |
|
static std::vector< std::string > | tokenize (const std::string &src, char delim, bool trimToken=true, bool skipEmpty=true) |
|
template<typename... Ts> |
static std::string | concat_string (Ts const &... ts) |
|
static std::string | getRandomString (int length) |
|
static bool | pathExists (const std::string_view p) |
|
static bool | pathIsDirectory (const std::string_view p) |
|
static std::string | getFullPath (const std::string_view p) |
|
static std::string | rectifyDirectory (const std::string_view p) |
|
static std::string | create_unique_path (const std::string_view prefix="", int length=16) |
|
Definition at line 31 of file StringUtils.h.
◆ beginsWith()
static bool o2::utils::Str::beginsWith |
( |
const std::string & |
s, |
|
|
const std::string & |
start |
|
) |
| |
|
inlinestatic |
◆ ClassDefNV()
o2::utils::Str::ClassDefNV |
( |
Str |
, |
|
|
1 |
|
|
) |
| |
◆ concat_string()
template<typename... Ts>
static std::string o2::utils::Str::concat_string |
( |
Ts const &... |
ts | ) |
|
|
inlinestatic |
◆ create_unique_path()
std::string Str::create_unique_path |
( |
const std::string_view |
prefix = "" , |
|
|
int |
length = 16 |
|
) |
| |
|
static |
◆ endsWith()
static bool o2::utils::Str::endsWith |
( |
const std::string & |
s, |
|
|
const std::string & |
ending |
|
) |
| |
|
inlinestatic |
◆ getFullPath()
std::string Str::getFullPath |
( |
const std::string_view |
p | ) |
|
|
static |
◆ getRandomString()
std::string Str::getRandomString |
( |
int |
length | ) |
|
|
static |
◆ ltrim() [1/2]
static void o2::utils::Str::ltrim |
( |
std::string & |
s | ) |
|
|
inlinestatic |
Trim from start (in place)
- Parameters
-
Definition at line 39 of file StringUtils.h.
◆ ltrim() [2/2]
static void o2::utils::Str::ltrim |
( |
std::string & |
s, |
|
|
const std::string & |
start |
|
) |
| |
|
inlinestatic |
◆ ltrim_copy() [1/2]
static std::string o2::utils::Str::ltrim_copy |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
Trim from start (copying)
- Parameters
-
- Returns
Definition at line 82 of file StringUtils.h.
◆ ltrim_copy() [2/2]
static std::string o2::utils::Str::ltrim_copy |
( |
const std::string & |
s, |
|
|
const std::string & |
start |
|
) |
| |
|
inlinestatic |
◆ pathExists()
bool Str::pathExists |
( |
const std::string_view |
p | ) |
|
|
static |
◆ pathIsDirectory()
bool Str::pathIsDirectory |
( |
const std::string_view |
p | ) |
|
|
static |
◆ rectifyDirectory()
std::string Str::rectifyDirectory |
( |
const std::string_view |
p | ) |
|
|
static |
◆ rtrim() [1/2]
static void o2::utils::Str::rtrim |
( |
std::string & |
s | ) |
|
|
inlinestatic |
Trim from end (in place)
- Parameters
-
Definition at line 55 of file StringUtils.h.
◆ rtrim() [2/2]
static void o2::utils::Str::rtrim |
( |
std::string & |
s, |
|
|
const std::string & |
ending |
|
) |
| |
|
inlinestatic |
◆ rtrim_copy() [1/2]
static std::string o2::utils::Str::rtrim_copy |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
Trim from end (copying)
- Parameters
-
- Returns
Definition at line 101 of file StringUtils.h.
◆ rtrim_copy() [2/2]
static std::string o2::utils::Str::rtrim_copy |
( |
const std::string & |
s, |
|
|
const std::string & |
ending |
|
) |
| |
|
inlinestatic |
◆ tokenize()
std::vector< std::string > Str::tokenize |
( |
const std::string & |
src, |
|
|
char |
delim, |
|
|
bool |
trimToken = true , |
|
|
bool |
skipEmpty = true |
|
) |
| |
|
static |
◆ trim()
static void o2::utils::Str::trim |
( |
std::string & |
s | ) |
|
|
inlinestatic |
Trim from both ends (in place)
- Parameters
-
Definition at line 71 of file StringUtils.h.
◆ trim_copy()
static std::string o2::utils::Str::trim_copy |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
Trim from both sides (copying)
- Parameters
-
- Returns
Definition at line 120 of file StringUtils.h.
The documentation for this struct was generated from the following files:
- /home/runner/work/AliceO2/AliceO2/Common/Utils/include/CommonUtils/StringUtils.h
- /home/runner/work/AliceO2/AliceO2/Common/Utils/src/StringUtils.cxx