Sese Framework
2.3.0
A cross-platform framework
|
Classes | |
struct | SChar |
Unicode character. More... | |
class | SString |
String. More... | |
class | SStringView |
String view. More... | |
Typedefs | |
typedef int(* | FindFunction) (const char *, const char *) |
Functions | |
int | KMP (const char *str, const char *sub) |
int | BM (const char *str, const char *sub) |
int | BM (const uint32_t *str, size_t size, std::vector< SChar > &sub) |
int | NORMAL (const char *str, const char *sub) |
template<typename T > | |
void | LeftShiftElement (T *header, size_t len, size_t begin, size_t count) |
template<typename T > | |
void | RightShiftElement (T *header, size_t len, size_t begin, size_t count) |
SChar | getUnicodeFromUTF8Char (const char *u8char) |
size_t | getStringLengthFromUTF8String (const char *str) |
size_t | getByteLengthFromUTF8String (const char *str) |
char | getSizeFromUTF8Char (char ch) |
char | getUTF8SizeFromUnicodeChar (SChar ch) |
SChar | getUnicodeCharFromUTF8Char (char size, const char *ch) |
class | SESE_DEPRECATED_WITH ("please use sese::text::StringBuilder") SStringBuilder final |
SStringBuilder. | |
typedef int(* sstr::FindFunction) (const char *, const char *) |
|
extern |
References dist().
Referenced by sstr::SStringView::find(), sstr::SStringView::findByBytes(), and sstr::SStringView::split().
|
extern |
References dist().
size_t sstr::getByteLengthFromUTF8String | ( | const char * | str | ) |
Get UTF-8 string byte length
str | Target string |
Referenced by sstr::SString::fromUTF8(), sstr::SStringView::size(), sstr::SStringView::split(), sstr::SStringView::SStringView(), and sstr::SStringView::toChars().
char sstr::getSizeFromUTF8Char | ( | char | ch | ) |
Get the number of bytes occupied by a UTF-8 character
ch | Target character |
Referenced by at(), sstr::SStringView::at(), sstr::SStringView::find(), getStringLengthFromUTF8String(), getUnicodeFromUTF8Char(), sstr::SStringView::len(), sese::text::TextReader::readLine(), sstr::SStringView::reverse(), sstr::SStringView::substring(), sstr::SStringView::toChars(), and sstr::SStringView::toCWString().
size_t sstr::getStringLengthFromUTF8String | ( | const char * | str | ) |
SChar sstr::getUnicodeCharFromUTF8Char | ( | char | size, |
const char * | ch ) |
Get Unicode character from UTF-8 string
size | Number of bytes this UTF-8 character occupies |
ch | Starting position of the UTF-8 character |
References null_char.
Referenced by sstr::SStringView::at(), getUnicodeFromUTF8Char(), sstr::SStringView::toChars(), and sstr::SStringView::toCWString().
SChar sstr::getUnicodeFromUTF8Char | ( | const char * | u8char | ) |
Get UTF-8 character code
u8char | UTF-8 character |
References getSizeFromUTF8Char(), and getUnicodeCharFromUTF8Char().
Referenced by sstr::SStringView::Iterator::Iterator(), and sstr::SStringView::Iterator::operator++().
char sstr::getUTF8SizeFromUnicodeChar | ( | SChar | ch | ) |
Get the number of bytes a character occupies in UTF-8 from SChar
ch | Unicode character |
Referenced by sstr::SString::fromSChars(), sstr::SString::fromSChars(), sstr::SString::fromUCS2LE(), and sstr::SStringView::Iterator::operator++().
|
extern |
References getNext().
|
inline |
Shift elements of the target buffer to the left
T | Element type |
header | Target buffer |
len | Original size of the target buffer (already used) |
begin | Starting position of the operation |
count | Shift distance |
References count().
|
extern |
|
inline |
Shift elements of the target buffer to the left
T | Element type |
header | Target buffer |
len | Original size of the target buffer (already used) |
begin | Starting position of the operation |
count | Shift distance |
References count().
|
final |
SStringBuilder.
Data pointer
Number of characters
Capacity (unit is uint32_t, i.e., 4 bytes)
References at(), and SESE_DEPRECATED_WITH.