diff --git a/source/ps/CStr.cpp b/source/ps/CStr.cpp index 0658a5ada1..cddf86dd2a 100644 --- a/source/ps/CStr.cpp +++ b/source/ps/CStr.cpp @@ -264,19 +264,6 @@ double CStr::ToDouble() const return ret; } -// Search the string for another string -long CStr::Find(const int start, const Char chr) const -{ - size_t pos = find(chr, start); - - if (pos != npos) - return static_cast(pos); - - return -1; -} - -long CStr::FindInsensitive(const int start, const Char chr) const { return LowerCase().Find(start, totlower(chr)); } - long CStr::ReverseFind(const CStr& str) const { size_t pos = rfind(str, length() ); diff --git a/source/ps/CStr.h b/source/ps/CStr.h index f912bc2b4c..b08e6ce120 100644 --- a/source/ps/CStr.h +++ b/source/ps/CStr.h @@ -138,28 +138,6 @@ public: **/ double ToDouble() const; - /** - * Search the CStr for another string with starting offset. - * The search is case-sensitive. - * - * @param const int & start character offset into CStr to begin search - * @param const {t|w}char_t & chr reference to the search string - * @return long offset into the CStr of the first occurrence of the search string - * -1 if the search string is not found - **/ - long Find(const int start, const Char chr) const; - - /** - * Search the CStr for another string with starting offset. - * The search is case-insensitive. - * - * @param const int & start character offset into CStr to begin search - * @param const {t|w}char_t & chr reference to the search string - * @return long offset into the CStr of the first occurrence of the search string - * -1 if the search string is not found - **/ - long FindInsensitive(const int start, const Char chr) const; - /** * Search the CStr for another string. * The search is case-sensitive.