[Overview][Resource strings][Constants][Types][Procedures and functions][Index] |
Returns all characters in a string till the first space character (not included).
Source position: strutils.pp line 169
function Copy2Space( |
const S: string |
):string; |
S |
|
String to return first characters from. |
Characters from S till the first space.
Copy2Space determines the position of the first space in the string S and returns all characters up to this position. The space character itself is not included in the result string. The string S is left untouched. If there is no space in S, then the whole string S is returned.
This function simply calls Copy2Symb with the space (ASCII code 32) as the symbol argument.
None.
|
Returns all characters in a string till a given character (not included). |
|
|
Deletes and returns all characters in a string till the first space character (not included). |