dius 0.1.0
Loading...
Searching...
No Matches
dius::unicode::GraphemeClusterer Class Reference

#include <generic/dius/unicode/grapheme_cluster.h>

Public Member Functions

auto is_boundary (c32 code_point) -> bool
 Determine if there is a grapheme boundary between the previous character.
 

Member Function Documentation

◆ is_boundary()

auto dius::unicode::GraphemeClusterer::is_boundary ( c32 code_point) -> bool

Determine if there is a grapheme boundary between the previous character.

Parameters
code_pointThe next code point in the Unicode string
Returns
true if there is a grapheme boundary between the previous character and code_point

This includes the first time the cluster is called, as there is always a break between the start of text and end of text "virtual" tokens.


The documentation for this class was generated from the following file: