8#include "../strings.hpp"
16 using const_iterator = std::vector<grapheme>::const_iterator;
20 return std::ssize(graphemes);
24 return graphemes.
at(i);
28 return graphemes.
at(i);
31 decltype(
auto) begin()
noexcept {
return graphemes.
begin(); }
32 decltype(
auto) begin()
const noexcept {
return graphemes.
begin(); }
33 decltype(
auto) cbegin()
const noexcept {
return graphemes.
cbegin(); }
34 decltype(
auto) end()
noexcept {
return graphemes.
end(); }
35 decltype(
auto) end()
const noexcept {
return graphemes.
end(); }
36 decltype(
auto) cend()
const noexcept {
return graphemes.
cend(); }
38 decltype(
auto) front()
noexcept {
return graphemes.
front(); }
39 decltype(
auto) front()
const noexcept {
return graphemes.
front(); }
40 decltype(
auto) back()
noexcept {
return graphemes.
back(); }
41 decltype(
auto) back()
const noexcept {
return graphemes.
back(); }
44 for (ttlet &rhs_grapheme: rhs.graphemes) {
58 for (ttlet &c : rhs) {
65 return tt::to_string(to_u32string(rhs));
70 return lhs << to_string(rhs);
74[[nodiscard]]
gstring to_gstring(std::u32string_view rhs)
noexcept;
76[[nodiscard]]
inline gstring to_gstring(std::string_view rhs)
noexcept
78 return to_gstring(to_u32string(rhs));
Definition grapheme.hpp:21
Definition gstring.hpp:13