dius 0.1.0
Loading...
Searching...
No Matches
width.h
Go to the documentation of this file.
1#pragma once
2
3#include "di/container/string/string_view.h"
4#include "di/vocab/optional/prelude.h"
5
6namespace dius::unicode {
14auto code_point_width(c32 code_point) -> di::Optional<u8>;
15
25auto grapheme_cluster_width(di::StringView grapheme_cluster) -> u8;
26
33auto text_width(di::StringView string) -> usize;
34}
Definition default_ignorable_code_point.h:8
auto grapheme_cluster_width(di::StringView grapheme_cluster) -> u8
Return the print width of an individual grapheme.
auto text_width(di::StringView string) -> usize
Return the print width of a string.
auto code_point_width(c32 code_point) -> di::Optional< u8 >
Return the print width a code point.