Methods that should be supported built-in, or which are already supported:
[x] charAt: should already be possible with indexing
[x] chars: add to language as .chars property (if not already)
[x] compareTo: should be available (I'll need to check how)
[x] concat: use + operator
[x] contains: in operator
[x] equals: == operator
[x] length
[x] substring: use range indexing for this
[x] valueOf: already supported with casts
Methods which should be in stdlib:
[x] compareToIgnoreCase
[x] endsWith
[x] equalsIgnoreCase
[x] getBytes (we already have a function in stdlib for this, an ascii and utf-8 variant)
[x] indexOf (all 4 overloads)
[x] isBlank: add to stdlib as getter (.blank)
[x] isEmpty: add to stdlib as getter (.empty)
[ ] join: add to stdlib as expansion on string[]
[x] lastIndexOf (all 4 overloads)
[ ] repeat
[x] replace
[ ] replaceFirst
[ ] split (both with and without limit) (having a variant with just literal strings in stdlib would be nice. but no regexes yet. maybe a regex-supporting variant can be added as Java specific)
[x] startsWith
[ ] strip
[ ] stripLeading
[ ] stripTrailing
[x] toLowerCase
[x] toUpperCase
Methods that should not be in the language or in stdlib, but can still be added to Java integration:
Methods that should be supported built-in, or which are already supported:
charAt
: should already be possible with indexingchars
: add to language as .chars property (if not already)compareTo
: should be available (I'll need to check how)concat
: use + operatorcontains
: in operatorequals
: == operatorlength
substring
: use range indexing for thisvalueOf
: already supported with castsMethods which should be in stdlib:
compareToIgnoreCase
endsWith
equalsIgnoreCase
getBytes
(we already have a function in stdlib for this, an ascii and utf-8 variant)indexOf
(all 4 overloads)isBlank
: add to stdlib as getter (.blank)isEmpty
: add to stdlib as getter (.empty)join
: add to stdlib as expansion on string[]lastIndexOf
(all 4 overloads)repeat
replace
replaceFirst
split
(both with and without limit) (having a variant with just literal strings in stdlib would be nice. but no regexes yet. maybe a regex-supporting variant can be added as Java specific)startsWith
strip
stripLeading
stripTrailing
toLowerCase
toUpperCase
Methods that should not be in the language or in stdlib, but can still be added to Java integration:
Methods that are redundant:
copyValueOf
subSequence
: use substring insteadtoCharArray
trim
(use strip)