16 |
|
SegmentType type; |
17 |
|
ext::String text; |
18 |
|
Tag tag; |
19 |
< |
Segment() {} |
19 |
> |
Segment() : type(TEXT) {} |
20 |
|
Segment(const ext::String& text) : type(TEXT), text(text) {} |
21 |
|
Segment(const Tag& tag) : type(TAG), tag(tag) {} |
22 |
|
}; |
27 |
|
ext::Vector<Segment> segments; |
28 |
|
public: |
29 |
|
template <typename Type> |
30 |
< |
void insert(const Type& type) { segments.InsertLast(Segment(type)); } |
30 |
> |
void insert(const Type& type) { segments.InsertLast(type); } |
31 |
|
void clean(); |
32 |
|
// friends: |
33 |
|
friend ios::PrintWriter& operator<<(ios::PrintWriter& pout, const Cleaner& cleaner); |