TPtrC str = _L("Hello, World!"); TInt index = str.Find('W');
TPtrC str = _L("The quick brown fox jumps over the lazy dog."); TInt index = str.Find(_L("brown fox"));This code creates a TPtrC object containing the string "The quick brown fox jumps over the lazy dog." and uses the Find function to search for the substring "brown fox". The function returns the index of the first character of the substring in the string, which in this case is 10. Package Library: Symbian C++ Library