21 #include "DataBuffer.hpp"
30 RopeBase::Head m_head;
32 Uint32 hashValue()
const {
return m_hash; }
40 this->head = src.m_head;
49 void copy(
char*
buf)
const;
51 int compare(
const char * s)
const {
return compare(s, (Uint32)strlen(s) + 1);}
52 int compare(
const char *, Uint32 len)
const;
64 this->head = src.m_head;
69 src.m_head = this->head;
76 void copy(
char*
buf)
const;
78 int compare(
const char * s)
const {
return compare(s, Uint32(strlen(s) + 1));}
79 int compare(
const char *, Uint32 len)
const;
81 bool assign(
const char * s) {
return assign(s, Uint32(strlen(s) + 1));}
82 bool assign(
const char * s, Uint32 l) {
return assign(s, l, hash(s, l));}
83 bool assign(
const char *, Uint32 len, Uint32 hash);
87 static Uint32 hash(
const char * str, Uint32 len);
103 Rope::empty()
const {
104 return head.used == 0;
109 ConstRope::size()
const {
115 ConstRope::empty()
const {
116 return head.used == 0;