u5e
UnicodeTextC++Library
Public Member Functions | List of all members
u5e::utf8_iterator< NativeIterator >::proxyobject Class Reference

offers write access to the iterator at a given position More...

#include <u5e/utf8_iterator.hpp>

Inheritance diagram for u5e::utf8_iterator< NativeIterator >::proxyobject:
Inheritance graph
[legend]
Collaboration diagram for u5e::utf8_iterator< NativeIterator >::proxyobject:
Collaboration graph
[legend]

Public Member Functions

 proxyobject (utf8_iterator< NativeIterator > &refin)
 
proxyobjectoperator= (const codepoint c)
 
- Public Member Functions inherited from u5e::codepoint
constexpr codepoint ()
 
constexpr codepoint (int32_t v)
 
constexpr codepoint (const codepoint &x)=default
 
constexpr codepointoperator= (const codepoint &x)=default
 
constexpr codepointoperator= (int c)
 
constexpr operator int () const
 

Additional Inherited Members

- Public Attributes inherited from u5e::codepoint
codepoint_traits::int_type value
 

Detailed Description

template<typename NativeIterator>
class u5e::utf8_iterator< NativeIterator >::proxyobject

offers write access to the iterator at a given position

This is necessary because operator= can only be done after operator* is executed, this wouldn't be necessary if there was a dedicated operator for 'assign to the dereference'.

Definition at line 292 of file utf8_iterator.hpp.

Constructor & Destructor Documentation

template<typename NativeIterator>
u5e::utf8_iterator< NativeIterator >::proxyobject::proxyobject ( utf8_iterator< NativeIterator > &  refin)
inline

Create from the iterator

Definition at line 303 of file utf8_iterator.hpp.

Member Function Documentation

template<typename NativeIterator>
proxyobject& u5e::utf8_iterator< NativeIterator >::proxyobject::operator= ( const codepoint  c)
inline

Assign a codepoint to this position, writing as many octets as necessary. Note that if you do this in the middle of a string, there is a likely chance that you will render the remainder of the string invalid. So it's really only a good idea to do this as an "append" operation.

Definition at line 316 of file utf8_iterator.hpp.


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