[Overview][Constants][Types][Procedures and functions] |
Extract a word from a string, starting at a given position in the string.
Source position: strutils.pp line 155
function ExtractSubstr( |
const S: String; |
var Pos: Integer; |
const Delims: TSysCharSet |
):String; |
S |
|
String to search in. |
Pos |
|
Initial position to start extracting. On exit returns the position of the next word. |
Delims |
|
Characters to use as word delimiters |
The extracted word.
ExtractSubStrreturns all characters from Sstarting at position Postill the first character in Delims, or till the end of Sis reached. The delimiter character is not included in the result. Posis then updated to point to the next first non-delimiter character in S. If Posis larger than the Length of S, an empty string is returned.
The pre-defined constant StdWordDelimscan be used for the Delimsargument.
None.
|
Extract the N-th delimited part from a string. |
|
|
Extract the N-th word out of a string. |
|
|
Extract a word from a string, and return the position where it was located in the string. |