![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Inline implementations for utilities declared in utils.hpp.
More...
Go to the source code of this file.
Namespaces | |
| namespace | toy |
| Root namespace containing all engine modules. | |
Functions | |
| constexpr wchar_t * | toy::utf8toWChar (wchar_t *dest, size_t destSize, const char *src) noexcept |
| Converts a UTF-8 C string to a wide-character string (full source length). | |
| template<StringLike T> | |
| constexpr wchar_t * | toy::utf8toWChar (wchar_t *dest, size_t destSize, const T &src) noexcept |
| Converts a UTF-8 toy::StringLike object to a wide-character string. | |
| constexpr char * | toy::reverseString (char *str, size_t count=0) noexcept |
| Reverses a C string in-place. | |
| template<std::signed_integral T> | |
| constexpr char * | toy::itoa (char *dest, size_t destSize, T value) noexcept |
| Converts a signed integer to its decimal C string representation. | |
| template<std::unsigned_integral T> | |
| constexpr char * | toy::utoa (char *dest, size_t destSize, T value, unsigned base=10) noexcept |
| Converts an unsigned integer to its C string representation in the given base. | |
| size_t | toy::highestBit (uint64_t value) noexcept |
| Returns the 0-based index of the highest set bit in value. | |
Inline implementations for utilities declared in utils.hpp.