Bosatsu/Char

Index

Values

char_List_to_Int_List

def char_List_to_Int_List(chars: List[Char]) -> List[Int]

char_to_Int

def char_to_Int(c: Char) -> Int

eq_ignore_ascii_case

def eq_ignore_ascii_case(left: Char, right: Char) -> Bool

from_digit

Supported radix range is 2..36 inclusive.

def from_digit(digit: Int, radix: Int) -> Option[Char]

int_List_to_Char_List

def int_List_to_Char_List(code_points: List[Int]) -> Option[List[Char]]

int_List_to_String

def int_List_to_String(code_points: List[Int]) -> Option[String]

int_to_Char

def int_to_Char(code_point: Int) -> Option[Char]

is_ascii

def is_ascii(c: Char) -> Bool

is_ascii_alnum

def is_ascii_alnum(c: Char) -> Bool

is_ascii_alpha

def is_ascii_alpha(c: Char) -> Bool

is_ascii_control

def is_ascii_control(c: Char) -> Bool

is_ascii_digit

def is_ascii_digit(c: Char) -> Bool

is_ascii_hex

def is_ascii_hex(c: Char) -> Bool

is_ascii_lower

def is_ascii_lower(c: Char) -> Bool

is_ascii_punctuation

def is_ascii_punctuation(c: Char) -> Bool

is_ascii_upper

def is_ascii_upper(c: Char) -> Bool

is_ascii_whitespace

def is_ascii_whitespace(c: Char) -> Bool

is_digit

def is_digit(c: Char) -> Bool

is_hex

def is_hex(c: Char) -> Bool

is_scalar_value

Unicode scalar value = [0, 0x10FFFF] excluding UTF-16 surrogate code points.

def is_scalar_value(code_point: Int) -> Bool

last_String

def last_String(s: String) -> Option[Char]

string_to_Char

def string_to_Char(s: String) -> Option[Char]

string_to_Char_List

def string_to_Char_List(s: String) -> List[Char]

string_to_Int_List

def string_to_Int_List(s: String) -> List[Int]

to_ascii_lower_case

def to_ascii_lower_case(c: Char) -> Char

to_ascii_upper_case

def to_ascii_upper_case(c: Char) -> Char

to_digit

Supported radix range is 2..36 inclusive.

def to_digit(c: Char, radix: Int) -> Option[Int]

utf8_len

def utf8_len(c: Char) -> Int
The source code for this page can be found here.