Lines Matching refs:S

115 Simstr::Simstr(const Simstr & S)  in Simstr()  argument
117 len = S.len; in Simstr()
119 memcpy(sz,S.sz,len+1); in Simstr()
122 Simstr & Simstr::operator=(const Simstr & S) in operator =() argument
124 if (sz == S.sz) in operator =()
129 len = S.len; in operator =()
131 memcpy(sz,S.sz,len+1); in operator =()
161 Simstr::operator+(const Simstr & S) const in operator +()
164 ret.push_back(S); in operator +()
169 Simstr::operator+=(const Simstr & S) in operator +=() argument
171 push_back(S); in operator +=()
187 Simstr::operator==(const Simstr & S) const in operator ==()
188 { return !strcmp(sz,S.sz) ? true : false; } in operator ==()
191 Simstr::operator!=(const Simstr & S) const in operator !=()
192 { return strcmp(sz,S.sz) ? true : false; } in operator !=()
195 Simstr::operator<(const Simstr & S) const in operator <()
196 { return (strcmp(sz,S.sz) < 0) ? true : false; } in operator <()
199 Simstr::operator>(const Simstr & S) const in operator >()
200 { return (strcmp(sz,S.sz) > 0) ? true : false; } in operator >()
203 Simstr::operator<=(const Simstr & S) const in operator <=()
204 { return (strcmp(sz,S.sz) <= 0) ? true : false; } in operator <=()
207 Simstr::operator>=(const Simstr & S) const in operator >=()
208 { return (strcmp(sz,S.sz) >= 0) ? true : false; } in operator >=()
334 Simstr::insert(int pos, const Simstr & S) in insert() argument
339 char * result = new char[len+1+S.len]; in insert()
342 memcpy(result+pos,S.sz,S.len); in insert()
343 memcpy(result+pos+S.len,sz+pos,len-pos+1); in insert()
347 len += S.len; in insert()
351 Simstr::push_front(const Simstr & S) in push_front() argument
353 char * result = new char[len+1+S.len]; in push_front()
355 memcpy(result,S.sz,S.len); in push_front()
356 memcpy(result+S.len,sz,len+1); in push_front()
360 len += S.len; in push_front()
364 Simstr::push_back(const Simstr & S) in push_back() argument
366 char * result = new char[len+1+S.len]; in push_back()
369 memcpy(result+len,S.sz,S.len+1); in push_back()
373 len += S.len; in push_back()
468 Simstr::remove_all(const Simstr & S) in remove_all() argument
471 while ( (pos=pos_first(S)) != NO_POS ) in remove_all()
472 remove(pos,S.len); in remove_all()
608 Simstr::pos_first(const Simstr & S) const in pos_first()
610 char * ptr = strstr(sz,S.sz); in pos_first()
618 Simstr::pos_last(const Simstr & S) const in pos_last()
622 for (i = len-S.len; i >= 0 ; i--) in pos_last()
624 vgl = get(i,S.len); in pos_last()
625 if (vgl == S) in pos_last()
669 Simstr::replace(int startPos, int anzahl, const Simstr & S) in replace() argument
676 char * result = new char[len-anz+S.len+1]; in replace()
679 memcpy(result+startPos, S.sz, S.len); in replace()
680 memcpy(result+startPos+S.len, sz+startPos+anz, len-startPos-anz+1); in replace()
684 len = len-anz+S.len; in replace()
724 operator+(const char * str, const Simstr & S) in operator +() argument
726 Simstr ret = S; in operator +()
732 operator+(const Simstr & S, const char * str) in operator +() argument
734 Simstr ret = S; in operator +()
740 operator+(char c, const Simstr & S) in operator +() argument
742 Simstr ret = S; in operator +()
748 operator+(const Simstr & S, char c) in operator +() argument
750 Simstr ret = S; in operator +()
758 operator==(const Simstr & S, const char * str) in operator ==() argument
760 return strcmp(S,str) == 0; in operator ==()
764 operator!=(const Simstr & S, const char * str) in operator !=() argument
766 return strcmp(S,str) != 0; in operator !=()
770 operator<(const Simstr & S, const char * str) in operator <() argument
772 return strcmp(S,str) < 0; in operator <()
776 operator>(const Simstr & S, const char * str) in operator >() argument
778 return strcmp(S,str) > 0; in operator >()
782 operator<=(const Simstr & S, const char * str) in operator <=() argument
784 return strcmp(S,str) <= 0; in operator <=()
788 operator>=(const Simstr & S, const char * str) in operator >=() argument
790 return strcmp(S,str) >= 0; in operator >=()
794 operator==(const char * str, const Simstr & S) in operator ==() argument
796 return strcmp(str,S) == 0; in operator ==()
800 operator!=(const char * str, const Simstr & S) in operator !=() argument
802 return strcmp(str,S) != 0; in operator !=()
806 operator<(const char * str, const Simstr & S) in operator <() argument
808 return strcmp(str,S) < 0; in operator <()
812 operator>(const char * str, const Simstr & S) in operator >() argument
814 return strcmp(str,S) > 0; in operator >()
818 operator<=(const char * str, const Simstr & S) in operator <=() argument
820 return strcmp(str,S) <= 0; in operator <=()
824 operator>=(const char * str, const Simstr & S) in operator >=() argument
826 return strcmp(str,S) >= 0; in operator >=()