Function CSPWString::Find()
Description:
Finds a substring in the string, starting the search from a specific position.
 |
Prototype:
unsigned long Find(const CSPWString& wstrSubString, unsigned long ulStartPos = 0) const;
Arguments:
- const CSPWString& wstrSubString [IN]
The substring to find.
- unsigned long ulStartPos = 0 [IN]
The position to start the search from.
Return value:
If the substring is found, it returns its first character's position in the string. If the substring is not found, it returns CSPString::NOT_FOUND.
Examples:
CSPWString wstrText = L"Hello world!"; int x = wstrText( L"world" );
See also:
member function Replace
|
|