Lines Matching refs:S

83 Simstr::Simstr(const Simstr & S)  in Simstr()  argument
85 len = S.len; in Simstr()
87 memcpy(sz,S.sz,len+1); in Simstr()
90 Simstr & Simstr::operator=(const Simstr & S) in operator =() argument
92 if (sz == S.sz) in operator =()
97 len = S.len; in operator =()
99 memcpy(sz,S.sz,len+1); in operator =()
110 Simstr::operator+(const Simstr & S) const in operator +()
113 ret.push_back(S); in operator +()
118 Simstr::operator+=(const Simstr & S) in operator +=() argument
120 push_back(S); in operator +=()
128 Simstr::operator==(const Simstr & S) const in operator ==()
129 { return !strcmp(sz,S.sz) ? true : false; } in operator ==()
132 Simstr::operator!=(const Simstr & S) const in operator !=()
133 { return strcmp(sz,S.sz) ? true : false; } in operator !=()
136 Simstr::operator<(const Simstr & S) const in operator <()
137 { return (strcmp(sz,S.sz) < 0) ? true : false; } in operator <()
140 Simstr::operator>(const Simstr & S) const in operator >()
141 { return (strcmp(sz,S.sz) > 0) ? true : false; } in operator >()
144 Simstr::operator<=(const Simstr & S) const in operator <=()
145 { return (strcmp(sz,S.sz) <= 0) ? true : false; } in operator <=()
148 Simstr::operator>=(const Simstr & S) const in operator >=()
149 { return (strcmp(sz,S.sz) >= 0) ? true : false; } in operator >=()
186 Simstr::push_front(const Simstr & S) in push_front() argument
188 char * result = new char[len+1+S.len]; in push_front()
190 memcpy(result,S.sz,S.len); in push_front()
191 memcpy(result+S.len,sz,len+1); in push_front()
195 len += S.len; in push_front()
199 Simstr::push_back(const Simstr & S) in push_back() argument
201 char * result = new char[len+1+S.len]; in push_back()
204 memcpy(result+len,S.sz,S.len+1); in push_back()
208 len += S.len; in push_back()
291 operator+(const char * str, const Simstr & S) in operator +() argument
293 Simstr ret = S; in operator +()
299 operator+(const Simstr & S, const char * str) in operator +() argument
301 Simstr ret = S; in operator +()
307 operator+(char c, const Simstr & S) in operator +() argument
309 Simstr ret = S; in operator +()
315 operator+(const Simstr & S, char c) in operator +() argument
317 Simstr ret = S; in operator +()
325 operator==(const Simstr & S, const char * str) in operator ==() argument
327 return strcmp(S,str) == 0; in operator ==()
331 operator!=(const Simstr & S, const char * str) in operator !=() argument
333 return strcmp(S,str) != 0; in operator !=()
337 operator<(const Simstr & S, const char * str) in operator <() argument
339 return strcmp(S,str) < 0; in operator <()
343 operator>(const Simstr & S, const char * str) in operator >() argument
345 return strcmp(S,str) > 0; in operator >()
349 operator<=(const Simstr & S, const char * str) in operator <=() argument
351 return strcmp(S,str) <= 0; in operator <=()
355 operator>=(const Simstr & S, const char * str) in operator >=() argument
357 return strcmp(S,str) >= 0; in operator >=()
361 operator==(const char * str, const Simstr & S) in operator ==() argument
363 return strcmp(str,S) == 0; in operator ==()
367 operator!=(const char * str, const Simstr & S) in operator !=() argument
369 return strcmp(str,S) != 0; in operator !=()
373 operator<(const char * str, const Simstr & S) in operator <() argument
375 return strcmp(str,S) < 0; in operator <()
379 operator>(const char * str, const Simstr & S) in operator >() argument
381 return strcmp(str,S) > 0; in operator >()
385 operator<=(const char * str, const Simstr & S) in operator <=() argument
387 return strcmp(str,S) <= 0; in operator <=()
391 operator>=(const char * str, const Simstr & S) in operator >=() argument
393 return strcmp(str,S) >= 0; in operator >=()