Page Contents

Topics

Classes

LString Class

#include <Layers/lstring.h>

Public Functions

LString()
LString(const char* string)
LString(const LString& other)
LString(LString&& other) noexcept
inline std::string::iterator begin()
inline std::string::const_iterator begin() const
inline const char* c_str() const noexcept
inline bool empty() const
inline std::string::iterator end()
inline std::string::const_iterator end() const
LString& operator=(const LString& other)
LString& operator=(LString&& other) noexcept
bool operator<(const LString& other) const
LString operator+(const char* other) const
LString operator+(const LString& other) const
bool operator==(const LString& other) const

Detailed Description

The LString class represents strings in Layers and provides functionalities that allow for string manipulation and interaction.

Member Function Documentation

LString()

Initializes an empty Layers string.

LString(const char* string)

Constructs a Layers string from a C-style string.

LString(const LString& other)

Constructs a copy of the other string.

LString(LString&& other) noexcept

Constructs a Layers string by acquiring the resources of the other string.

inline std::string::iterator begin()

Returns an iterator pointing to the beginning of the LString object.

inline std::string::const_iterator begin() const

Returns a const iterator pointing to the beginning of the LString object.

inline const char* c_str() const noexcept

Returns a pointer to a C-style string representation of the LString object.

inline bool empty() const

Returns true if the LString object contains no characters, false otherwise.

inline std::string::iterator end()

Returns an iterator pointing to the end of the LString object.

inline std::string::const_iterator end() const

Returns a const iterator pointing to the end of the LString object.

LString& operator=(const LString& other)

Assigns the value of the other LString object to the current object.

LString& operator=(LString&& other) noexcept

Assigns the value of the other LString object to the current object by acquiring its resources.

bool operator<(const LString& other) const

Compares the current LString object with other. Returns true if the current object is lexicographically less than the other.

LString operator+(const char* other) const

Concatenates the LString object with a C-style string.

LString operator+(const LString& other) const

Concatenates two LString objects.

bool operator==(const LString& other) const

Compares the current LString object with the other for equality.