Useful API Functions: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) (→String) |
Cg (Diskussion | Beiträge) (→String) |
||
Zeile 1: | Zeile 1: | ||
== String == |
== String == |
||
Reference: [http://live.exept.de/ClassDoc/classDocOf:,String String Class Documentation] |
|||
Reference: |
|||
<br>[http://live.exept.de/ClassDoc/classDocOf:,CharacterArray CharacterArray Class Documentation] (superclass) |
|||
<br>[http://live.exept.de/ClassDoc/classDocOf:,Collection Collection Class Documentation] (superclass) |
|||
=== Copying === |
=== Copying === |
Version vom 27. Juli 2019, 14:27 Uhr
Inhaltsverzeichnis
String[Bearbeiten]
Reference: String Class Documentation
CharacterArray Class Documentation (superclass)
Collection Class Documentation (superclass)
Copying[Bearbeiten]
Notice: except when written otherwise, all indices are 1-based. Valid indices range from 1 to the string's size.
copyFrom:to:[Bearbeiten]
aString copyFrom:startIndex to:endIndex aString.copyFrom_to(startIndex, endIndex) [JS]
Example:
'hello world' copyFrom:1 to:5. => 'hello'
copyFrom:count:[Bearbeiten]
aString copyFrom:startIndex count:numChars aString.copyFrom_count(startIndex, numChars) [JS]
Example:
'hello world' copyFrom:7 count:3. => 'wor'
copyFrom:[Bearbeiten]
aString copyFrom:startIndex' aString.copyFrom(startIndex) [JS]
Example:
'hello world' copyFrom:6. => ' world'
copyTo:[Bearbeiten]
aString copyTo:endIndex aString.copyTo(endIndex) [JS]
Example:
'hello world' copyTo:6. => 'hello '