mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Cleanup.
This commit is contained in:
@@ -106,6 +106,11 @@ namespace bx
|
||||
set(_ptr, int32_t(_term-_ptr) );
|
||||
}
|
||||
|
||||
inline void StringView::set(const StringView& _str)
|
||||
{
|
||||
set(_str.m_ptr, _str.m_len);
|
||||
}
|
||||
|
||||
inline void StringView::clear()
|
||||
{
|
||||
m_ptr = "";
|
||||
|
||||
@@ -49,6 +49,9 @@ namespace bx
|
||||
///
|
||||
void set(const char* _ptr, const char* _term);
|
||||
|
||||
///
|
||||
void set(const StringView& _str);
|
||||
|
||||
///
|
||||
void clear();
|
||||
|
||||
@@ -105,24 +108,45 @@ namespace bx
|
||||
///
|
||||
bool isSpace(char _ch);
|
||||
|
||||
///
|
||||
bool isSpace(const StringView& _str);
|
||||
|
||||
///
|
||||
bool isUpper(char _ch);
|
||||
|
||||
///
|
||||
bool isUpper(const StringView& _str);
|
||||
|
||||
///
|
||||
bool isLower(char _ch);
|
||||
|
||||
///
|
||||
bool isLower(const StringView& _str);
|
||||
|
||||
///
|
||||
bool isAlpha(char _ch);
|
||||
|
||||
///
|
||||
bool isAlpha(const StringView& _str);
|
||||
|
||||
///
|
||||
bool isNumeric(char _ch);
|
||||
|
||||
///
|
||||
bool isNumeric(const StringView& _str);
|
||||
|
||||
///
|
||||
bool isAlphaNum(char _ch);
|
||||
|
||||
///
|
||||
bool isAlphaNum(const StringView& _str);
|
||||
|
||||
///
|
||||
bool isPrint(char _ch);
|
||||
|
||||
///
|
||||
bool isPrint(const StringView& _str);
|
||||
|
||||
///
|
||||
char toLower(char _ch);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user