PoDoFo  1.0.0-dev
Public Member Functions | List of all members
PoDoFo::CodePointSpan Class Referencefinal

A memory owning immutable block of code points, optimized for small segments as up to 3 elements can stay in the stack. More...

#include <PdfCharCodeMap.h>

Public Member Functions

 CodePointSpan (codepoint codepoint)
 
 CodePointSpan (const codepointview &view)
 
 CodePointSpan (const codepointview &view, codepoint codepoint)
 
 CodePointSpan (const CodePointSpan &)
 
void CopyTo (std::vector< codepoint > &codePoints) const
 
codepointview view () const
 
unsigned GetSize () const
 
CodePointSpanoperator= (const CodePointSpan &)
 
 operator codepointview () const
 
codepoint operator* () const
 Return the first element in the block. More...
 

Detailed Description

A memory owning immutable block of code points, optimized for small segments as up to 3 elements can stay in the stack.

Member Function Documentation

◆ operator*()

codepoint CodePointSpan::operator* ( ) const

Return the first element in the block.

Remarks
if the size is 0 it will always return U'\0'

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