type_mel/char.rs
1use melodium_core::*;
2use melodium_macro::mel_function;
3
4/// Return the replacement character.
5///
6/// `U+FFFD REPLACEMENT CHARACTER` (�) is used in Unicode to represent a decoding error.
7#[mel_function]
8pub fn replacement_character() -> char {
9 char::REPLACEMENT_CHARACTER
10}
11
12/// Return the highest code point `char` can contains.
13///
14/// The highest code point is `U+10FFFF`.
15#[mel_function]
16pub fn max() -> char {
17 char::MAX
18}