[Overview][Constants][Types][Procedures and functions] | Reference for unit 'strutils' (#rtl) |
Deletes and returns all characters in a string till the first space character (not included).
Source position: strutils.pp line 148
function Copy2SpaceDel( |
var S: String |
):String; |
S |
|
String to delete and return first characters from. |
Deleted characters from the string
Copy2SpaceDel 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. All returned characters, including the space, are deleted from the string S, after which it is right-trimmed. If there is no space in S, then the whole string S is returned, and S itself is emptied.
This function simply calls Copy2SymbDel with the space (ASCII code 32) as the symbol argument.
None.
|
Deletes and returns all characters in a string till a given character (not included). |
|
|
Returns all characters in a string till the first space character (not included). |
No notes exist for this page yet.