Class: Toybox.Lang.Char

Inherits:
Toybox.Lang.Object show all

Overview

Chars are Unicode characters.

Since:

API Level 1.3.0

Instance Method Summary collapse

Instance Method Details

compareTo(other as Lang.Object) as Lang.Number

Compare the unicode code point self to some other numeric value.

Parameters:

  • other(Lang.Object)

    The right hand side of a comparison.

Returns:

  • Lang.Number

    A negative value if self is less than other, zero if the objects are equivalent, and a positive value if self is greater than other.

Since:

API Level 5.0.0

Throws:

toLower() as Lang.Char

Convert a Char to lowercase.

Returns:

Since:

API Level 1.3.0

toNumber() as Lang.Number

Convert a Char to a Number.

Returns:

  • Lang.Number

    The UTF-32 representation of the Char interpreted as a Number

Since:

API Level 1.3.0

toString() as Lang.String

Convert a Char to a String.

Returns:

  • Lang.String

    The String representation of the Char

Since:

API Level 1.3.0

toUpper() as Lang.Char

Convert a Char to uppercase.

Returns:

Since:

API Level 1.3.0


Generated Dec 11, 2024, 8:58:43 AM