[Overview][Resource strings][Constants][Types][Procedures and functions][Index] |
Deletes and returns all characters in a string till a given character (not included).
Source position: strutils.pp line 194
function Copy2SymbDel( |
var S: string; |
Symb: Char |
):string; |
S |
|
String to delete and return first characters from. |
Symb |
|
Symbol till which characters will be copied. Will not be included in the result. |
Characters from the string till the first occurrence of the given character.
Copy2SymbDel determines the position of the first occurrence of Symb in the string S and returns all characters up to this position. The Symb character itself is not included in the result string. All returned characters and the Symb character, are deleted from the string S, after which it is right-trimmed. If Symb does not appear in S, then the whole of S is returned, and S itself is emptied.
None.
|
Deletes and returns all characters in a string till the first space character (not included). |
|
|
Returns all characters in a string till a given character (not included). |