Skip to content

Commit 58bcfb9

Browse files
authored
Update rapidxml_sax3.hpp
1 parent 7977d23 commit 58bcfb9

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

rapidxml/rapidxml_sax3.hpp

+1-36
Original file line numberDiff line numberDiff line change
@@ -24,41 +24,6 @@ namespace rapidxml
2424
{
2525
const int parse_normal = parse_no_data_nodes;
2626

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-
6227
typedef std::pair<char*, size_t> tok_string;
6328
typedef std::pair<const char*, size_t> const_tok_string;
6429

@@ -144,7 +109,7 @@ namespace rapidxml
144109
{
145110
xmlSAX2Text(s, len);
146111
}
147-
112+
private:
148113
tok_string elementName;
149114
std::vector<const char*> elementAttrs;
150115
};

0 commit comments

Comments
 (0)