Class Library Cross Reference: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Class Library API SUmmary == === String === {| class="wikitable" |+Function Cross Reference |- |Smalltalk |Java |Python | |- |at: |charAt() | |- |, (comma…“) |
Cg (Diskussion | Beiträge) |
||
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
This page lists some commonly used message names (aka. functions) and maps name differences. |
|||
== Class Library API SUmmary == |
|||
(it is incomplete and updated from time to time) |
|||
=== Math === |
|||
{| class="wikitable" |
|||
|+Function Cross Reference |
|||
|- |
|||
|'''Smalltalk''' |
|||
|'''JavaScript (builtin)''' |
|||
|'''JavaScript (NodeJS)''' |
|||
|'''Java''' |
|||
|'''Python''' |
|||
|- |
|||
| nr sin |
|||
| Math.sin(nr)<br>or:<br>nr.sin() |
|||
| Math.sin(nr) |
|||
| java.lang.Math.sin(nr) |
|||
| math.sin(nr) |
|||
|} |
|||
=== String === |
=== String === |
||
Zeile 6: | Zeile 26: | ||
|+Function Cross Reference |
|+Function Cross Reference |
||
|- |
|- |
||
|Smalltalk |
|'''Smalltalk''' |
||
|'''JavaScript (builtin)''' |
|||
|Java |
|||
|'''JavaScript (NodeJS)''' |
|||
|Python |
|||
|'''Java''' |
|||
|'''Python''' |
|||
|- |
|||
| at: |
|||
| [] |
|||
| [] |
|||
| charAt() |
|||
| [] |
|||
|- |
|||
| , (comma) |
|||
| + |
|||
| + |
|||
| concat() |
|||
| + |
|||
|- |
|||
| = |
|||
| == |
|||
| == |
|||
| equals() |
|||
| |
|||
|- |
|||
| sameAs: |
|||
| |
|||
| |
|||
| equalsIgnoringCase() |
|||
| |
|||
|- |
|||
| size |
|||
| |
|||
| |
|||
| length() |
|||
| |
| |
||
|- |
|- |
||
| indexOf: |
|||
|at: |
|||
| |
|||
|charAt() |
|||
| |
|||
| indexOf() |
|||
| |
| |
||
|- |
|- |
||
| isEmpty |
|||
|, (comma) |
|||
| |
|||
|cpncat() |
|||
| |
| |
||
| isEmpty() |
|||
| |
|||
|- |
|||
|lastIndexOf: |
|||
| |
|||
| |
|||
|lastIndexOf() |
|||
| |
|||
|- |
|||
|matchesRegex: |
|||
| |
|||
| |
|||
|matches() |
|||
| |
|||
|- |
|||
|copyReplace:with: |
|||
| |
|||
| |
|||
|replace() |
|||
| |
|||
|- |
|||
|splitBy: |
|||
| |
|||
| |
|||
|split() |
|||
| |
|||
|- |
|||
|startsWith: |
|||
| |
|||
| |
|||
|startsWith() |
|||
|startswith() |
|||
|- |
|||
|endsWith: |
|||
| |
|||
| |
|||
|endsWith() |
|||
|endswith() |
|||
|- |
|||
|copyFrom:to: |
|||
| |
|||
| |
|||
|subString() |
|||
| |
|||
|- |
|||
|asLowercase |
|||
| |
|||
| |
|||
|toLowerCase |
|||
| |
|||
|- |
|||
|asUppercase |
|||
| |
|||
| |
|||
|toUppercase |
|||
|capitalize() |
|||
|- |
|||
|withoutSeparators |
|||
| |
|||
| |
|||
|trim() |
|||
| |
|||
|- |
|||
|hash |
|||
| |
|||
| |
|||
|hashCode() |
|||
| |
|||
|} |
|} |
Aktuelle Version vom 22. Dezember 2020, 12:29 Uhr
This page lists some commonly used message names (aka. functions) and maps name differences. (it is incomplete and updated from time to time)
Math[Bearbeiten]
Smalltalk | JavaScript (builtin) | JavaScript (NodeJS) | Java | Python |
nr sin | Math.sin(nr) or: nr.sin() |
Math.sin(nr) | java.lang.Math.sin(nr) | math.sin(nr) |
String[Bearbeiten]
Smalltalk | JavaScript (builtin) | JavaScript (NodeJS) | Java | Python |
at: | [] | [] | charAt() | [] |
, (comma) | + | + | concat() | + |
= | == | == | equals() | |
sameAs: | equalsIgnoringCase() | |||
size | length() | |||
indexOf: | indexOf() | |||
isEmpty | isEmpty() | |||
lastIndexOf: | lastIndexOf() | |||
matchesRegex: | matches() | |||
copyReplace:with: | replace() | |||
splitBy: | split() | |||
startsWith: | startsWith() | startswith() | ||
endsWith: | endsWith() | endswith() | ||
copyFrom:to: | subString() | |||
asLowercase | toLowerCase | |||
asUppercase | toUppercase | capitalize() | ||
withoutSeparators | trim() | |||
hash | hashCode() |