Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::wstrsep ( const P6WCHAR **  ppszSearchIn,
const P6WCHAR pszDelimiters,
P6BWCSTR pbcsToken 
)
pure virtual

Extracts a the first token from a wide string, where the tokens are delimited by the characters in pszDelimiters.

This method is an improvement over the traditional strtok() because it is reentrant, and over the traditional strsep() because is does not modify the string being tokenized.

Parameters
ppszSearchIn[in,out] The address of a variable that on entry contains a pointer to the NULL termimated string to be searched. On exit, the pointer will be modified to point at the next character in the string to be searched or NULL.
pszDelimiters[ in ] A pointer to a NULL terminated string containing the character delimiters to be used to determine token boundaries.
pbcsToken[ out ] The address of a P6BCSTR structure which on success will be populated with the tokens information. You MUST not assume that pbcsToken->pString will point into *ppszSearchIn. As a result, you MUST not use the pointer value returned in any pointer arithmatic.
Returns
SuccessP6R::eOkThe next token was found
FailureP6R::eInvalidArgppszSearchIn, pszDelimiters, *pszDelimiters or pbcsToken was NULL
P6R::eEndOfRecordThere are no more characters in *ppszSearchIn to search.