OpenEnroth 32b736e
Loading...
Searching...
No Matches
Functions
Transformations.h File Reference
#include <string>
#include <string_view>

Functions

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)
 

Function Documentation

◆ removeQuotes()

std::string_view removeQuotes ( std::string_view  str)
inline
Parameters
strString to unquote.
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
sString to convert.
groupSizeSize 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