|
SDL3pp
A slim C++ wrapper for SDL3
|
A simple std::string-like interface for SDL allocated strings.


Public Member Functions | |
| StringResult (const StringResult &other) | |
| Copy ctor. | |
| constexpr | StringResult (StringResult &&other) |
| Move ctor. | |
| StringResult (std::string_view other) | |
| Constructs from string view. | |
| constexpr | operator StringParam () const |
| Convert to StringParam. | |
| constexpr | operator std::string_view () const |
| Convert to std::string_view. | |
| StringResult & | operator+= (std::string_view other) |
| Append string. | |
| StringResult & | operator+= (char ch) |
| Append char. | |
| StringResult | operator+ (std::string_view other) const |
| Append string. | |
| StringResult | operator+ (char ch) |
| Append char. | |
| std::string | str () const |
| Convert to string. | |
| const char * | c_str () const |
| Convert to c-string. | |
| constexpr | OwnArray (std::nullptr_t=nullptr) |
| Use parent ctors. | |
| constexpr | OwnArray (T *ptr, size_t size) |
| Use parent ctors. | |
| constexpr | OwnArray (T *ptr) |
| Use parent ctors. | |
Public Member Functions inherited from SDL::OwnArray< char > | |
| constexpr | OwnArray (std::nullptr_t=nullptr) |
| Constructor. | |
| constexpr | OwnArray (char *ptr, size_t size) |
| Constructor. | |
| constexpr | OwnArray (char *ptr) |
| Constructor. | |
| constexpr | operator bool () const |
| True if not empty. | |
| constexpr bool | empty () const |
| True if size() == 0. | |
| constexpr char * | data () |
| Data. | |
| constexpr const char * | data () const |
| Data. | |
| constexpr size_t | size () const |
| Size. | |
| char * | release () |
| Release control on object. More... | |
| void | reset (char *newValue=nullptr) |
| Reset object. More... | |
| void | reset (char *newValue, size_t size) |
| Reset object. More... | |
| constexpr char & | operator[] (size_t i) |
| Access index. | |
| constexpr const char & | operator[] (size_t i) const |
| Access index. | |
| char * | begin () |
| Get iterator to first element. | |
| const char * | begin () const |
| Get iterator to first element. | |
| const char * | cbegin () const |
| Get iterator to first element. | |
| char * | end () |
| Get iterator to one past end element. | |
| const char * | end () const |
| Get iterator to one past end element. | |
| const char * | cend () const |
| Get iterator to one past end element. | |
| char & | front () |
| Return first element. | |
| char & | back () |
| Return last element. | |