search API (or start typing anywhere)
Unifill
mint.core.unifill.Unifill
Unifill provides Unicode-code-point-wise methods on Strings. It is ideally used with ‘using Unifill’ and then acts as an extension to the String class.
class
Methods
uCharAtinlinestatic
uCharAt(s:String, index:Int) : String
Returns the character at position
index
by code points of String s
.
uCharCodeAtinlinestatic
uCharCodeAt(s:String, index:Int) : Int
Returns the code point as Int at position
index
by code points of String s
.
uCodePointAtinlinestatic
uCodePointAt(s:String, index:Int) : mint.core.unifill.CodePoint
Returns the code point at position
index
by code points of String s
.
uComparestatic
uCompare(a:String, b:String) : Int
Compares String
a
and b
.
uIndexOfinlinestatic
uIndexOf(s:String, value:String, startIndex:Int) : Int
Returns the position of the leftmost occurence of the str within String
s
.
`startIndex` is counted by code points.</span>
uIteratorinlinestatic
uIterator(s:String) : mint.core.unifill.CodePointIter
Returns an iterator of the code points of String
s
.
uLastIndexOfinlinestatic
uLastIndexOf(s:String, value:String, startIndex:Int) : Int
Returns the position of the rightmost occurence of the str within String
s
.
`startIndex` is counted by code points.</span>
uLengthinlinestatic
uLength(s:String) : Int
Returns the number of Unicode code points of String
s
.
uSplitinlinestatic
uSplit(s:String, delimiter:String) : Array<String>
Splits String
s
at each occurence of delimiter
.
uSubstrinlinestatic
uSubstr(s:String, startIndex:Int, length:Int) : String
Returns
length
characters of String s
, starting at position startIndex
.
`startIndex` and `length` are counted by code points.</span>
uSubstringinlinestatic
uSubstring(s:String, startIndex:Int, endIndex:Int) : String
Returns the part of String
s
from startIndex
to endIndex
.
`startIndex` and `endIndex` are counted by code points.</span>
uToStringinlinestatic
uToString(codePoints:Iterable<mint.core.unifill.CodePoint>) : String
Converts
codePoints
to string.