Public Types | Static Public Member Functions
utf8_counter Struct Reference

List of all members.

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

typedef size_t utf8_counter::value_type

Definition at line 764 of file pugixml.cpp.


Member Function Documentation

static value_type utf8_counter::high ( value_type  result,
uint32_t   
) [inline, static]

Definition at line 776 of file pugixml.cpp.

                {
                        // U+10000..U+10FFFF
                        return result + 4;
                }
static value_type utf8_counter::low ( value_type  result,
uint32_t  ch 
) [inline, static]

Definition at line 766 of file pugixml.cpp.

                {
                        // U+0000..U+007F
                        if (ch < 0x80) return result + 1;
                        // U+0080..U+07FF
                        else if (ch < 0x800) return result + 2;
                        // U+0800..U+FFFF
                        else return result + 3;
                }

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

Generated on Mon Sep 15 2014 01:23:55 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001