Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::LCString Class Reference

#include <inviwo/core/datastructures/lcstring.h>

Public Types

using const_iterator = std::string::const_iterator
using const_reverse_iterator = std::string::const_reverse_iterator
using difference_type = std::string::difference_type
using size_type = std::string::size_type
using value_type = char

Public Member Functions

constexpr char at (size_type i) const
constexpr const_iterator begin () const noexcept
constexpr const char * c_str () const noexcept
constexpr const_iterator cbegin () const noexcept
constexpr const_iterator cend () const noexcept
constexpr int compare (std::string_view s) const noexcept
constexpr const char * data () const noexcept
constexpr bool empty () const noexcept
constexpr const_iterator end () const noexcept
constexpr LCString (const char *s)
constexpr LCString (const std::string &s)
constexpr LCString (std::string &&s)
constexpr LCString (std::string_view s)
constexpr operator const std::string & () const noexcept
constexpr operator std::string_view () const noexcept
constexpr auto operator<=> (const char *b) const noexcept
constexpr auto operator<=> (const LCString &other) const noexcept=default
constexpr auto operator<=> (std::string_view b) const noexcept
constexpr LCString & operator= (const std::string &s)
constexpr LCString & operator= (std::string &&s)
constexpr LCString & operator= (std::string_view s)
constexpr bool operator== (const char *b) const noexcept
constexpr bool operator== (const LCString &other) const noexcept=default
constexpr bool operator== (std::string_view b) const noexcept
constexpr char operator[] (size_type i) const
constexpr const_reverse_iterator rbegin () const noexcept
constexpr const_reverse_iterator rend () const noexcept
constexpr size_t size () const noexcept
constexpr std::string str () const
constexpr std::string_view view () const noexcept

Detailed Description

LCString: lightweight wrapper that stores a lowercase-only string.

  • Constructible/assignable from std::string and std::string_view
  • Always stores lowercased characters (ASCII semantics)
  • Convertible to std::string_view and std::string
  • Provides const iterators, element access and C++20 three-way comparisons

The documentation for this class was generated from the following file:
  • include/inviwo/core/datastructures/lcstring.h