OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Functions
ascii Namespace Reference

Classes

struct  NoCaseLess
 

Functions

static int noCaseCompare (const char *l, const char *r, size_t size)
 
std::string toLower (std::string_view text)
 
std::string toUpper (std::string_view text)
 
bool noCaseStartsWith (std::string_view s, std::string_view prefix)
 
bool noCaseEquals (std::string_view a, std::string_view b)
 
bool noCaseLess (std::string_view a, std::string_view b)
 
std::string toPrintable (std::string_view s, char placeholder)
 
char isLower (char c)
 
char isUpper (char c)
 
char toLower (char c)
 
char toUpper (char c)
 
bool isSpace (char c)
 

Function Documentation

◆ isLower()

char ascii::isLower ( char  c)
inline

◆ isSpace()

bool ascii::isSpace ( char  c)
inline

◆ isUpper()

char ascii::isUpper ( char  c)
inline

◆ noCaseCompare()

static int ascii::noCaseCompare ( const char *  l,
const char *  r,
size_t  size 
)
static

◆ noCaseEquals()

bool ascii::noCaseEquals ( std::string_view  a,
std::string_view  b 
)

◆ noCaseLess()

bool ascii::noCaseLess ( std::string_view  a,
std::string_view  b 
)

◆ noCaseStartsWith()

bool ascii::noCaseStartsWith ( std::string_view  s,
std::string_view  prefix 
)

◆ toLower() [1/2]

char ascii::toLower ( char  c)
inline

◆ toLower() [2/2]

std::string ascii::toLower ( std::string_view  text)

◆ toPrintable()

std::string ascii::toPrintable ( std::string_view  s,
char  placeholder = ' ' 
)
Parameters
sString to transform.
placeholderCharacter to replace all non-printable chars with.
Returns
Passed string, with all non-printable non-ascii characters replaced with placeholder.

◆ toUpper() [1/2]

char ascii::toUpper ( char  c)
inline

◆ toUpper() [2/2]

std::string ascii::toUpper ( std::string_view  text)