utf8_counter Struct Reference

Public Types

typedef size_t value_type

Static Public Member Functions

static value_type low (value_type result, uint32_t ch)
static value_type high (value_type result, uint32_t)

Detailed Description

Definition at line 762 of file pugixml.cpp.

Member Typedef Documentation

◆ value_type

typedef size_t utf8_counter::value_type

Definition at line 764 of file pugixml.cpp.

Member Function Documentation

◆ high()

value_type utf8_counter::high ( value_type result,
uint32_t  )
inlinestatic

Definition at line 776 of file pugixml.cpp.

777 {
778 // U+10000..U+10FFFF
779 return result + 4;
780 }

◆ low()

value_type utf8_counter::low ( value_type result,
uint32_t ch )
inlinestatic

Definition at line 766 of file pugixml.cpp.

767 {
768 // U+0000..U+007F
769 if (ch < 0x80) return result + 1;
770 // U+0080..U+07FF
771 else if (ch < 0x800) return result + 2;
772 // U+0800..U+FFFF
773 else return result + 3;
774 }

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

Generated on for QuickFIX by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2001