Useful API Functions: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) |
Cg (Diskussion | Beiträge) |
||
Zeile 8: | Zeile 8: | ||
'hello world' copyFrom:1 to:5. |
'hello world' copyFrom:1 to:5. |
||
=> 'hello' |
=> 'hello' |
||
Notice: indices are 1-based. Valid indices range from 1 to the string's size. |
Version vom 27. Juli 2019, 14:14 Uhr
String[Bearbeiten]
Copying Substrings[Bearbeiten]
aString copyFrom:startIndex to:endIndex
Example:
'hello world' copyFrom:1 to:5.
=> 'hello'
Notice: indices are 1-based. Valid indices range from 1 to the string's size.