Expand description
Base conversion
Structs§
Functions§
- _format_
base_ string - _parse_
base_ 🔒string - Converts all characters that match the requested base into the target base. It will leave other characters alone, so you can convert a list of numbers. It allows hex input numbers like 0x1A.
- base_
to_ base_ string - Parse a string contaning numbers in base 2 through 36, convert it to the target base, and print it formatted. Will warn for extra characters other than spaces and commas.
- casefold_
base_ chars_ in_ string - char_
from_ hex_ byte - Convert two hex digits to a single byte -> char (StageL: charFromHexByte) StageL operated on bytes, not Unicode scalar validation beyond 0xFF.
- dec_
to_ hex_ single - dec_
to_ hex_ string - format_
base_ string - Parse a string contaning numbers in base 2 through 36, and print it formatted. Will warn for extra characters other than spaces and commas.
- get_
digits_ needed - hex_
to_ dec_ single - hex_
to_ dec_ string - int_
from_ base36_ char - Returns an int given the nth digit in base 36 or less (using capitalized digits).
- int_
from_ base_ str_ big - Returns the integer represented by n in the requested base.
- int_
from_ base_ str_ u32 - Returns the integer represented by n in the requested base.
- int_
from_ base_ str_ u128 - Returns the integer represented by n in the requested base.
- int_
to_ base36_ char - Returns the nth digit in base 36 or less (using capitalized digits). The original JS version had a bug where it would accept 36 as a base, when 0 to 35 is expected (36 digits).
- int_
to_ base_ str - Returns the integer represented by n in the requested base.
- is_
base_ digit - is_
base_ str - is_
supported_ base