Useful API Functions: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 25.x)
Zur Navigation springen Zur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
Zeile 6: Zeile 6:


===== copyFrom:to: =====
===== copyFrom:to: =====

Synopsis:
''aString'' <code>copyFrom:''startIndex'' to:''endIndex''
''aString'' <code>copyFrom:''startIndex'' to:''endIndex''



Version vom 27. Juli 2019, 14:18 Uhr

String

Copying

Notice: except when written otherwise, all indices are 1-based. Valid indices range from 1 to the string's size.

copyFrom:to:
aString copyFrom:startIndex to:endIndex

Example:

 'hello world' copyFrom:1 to:5. 
 => 'hello'
copyFrom:

Synopsis:

aString copyFrom:startIndex'

Example:

 'hello world' copyFrom:6. 
 => ' world'



Copyright © 2014-2024 eXept Software AG