class

JS::String

Inherits JS::ExpandMethods / JS::Reference / JS::ExpandMethods / Reference / Object

Constructors

from_char_code(*nums : UInt16) : self
from_code_point(*nums : UInt32) : self
new(str : ::String) : self

Instance methods

!=(other : self) : Bool
+(other : self) : Bool
<(other : self) : Bool
<=(other : self) : Bool
==(other : self) : Bool

Returns true if this reference is the same as other. Invokes same?.

>(other : self) : Bool
>=(other : self) : Bool
at(index : Int32) : String
char_at(index : Int32) : String
code_code_at(index : Int32) : UInt16
code_point_at(index : Int32) : UInt32
concat(*str : String) : String
concat(*str : ::String) : String
dup

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.

ends_with(str : String, length : Int32) : Bool
ends_with(str : ::String, length : Int32) : Bool
ends_with(str : String) : Bool
ends_with(str : ::String) : Bool
includes(str : String, position : Int32) : Bool
includes(str : ::String, position : Int32) : Bool
includes(str : String) : Bool
includes(str : ::String) : Bool
index_of(str : String, position : Int32) : Int32
index_of(str : ::String, position : Int32) : Int32
index_of(str : String) : Int32
index_of(str : ::String) : Int32
last_index_of(str : String, position : Int32) : Int32
last_index_of(str : ::String, position : Int32) : Int32
last_index_of(str : String) : Int32
last_index_of(str : ::String) : Int32
length
locale_compare(str : String, locale : String) : Int32
locale_compare(str : ::String, locale : String) : Int32
locale_compare(str : String, locale : ::String) : Int32
locale_compare(str : ::String, locale : ::String) : Int32
locale_compare(str : String) : Int32
locale_compare(str : ::String) : Int32
normalize(form : String) : String
normalize(form : ::String) : String
normalize

js_method localeCompare(str : String, locale : String, options : ???), Int32 js_method match(regexp : Regex) : ??? js_method matchAll(regexp : Regex) : ???

pad_end(length : Int32, pad_string : String) : String
pad_end(length : Int32, pad_string : ::String) : String
pad_end(length : Int32) : String
pad_start(length : Int32, pad_string : String) : String
pad_start(length : Int32, pad_string : ::String) : String
pad_start(length : Int32) : String
to_crystal