Rename compact_string to compact_string_fat

This commit is contained in:
Arseny Kapoulkine 2015-05-01 21:09:26 -07:00
parent bc5eb22b71
commit 3915f7b144

View File

@ -892,14 +892,14 @@ PUGI__NS_BEGIN
uint16_t _data; uint16_t _data;
}; };
template <int header_offset> class compact_string template <int header_offset> class compact_string_fat
{ {
public: public:
compact_string(): _data0(0), _data1(0), _data2(0) compact_string_fat(): _data0(0), _data1(0), _data2(0)
{ {
} }
void operator=(const compact_string& rhs) void operator=(const compact_string_fat& rhs)
{ {
*this = rhs + 0; *this = rhs + 0;
} }
@ -974,8 +974,8 @@ namespace pugi
unsigned char padding; unsigned char padding;
impl::compact_string<4> name; impl::compact_string_fat<4> name;
impl::compact_string<7> value; impl::compact_string_fat<7> value;
impl::compact_pointer<xml_attribute_struct, 10> prev_attribute_c; impl::compact_pointer<xml_attribute_struct, 10> prev_attribute_c;
impl::compact_pointer<xml_attribute_struct, 11, 0> next_attribute; impl::compact_pointer<xml_attribute_struct, 11, 0> next_attribute;
@ -990,11 +990,11 @@ namespace pugi
impl::compact_header header; impl::compact_header header;
impl::compact_string<3> name;
impl::compact_string<6> value;
unsigned char padding; unsigned char padding;
impl::compact_string_fat<4> name;
impl::compact_string_fat<7> value;
impl::compact_pointer_parent<xml_node_struct, 10> parent; impl::compact_pointer_parent<xml_node_struct, 10> parent;
impl::compact_pointer<xml_node_struct, 12, 0> first_child; impl::compact_pointer<xml_node_struct, 12, 0> first_child;