ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
fixed_string.hpp File Reference

Fixed-capacity string with stack storage. More...

#include "string_like.hpp"
Include dependency graph for fixed_string.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toy::FixedStringStorage< allocatedSize >
class  toy::FixedString< allocatedSize >
 Template string class with fixed-size character buffer. More...

Namespaces

namespace  toy
 Root namespace containing all engine modules.

Functions

template<size_t allocatedSize1, size_t allocatedSize2>
constexpr FixedString< allocatedSize1 > toy::operator+ (const FixedString< allocatedSize1 > &lhs, const FixedString< allocatedSize2 > &rhs) noexcept
 Concatenation operator for two FixedString objects.
template<size_t allocatedSize, StringLike stringType>
constexpr FixedString< allocatedSize > toy::operator+ (const FixedString< allocatedSize > &lhs, const stringType &rhs) noexcept
 Concatenation operator for FixedString and toy::StringLike object.
template<size_t allocatedSize, StringLike stringType>
constexpr FixedString< allocatedSize > toy::operator+ (const stringType &lhs, const FixedString< allocatedSize > &rhs) noexcept
 Concatenation operator for toy::StringLike object and FixedString.
template<size_t allocatedSize>
constexpr FixedString< allocatedSize > toy::operator+ (const FixedString< allocatedSize > &lhs, const char *rhs) noexcept
 Concatenation operator for FixedString and C-string.
template<size_t allocatedSize>
constexpr FixedString< allocatedSize > toy::operator+ (const char *lhs, const FixedString< allocatedSize > &rhs) noexcept
 Concatenation operator for C-string and FixedString.
template<size_t allocatedSize>
constexpr FixedString< allocatedSize > toy::operator+ (const FixedString< allocatedSize > &lhs, char rhs) noexcept
 Concatenation operator for FixedString and character.
template<size_t allocatedSize>
constexpr FixedString< allocatedSize > toy::operator+ (char lhs, const FixedString< allocatedSize > &rhs) noexcept
 Concatenation operator for character and FixedString.
template<size_t allocatedSize1, size_t allocatedSize2>
constexpr bool toy::operator== (const FixedString< allocatedSize1 > &lhs, const FixedString< allocatedSize2 > &rhs) noexcept
 Equality comparison operator for two FixedString objects.
template<size_t allocatedSize, StringLike stringType>
constexpr bool toy::operator== (const FixedString< allocatedSize > &lhs, const stringType &rhs) noexcept
 Equality comparison operator for FixedString and toy::StringLike object.
template<size_t allocatedSize, StringLike stringType>
constexpr bool toy::operator== (const stringType &lhs, const FixedString< allocatedSize > &rhs) noexcept
 Equality comparison operator for toy::StringLike object and FixedString.
template<size_t allocatedSize>
constexpr bool toy::operator== (const FixedString< allocatedSize > &lhs, const char *rhs) noexcept
 Equality comparison operator for FixedString and C string.
template<size_t allocatedSize>
constexpr bool toy::operator== (const char *lhs, const FixedString< allocatedSize > &rhs) noexcept
 Equality comparison operator for C string and FixedString.
template<size_t allocatedSize1, size_t allocatedSize2>
constexpr strong_ordering toy::operator<=> (const FixedString< allocatedSize1 > &lhs, const FixedString< allocatedSize2 > &rhs) noexcept
 Three-way comparison operator for FixedString objects.
template<size_t allocatedSize, StringLike stringType>
constexpr strong_ordering toy::operator<=> (const FixedString< allocatedSize > &lhs, const stringType &rhs) noexcept
 Three-way comparison operator for FixedString and toy::StringLike object.
template<size_t allocatedSize, StringLike stringType>
constexpr strong_ordering toy::operator<=> (const stringType &lhs, const FixedString< allocatedSize > &rhs) noexcept
 Three-way comparison operator for toy::StringLike object and FixedString.
template<size_t allocatedSize>
constexpr strong_ordering toy::operator<=> (const FixedString< allocatedSize > &lhs, const char *rhs) noexcept
 Three-way comparison operator for FixedString and C string.
template<size_t allocatedSize>
constexpr strong_ordering toy::operator<=> (const char *lhs, const FixedString< allocatedSize > &rhs) noexcept
 Three-way comparison operator for C string and FixedString.

Detailed Description

Fixed-capacity string with stack storage.

Defines toy::FixedString and related APIs.

Note
Included by core.hpp; do not include this file directly.