Class Library Cross Reference: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Class Library API SUmmary ==

This page lists some commonly used message names (aka. functions) and maps name differences.
This page lists some commonly used message names (aka. functions) and maps name differences.
(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 14: Zeile 32:
|'''Python'''
|'''Python'''
|-
|-
|at:
| at:
|[]
| []
|[]
| []
|charAt()
| charAt()
|
| []
|-
|-
|, (comma)
| , (comma)
|+
| +
|+
| +
|concat()
| concat()
|
| +
|-
|-
|=
| =
|==
| ==
|==
| ==
|equals()
| equals()
|
|-
| sameAs:
|
|
| equalsIgnoringCase()
|
|
|-
|-
| size
|sameAs:
|
|equalsIgnoringCase()
|
| length()
|
|
|-
|-
| indexOf:
|size
|length()
|
|
|-
|
|indexOf:
| indexOf()
|indexOf()
|
|
|-
|-
|isEmpty
| isEmpty
|
|isEmpty()
|
| isEmpty()
|
|
|-
|-
|lastIndexOf:
|lastIndexOf:
|
|
|lastIndexOf()
|lastIndexOf()
|
|
|-
|-
|matchesRegex:
|matchesRegex:
|
|
|matches()
|matches()
|
|
|-
|-
|copyReplace:with:
|copyReplace:with:
|
|
|replace()
|replace()
|
|
|-
|-
|splitBy:
|splitBy:
|
|
|split()
|split()
|
|
|-
|-
|startsWith:
|startsWith:
|
|
|startsWith()
|startsWith()
|startswith()
|startswith()
|-
|-
|endsWith:
|endsWith:
|
|
|endsWith()
|endsWith()
|endswith()
|endswith()
|-
|-
|copyFrom:to:
|copyFrom:to:
|
|
|subString()
|subString()
|
|
|-
|-
|asLowercase
|asLowercase
|
|
|toLowerCase
|toLowerCase
|
|
|-
|-
|asUppercase
|asUppercase
|
|
|toUppercase
|toUppercase
|capitalize()
|capitalize()
|-
|-
|withoutSeparators
|withoutSeparators
|
|
|trim()
|trim()
|
|
|-
|-
|hash
|hash
|
|
|hashCode()
|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]

Function Cross Reference
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]

Function Cross Reference
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()



Copyright © 2014-2024 eXept Software AG