#include <string>
#include <string_view>
|
std::string_view | removeQuotes (std::string_view str) |
|
std::string | trimRemoveQuotes (std::string str) |
|
std::string_view | trim (std::string_view s) |
|
std::string | toHexDump (std::string_view s, size_t groupSize=0) |
|
std::string | replaceAll (std::string_view text, std::string_view what, std::string_view replacement) |
|
std::string | replaceAll (std::string_view text, char what, char replacement) |
|
◆ removeQuotes()
std::string_view removeQuotes |
( |
std::string_view |
str | ) |
|
|
inline |
- Parameters
-
- Returns
- String with leading & trailing double quotes removed, if any.
- Original binary offset:
- 0x00452C30
◆ replaceAll() [1/2]
std::string replaceAll |
( |
std::string_view |
text, |
|
|
char |
what, |
|
|
char |
replacement |
|
) |
| |
◆ replaceAll() [2/2]
std::string replaceAll |
( |
std::string_view |
text, |
|
|
std::string_view |
what, |
|
|
std::string_view |
replacement |
|
) |
| |
◆ toHexDump()
std::string toHexDump |
( |
std::string_view |
s, |
|
|
size_t |
groupSize = 0 |
|
) |
| |
toHexDump("0123", 2)
is "3132 3334"
.
- Parameters
-
s | String to convert. |
groupSize | Size of a single group, in bytes. |
- Returns
- Hex dump of the provided string.
◆ trim()
std::string_view trim |
( |
std::string_view |
s | ) |
|
|
inline |
◆ trimRemoveQuotes()
std::string trimRemoveQuotes |
( |
std::string |
str | ) |
|
|
inline |