Skip to content

Char

This is essentially a UInt8 that is interpreted as an ASCII character.

graph BT
N1["Char"] -->|inherits| N2["IntegralNumber"];
N1["Char"] -->|extends| N3["ISystemUInt[UInt8]"];
N3["ISystemUInt[UInt8]"] -->|inherits| N2["IntegralNumber"];
N2["IntegralNumber"] -->|inherits| N4["Number"];
N4["Number"] -->|inherits| N5["Stringable"];
N5["Stringable"] -->|inherits| N6["Any"];
N2["IntegralNumber"] -->|inherits| N4["Number"];
N4["Number"] -->|inherits| N5["Stringable"];
N5["Stringable"] -->|inherits| N6["Any"];

Characteristics

Quality Value
Inherits IntegralNumber
Extends ISystemUInt[UInt8]
Decorators N/A
Is enum false
Is sealed false
Is extern false
Is abstract false
Is generator false
Has value semantics true
Has stored properties true
Should register destructor false
Has atomic memory true
Is copy assignable true
Is zero initializable true

Methods

construct

#default
#Gambol.function.alwaysinline
construct (s @Self) -> Self

is_lower

#Gambol.function.alwaysimplement
#Gambol.function.nounwind
is_lower (s @Self) -> Bool
true if is lower case, false otherwise


lower

#Gambol.function.nounwind
lower (s @Self) -> SelfType
returns the lower case version of this char or the char itself if not applicable


is_upper

#Gambol.function.alwaysimplement
#Gambol.function.nounwind
is_upper (s @Self) -> Bool
true if is upper case, false otherwise


upper

#Gambol.function.nounwind
upper (s @Self) -> SelfType
returns the upper case version of this char or the char itself if not applicable


swapcase

#Gambol.function.nounwind
swapcase (s @Self) -> SelfType
returns the opposite case version of this char or the char itself if not applicable


is_digit

#Gambol.function.alwaysimplement
#Gambol.function.nounwind
is_digit (s @Self) -> Bool
true if is a digit, false otherwise


is_alpha

#Gambol.function.nounwind
is_alpha (s @Self) -> Bool
true if is alphabetical, false otherwise


is_alphanum

#Gambol.function.nounwind
is_alphanum (s @Self) -> Bool
true if is alphanumeric, false otherwise


is_punctuation

#Gambol.function.alwaysimplement
#Gambol.function.nounwind
is_punctuation (s @Self) -> Bool
true if is punctuation, false otherwise


is_space

#Gambol.function.alwaysimplement
#Gambol.function.nounwind
is_space (s @Self) -> Bool
true if is white space, false otherwise


is_null

#Gambol.function.alwaysimplement
#Gambol.function.nounwind
is_null (s @Self) -> Bool
true if is null, false otherwise


is_printable

#Gambol.function.nounwind
is_printable (s @Self) -> Bool
true if is a printable character, false otherwise


is_extended_ascii

#Gambol.function.nounwind
is_extended_ascii (s @Self) -> Bool
true if is an extended ASCII character, false otherwise


ord

#Gambol.function.alwaysimplement
#Gambol.function.nounwind
ord (s @Self) -> UInt8
returns the ASCII value of this character


str

str (s @Self) -> String