Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
utf32_decoder< opt_swap > Struct Template Reference

Public Types

typedef uint32_t type

Static Public Member Functions

template<typename Traits>
static Traits::value_type process (const uint32_t *data, size_t size, typename Traits::value_type result, Traits)

Detailed Description

template<typename opt_swap>
struct utf32_decoder< opt_swap >

Definition at line 1755 of file pugixml.cc.

Member Typedef Documentation

◆ type

template<typename opt_swap>
typedef uint32_t utf32_decoder< opt_swap >::type

Definition at line 1757 of file pugixml.cc.

Member Function Documentation

◆ process()

template<typename opt_swap>
template<typename Traits>
Traits::value_type utf32_decoder< opt_swap >::process ( const uint32_t * data,
size_t size,
typename Traits::value_type result,
Traits  )
inlinestatic

Definition at line 1759 of file pugixml.cc.

1760 {
1761 while (size)
1762 {
1764
1765 // U+0000..U+FFFF
1766 if (lead < 0x10000)
1767 {
1769 data += 1;
1770 size -= 1;
1771 }
1772 // U+10000..U+10FFFF
1773 else
1774 {
1776 data += 1;
1777 size -= 1;
1778 }
1779 }
1780
1781 return result;
1782 }
PUGI__NS_END PUGI__NS_BEGIN uint16_t endian_swap(uint16_t value)
Definition pugixml.cc:1455

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