RAD Studio VCL Reference
SysUtils.IsDelimiter Function

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; overload;
Boolean IsDelimiter(const AnsiString Delimiters, const AnsiString S, int Index);

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!