1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef cmsys_String_hxx
- #define cmsys_String_hxx
- #include <string>
- namespace cmsys {
- class String : public std::string
- {
-
- typedef std::string stl_string;
- public:
-
- typedef stl_string::value_type value_type;
- typedef stl_string::pointer pointer;
- typedef stl_string::reference reference;
- typedef stl_string::const_reference const_reference;
- typedef stl_string::size_type size_type;
- typedef stl_string::difference_type difference_type;
- typedef stl_string::iterator iterator;
- typedef stl_string::const_iterator const_iterator;
- typedef stl_string::reverse_iterator reverse_iterator;
- typedef stl_string::const_reverse_iterator const_reverse_iterator;
-
- String()
- : stl_string()
- {
- }
- String(const value_type* s)
- : stl_string(s)
- {
- }
- String(const value_type* s, size_type n)
- : stl_string(s, n)
- {
- }
- String(const stl_string& s, size_type pos = 0, size_type n = npos)
- : stl_string(s, pos, n)
- {
- }
- };
- #if defined(__WATCOMC__)
- inline bool operator<(String const& l, String const& r)
- {
- return (static_cast<std::string const&>(l) <
- static_cast<std::string const&>(r));
- }
- #endif
- }
- #endif
|