int __stdcall NDK_TOKENIZE | ( | LPCSTR | szTxt, |
LPCSTR | szDelim, | ||
short | nOrder, | ||
LPSTR | pRetVal, | ||
size_t | nSize | ||
) |
Returns the n-th token/substring in a string after splitting it using a given delimiter.
- Returns
- status code of the operation
- Return values
-
NDK_SUCCESS Operation successful NDK_FAILED Operation unsuccessful. See Macros for full list.
- Remarks
-
- The delimiter may contain any number of characters, but only the first one is used.
- The NxTokenize function trims the leading and trailing white spaces from the input string.
- If the input string does not contain the delimiter chracter, NxTokenize returns a #VALUE! error.
- If the order value is greater than the number of tokens in the string, NxTokenize returns a #VALUE! error.
- Parameters
-
[in] szTxt is the input string to match for. [in] szDelim is the character to use for splitting the string. If missing, comma (,) is used. [in] nOrder is the order of the token to return, where first = 1, second = 2,..., and last = -1. If missing, the first token is returned [out] pRetVal is the n-th token/substring in a string [in] nSize is the number of characters in pRetVal buffer - Requirements
-
Header SFSDK.H Library SFSDK.LIB DLL SFSDK.DLL