Updated the Remstar ODBC files, got the db sample compiling; added Freq and SubString
to wxString git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1075,6 +1075,19 @@ bool wxString::Matches(const char *pszMask) const
|
||||
return *pszTxt == '\0';
|
||||
}
|
||||
|
||||
// Count the number of chars
|
||||
int wxString::Freq(char ch) const
|
||||
{
|
||||
int count = 0;
|
||||
int len = Len();
|
||||
for (int i = 0; i < len; i++)
|
||||
{
|
||||
if (GetChar(i) == ch)
|
||||
count ++;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// standard C++ library string functions
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user