6#include "TTauri/Text/Grapheme.hpp"
7#include "TTauri/Foundation/strings.hpp"
15 using const_iterator = std::vector<Grapheme>::const_iterator;
19 return ssize(graphemes);
23 return graphemes.
at(i);
27 return graphemes.
at(i);
30 decltype(
auto) begin()
noexcept {
return graphemes.
begin(); }
31 decltype(
auto) begin()
const noexcept {
return graphemes.
begin(); }
32 decltype(
auto) cbegin()
const noexcept {
return graphemes.
cbegin(); }
33 decltype(
auto) end()
noexcept {
return graphemes.
end(); }
34 decltype(
auto) end()
const noexcept {
return graphemes.
end(); }
35 decltype(
auto) cend()
const noexcept {
return graphemes.
cend(); }
37 decltype(
auto) front()
noexcept {
return graphemes.
front(); }
38 decltype(
auto) front()
const noexcept {
return graphemes.
front(); }
39 decltype(
auto) back()
noexcept {
return graphemes.
back(); }
40 decltype(
auto) back()
const noexcept {
return graphemes.
back(); }
43 for (ttlet &rhs_grapheme: rhs.graphemes) {
57 for (ttlet &c : rhs) {
64 return tt::to_string(to_u32string(rhs));
69 return lhs << to_string(rhs);
73[[nodiscard]]
gstring to_gstring(std::u32string_view rhs)
noexcept;
75[[nodiscard]]
inline gstring to_gstring(std::string_view rhs)
noexcept {
76 return to_gstring(tt::to_u32string(rhs));
Definition Grapheme.hpp:20
Definition gstring.hpp:12