🟩 String formatting / conversion / manipulation (ASCII / UTF8 / UTF16) (see Strings for more details)
More...
|
template<unsigned int N> |
constexpr unsigned int | SC::PluginHash (const char(&str)[N]) |
| Compute compile time FNV hash for a char array.
|
|
constexpr bool | SC::StringEncodingAreBinaryCompatible (StringEncoding encoding1, StringEncoding encoding2) |
| Checks if two encodings have the same utf unit size.
|
|
constexpr uint32_t | SC::StringEncodingGetSize (StringEncoding encoding) |
| Returns the number of bytes to represent an utf unit in the given encoding.
|
|
🟩 String formatting / conversion / manipulation (ASCII / UTF8 / UTF16) (see Strings for more details)
◆ StringCodePoint
#include <StringIterator.h>
UTF code point (32 bit)
◆ PluginHash()
template<unsigned int N>
unsigned int SC::PluginHash |
( |
const char(&) | str[N] | ) |
|
|
constexpr |
#include <PluginHash.h>
Compute compile time FNV hash for a char array.
◆ StringEncodingAreBinaryCompatible()
bool SC::StringEncodingAreBinaryCompatible |
( |
StringEncoding | encoding1, |
|
|
StringEncoding | encoding2 ) |
|
constexpr |
#include <StringIterator.h>
Checks if two encodings have the same utf unit size.
- Parameters
-
encoding1 | First encoding |
encoding2 | Second encoding |
- Returns
true
if the two encodings have the same unit size
◆ StringEncodingGetSize()
uint32_t SC::StringEncodingGetSize |
( |
StringEncoding | encoding | ) |
|
|
constexpr |
#include <StringIterator.h>
Returns the number of bytes to represent an utf unit in the given encoding.
- Parameters
-
- Returns
- number of bytes of the given encoding