Skip to content
x768 edited this page Jan 20, 2018 · 1 revision

Description

Represents an UTF-8 string.

Inherits

lang.Sequence

Ability

Constructors

this()

Constructs default value "".

this(obj)

Converts obj to Str.

Methods and Properties

size:Int

Returns string length in Unicode codepoint.

op_mul(n:Int):Str

Repeats string.

puts "abc" * 3 // abcabcabc

op_index(n:Int):Char

Returns a character at specified index.

puts "abcde"[2]  // b
Clone this wiki locally