Lines Matching defs:rhs
51 Str::Str(const Str& rhs)
52 : str_(strcpy(new char[strlen(rhs.str_)+1], rhs.str_)),
62 Str::operator = (const Str& rhs)
65 str_ = strcpy(new char[strlen(rhs.str_)+1], rhs.str_);
67 nextTok_ = str_ + (rhs.nextTok_ - rhs.str_);
79 Str::operator == (const Str& rhs) const
81 return (strcmp(str_, rhs.str_) == 0);
85 Str::operator != (const Str& rhs) const
87 return (strcmp(str_, rhs.str_) != 0);
97 Str::operator<<(Str rhs)
99 char *tmp = new char[strlen(str_)+strlen(rhs.peak())+1];
103 strcat(str_, rhs.peak());
141 Str::compare(const Str& rhs) const
143 return (strcmp(str_, rhs.str_));