File tree 1 file changed +1
-36
lines changed
1 file changed +1
-36
lines changed Original file line number Diff line number Diff line change @@ -24,41 +24,6 @@ namespace rapidxml
24
24
{
25
25
const int parse_normal = parse_no_data_nodes;
26
26
27
- /* class tok_string
28
- {
29
- public:
30
- tok_string() : value_(nullstring()), length_(0) {}
31
- tok_string(char* v) : value_(v), length_(0) {}
32
- tok_string(char* v, size_t l) : value_(v), length_(l) {}
33
-
34
- char* value() const { return value_; }
35
- void value(char* v) { value_ = v; }
36
-
37
- size_t length() const { return length_; }
38
- void length(size_t l) { length_ = l; }
39
- void length(char* end) { length_ = end - value_; }
40
-
41
- char& operator[](size_t index)
42
- {
43
- return value_[index];
44
- }
45
-
46
- void write_null_terminator()
47
- {
48
- value_[length_] = '\0';
49
- }
50
- private:
51
- static char *nullstring()
52
- {
53
- static char zero = ('\0');
54
- return &zero;
55
- }
56
-
57
- private:
58
- char* value_;
59
- size_t length_;
60
- };*/
61
-
62
27
typedef std::pair<char *, size_t > tok_string;
63
28
typedef std::pair<const char *, size_t > const_tok_string;
64
29
@@ -144,7 +109,7 @@ namespace rapidxml
144
109
{
145
110
xmlSAX2Text (s, len);
146
111
}
147
-
112
+ private:
148
113
tok_string elementName;
149
114
std::vector<const char *> elementAttrs;
150
115
};
You can’t perform that action at this time.
0 commit comments