![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Core class that represents a stream of strings. More...
Public Member Functions | |
| StringStream (String str) | |
| Constructs a StringStream object with a string. More... | |
| StringStream (const StringStream &)=default | |
| StringStream (StringStream &&) noexcept=default | |
| void | Clear () |
| Resets the state of the stream, erasing every contained text. | |
| std::size_t | GetBufferSize () const |
| Get the current buffer size. More... | |
| String | ToString () const |
| Gives a string representation. More... | |
| StringStream & | operator= (const StringStream &)=default |
| StringStream & | operator= (StringStream &&) noexcept=default |
| StringStream & | operator<< (bool boolean) |
| Adds the representation of the boolean. More... | |
| StringStream & | operator<< (short number) |
| Adds the representation of the short. More... | |
| StringStream & | operator<< (unsigned short number) |
| Adds the representation of the unsigned short. More... | |
| StringStream & | operator<< (int number) |
| Adds the representation of the int. More... | |
| StringStream & | operator<< (unsigned int number) |
| Adds the representation of the unsigned int. More... | |
| StringStream & | operator<< (long number) |
| Adds the representation of the long. More... | |
| StringStream & | operator<< (unsigned long number) |
| Adds the representation of the unsigned long. More... | |
| StringStream & | operator<< (long long number) |
| Adds the representation of the long long. More... | |
| StringStream & | operator<< (unsigned long long number) |
| Adds the representation of the unsigned long long. More... | |
| StringStream & | operator<< (float number) |
| Adds the representation of the float. More... | |
| StringStream & | operator<< (double number) |
| Adds the representation of the double. More... | |
| StringStream & | operator<< (long double number) |
| Adds the representation of the long double. More... | |
| StringStream & | operator<< (char character) |
| Adds the representation of the char. More... | |
| StringStream & | operator<< (unsigned char character) |
| Adds the representation of the unsigned char. More... | |
| StringStream & | operator<< (const char *string) |
| Adds the representation of the const char*. More... | |
| StringStream & | operator<< (const std::string &string) |
| Adds the representation of the std::string. More... | |
| StringStream & | operator<< (const String &string) |
| Adds the representation of the Nz::String. More... | |
| StringStream & | operator<< (const void *ptr) |
| Adds the representation of the pointer. More... | |
| operator String () const | |
| Converts this to Nz::String. More... | |
Core class that represents a stream of strings.
| Nz::StringStream::StringStream | ( | String | str | ) |
Constructs a StringStream object with a string.
| str | First value of the stream |
| std::size_t Nz::StringStream::GetBufferSize | ( | ) | const |
Get the current buffer size.
| Nz::StringStream::operator String | ( | ) | const |
Converts this to Nz::String.
| StringStream & Nz::StringStream::operator<< | ( | bool | boolean | ) |
Adds the representation of the boolean.
| boolean | Boolean value |
| StringStream & Nz::StringStream::operator<< | ( | short | number | ) |
Adds the representation of the short.
| number | Short value |
| StringStream & Nz::StringStream::operator<< | ( | unsigned short | number | ) |
Adds the representation of the unsigned short.
| number | Short value |
| StringStream & Nz::StringStream::operator<< | ( | int | number | ) |
Adds the representation of the int.
| number | Int value |
| StringStream & Nz::StringStream::operator<< | ( | unsigned int | number | ) |
Adds the representation of the unsigned int.
| number | Int value |
| StringStream & Nz::StringStream::operator<< | ( | long | number | ) |
Adds the representation of the long.
| number | Long value |
| StringStream & Nz::StringStream::operator<< | ( | unsigned long | number | ) |
Adds the representation of the unsigned long.
| number | Long value |
| StringStream & Nz::StringStream::operator<< | ( | long long | number | ) |
Adds the representation of the long long.
| number | Long long value |
| StringStream & Nz::StringStream::operator<< | ( | unsigned long long | number | ) |
Adds the representation of the unsigned long long.
| number | Long long value |
| StringStream & Nz::StringStream::operator<< | ( | float | number | ) |
Adds the representation of the float.
| number | Float value |
| StringStream & Nz::StringStream::operator<< | ( | double | number | ) |
Adds the representation of the double.
| number | Double value |
| StringStream & Nz::StringStream::operator<< | ( | long double | number | ) |
Adds the representation of the long double.
| number | Long double value |
| StringStream & Nz::StringStream::operator<< | ( | char | character | ) |
Adds the representation of the char.
| character | Char value |
| StringStream & Nz::StringStream::operator<< | ( | unsigned char | character | ) |
Adds the representation of the unsigned char.
| character | Char value |
| StringStream & Nz::StringStream::operator<< | ( | const char * | string | ) |
Adds the representation of the const char*.
| string | String value |
| StringStream & Nz::StringStream::operator<< | ( | const std::string & | string | ) |
Adds the representation of the std::string.
| string | String value |
| StringStream & Nz::StringStream::operator<< | ( | const String & | string | ) |
| StringStream & Nz::StringStream::operator<< | ( | const void * | ptr | ) |
Adds the representation of the pointer.
| ptr | Pointer value |
| String Nz::StringStream::ToString | ( | ) | const |
Gives a string representation.