Fcitx
Public Types | Public Member Functions | List of all members
fcitx::utf8::UTF8CharIterator< Iter > Class Template Reference

Helper class to iterate character, you need to validate the string before using it. More...

#include <fcitx-utils/utf8.h>

Public Types

using iterator_category = std::input_iterator_tag
 
using value_type = uint32_t
 
using difference_type = std::ptrdiff_t
 
using reference = const value_type &
 
using pointer = const value_type *
 

Public Member Functions

 UTF8CharIterator (Iter iter, Iter end)
 
reference operator* () const
 
pointer operator-> () const
 
std::pair< Iter, Iter > charRange () const
 
size_t charLength () const
 
std::string_view view () const
 
UTF8CharIteratoroperator++ ()
 
UTF8CharIterator operator++ (int)
 
bool operator== (const UTF8CharIterator &other)
 
bool operator!= (const UTF8CharIterator &other)
 

Detailed Description

template<typename Iter>
class fcitx::utf8::UTF8CharIterator< Iter >

Helper class to iterate character, you need to validate the string before using it.

Definition at line 165 of file utf8.h.


The documentation for this class was generated from the following file: