A character width.
More...
#include <character_width.hpp>
◆ class_type
A class.
Enumerator |
---|
ambiguous | Ambiguous.
|
fullwidth | Fullwidth.
|
halfwidth | Halfwidth.
|
narrow | Narrow.
|
wide | Wide.
|
neutral | Neutral.
|
◆ emoji_type
An emoji.
Enumerator |
---|
emoji | Emoji character.
|
normal | Normal charactger.
|
◆ width_of()
std::size_t tetengo::text::grapheme_splitting::character_width::width_of |
( |
class_type | class_, |
|
|
emoji_type | emoji ) const |
|
nodiscard |
Returns the width.
- Parameters
-
class_ | A class. |
emoji | An emoji. |
- Returns
- The width of the code point.
The documentation for this class was generated from the following file: