arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/utility/utf8/code_point.hpp>
Classes | |
class | range_t |
Public Types | |
using | difference_type = std::string_view::difference_type |
using | value_type = std::string_view |
using | pointer = const value_type * |
using | reference = const value_type & |
using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
constexpr | iterator () noexcept=default |
constexpr | iterator (std::string_view str) noexcept |
constexpr bool | operator== (iterator other) const noexcept |
constexpr bool | operator!= (iterator other) const noexcept |
constexpr value_type | operator* () const noexcept |
constexpr iterator & | operator++ () noexcept |
constexpr iterator | operator++ (int) noexcept |
Static Public Member Functions | |
constexpr static range_t | range (std::string_view str) noexcept |
Forward iterator for a string's code points.
Definition at line 220 of file code_point.hpp.
using arg_router::utility::utf8::code_point::iterator::difference_type = std::string_view::difference_type |
Difference in bytes between two iterator positions.
Definition at line 224 of file code_point.hpp.
using arg_router::utility::utf8::code_point::iterator::iterator_category = std::forward_iterator_tag |
Iterator category.
Definition at line 232 of file code_point.hpp.
Pointer type.
Definition at line 228 of file code_point.hpp.
Reference type/
Definition at line 230 of file code_point.hpp.
using arg_router::utility::utf8::code_point::iterator::value_type = std::string_view |
Dereferenced type.
Definition at line 226 of file code_point.hpp.
|
constexprdefaultnoexcept |
Default constructor.
Represents the end iterator.
|
inlineexplicitconstexprnoexcept |
Constructor.
If str is empty, then this will create an end iterator.
str | String to iterator over. |
Definition at line 286 of file code_point.hpp.
|
inlineconstexprnoexcept |
Inequality operator.
other | Instance to compare against |
Definition at line 307 of file code_point.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Pre-increment the iterator by one code point.
Definition at line 326 of file code_point.hpp.
|
inlineconstexprnoexcept |
Post-increment the iterator by one code point.
Definition at line 337 of file code_point.hpp.
|
inlineconstexprnoexcept |
Equality operator.
other | Instance to compare against |
Definition at line 293 of file code_point.hpp.
|
inlinestaticconstexprnoexcept |
Returns an object that can be used in range-for loops.
str | Input string |
Definition at line 270 of file code_point.hpp.