Function CSPString::Find()

Description:
Finds a substring in the string, starting the search from a specific position.

Prototype:
unsigned long Find(const CSPString& strSubString, unsigned long ulStartPos = 0) const;

Arguments:
  • const CSPString& strSubString [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:
CSPString strText = "Hello world!";
int x = strText( "world" );

See also:
member function Replace
CSPString | Basic classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd