Unigine::StringStack class
Header: | #include <UnigineString.h> |
A string that is stored in a stack. Using this class improves performance if the string is constantly changing during its lifetime, and its maximum size is known, or if the string is used as a local variable.
An instance of the StringStack class automatically becomes an instance of the String class if its size exceeds the maximum value of 256 characters.
StringStack Class
Members
static StringStackPtr create ( ) #
Default constructor that creates an empty string stack of the default size (256 characters).static StringStackPtr create ( const String & s ) #
Copy constructor. Creates a string stack that stores a given string.Arguments
- const String & s - String to be copied.
static StringStackPtr create ( const StringStack<Capacity> & s ) #
Copy constructor.Arguments
- const StringStack<Capacity> & s - String stack of a specified size.
static StringStackPtr create ( const char * s ) #
Copy constructor.Arguments
- const char * s - Pointer to a null-terminated string.
void destroy ( ) #
Destroys the string.void StringStack<Capacity> ( StringStack<OtherCapacity> && s ) #
Copies a given string stack to the current string stack.Arguments
- StringStack<OtherCapacity> && s - String stack of a given size to be copied.
StringStack<Capacity> & operator= ( const StringStack<Capacity> & s ) #
Assignment operator for the string stack.Arguments
- const StringStack<Capacity> & s - String stack.
StringStack<Capacity> & operator= ( const char * s ) #
Assignment operator for the string stack.Arguments
- const char * s - Pointer to a null-terminated string.
StringStack<Capacity> & operator= ( StringStack<OtherCapacity> && s ) #
Assignment operator for the string stack.Arguments
- StringStack<OtherCapacity> && s - String stack of the given size.
StringStack<Capacity> & operator= ( const String & s ) #
Assignment operator for the string stack.Arguments
- const String & s - String.
Last update:
16.01.2023
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter