Lines Matching defs:String
8 class String {
10 String() : ptr_(NULL), length_(0) {}
11 explicit String(const char *str) : ptr_(str), length_(0) {
16 String(const char *ptr, std::size_t length)
18 String(const String &str) : ptr_(str.ptr_), length_(str.length_) {}
20 String substr(std::size_t pos, std::size_t length) const {
22 return String(ptr_ + pos, length);
25 String &operator=(const String &str) {
48 inline bool operator==(const String &lhs, const String &rhs) {
60 inline bool operator!=(const String &lhs, const String &rhs) {
64 inline bool operator<(const String &lhs, const String &rhs) {
76 inline bool operator>(const String &lhs, const String &rhs) {
84 explicit RString(const String &str)