| 15 | namespace dena { |
| 16 | |
| 17 | struct string_wref { |
| 18 | typedef char value_type; |
| 19 | char *begin() const { return start; } |
| 20 | char *end() const { return start + length; } |
| 21 | size_t size() const { return length; } |
| 22 | private: |
| 23 | char *start; |
| 24 | size_t length; |
| 25 | public: |
| 26 | string_wref(char *s = 0, size_t len = 0) : start(s), length(len) { } |
| 27 | }; |
| 28 | |
| 29 | struct string_ref { |
| 30 | typedef const char value_type; |