Description
function block(string calldata _char) public pure returns (CharacterBlock) { }
Given a character, or code point, tell me what Unicode character block it is a part of. The simplest implementation is large, hardoced if/else if/else statement on the Unicode code point ranges.
We can use an enum to represent each block.
Description
Given a character, or code point, tell me what Unicode character block it is a part of. The simplest implementation is large, hardoced if/else if/else statement on the Unicode code point ranges.
We can use an enum to represent each block.