Error handling when faced invalid Unicode value is not integrated on each classes and functions (some use replacement character, some use std.invalid_argument).
We introduce the following two exception classes represent invalid Unicode value:
InvalidCodePointException -- The code point is not in U+0000..U+10FFFF (can't expressed by UTF-8 and ITF-16)
InvalidScalarValueException -- The code point is in U+0000..U+10FFFF but single surrogate (can't expressed by UTF-16)
We add these classes into ascension.text namespace and change existing stuffs to use them.
Error handling when faced invalid Unicode value is not integrated on each classes and functions (some use replacement character, some use std.invalid_argument).
We introduce the following two exception classes represent invalid Unicode value:
We add these classes into ascension.text namespace and change existing stuffs to use them.