Indicates whether a specified character in a string matches one of a set of delimiters.
function IsDelimiter(const Delimiters: string; const S: string; Index: Integer): Boolean;
Boolean IsDelimiter(const AnsiString Delimiters, const AnsiString S, int Index);
SysUtils
Call IsDelimiter to determine whether the character at byte offset Index in the string S is one of the delimiters in the string Delimiters. Index is the index of the byte in question, where 1 is the first byte of the string, 2 is the second byte, and so on.
When working with a multi-byte character system (MBCS), IsDelimiter checks to make sure the indicated byte is not part of a double byte character. The delimiters in the Delimiters parameter must all be single byte characters.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|