1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
13 GLYPH_VERTICAL_DOTTED
,
14 GLYPH_HORIZONTAL_DOTTED
,
16 GLYPH_TRIANGULAR_BULLET
,
19 GLYPH_MULTIPLICATION_SIGN
,
36 GLYPH_ECSTATIC_SMILEY
= _GLYPH_FIRST_EMOJI
,
38 GLYPH_SLIGHTLY_HAPPY_SMILEY
,
40 GLYPH_SLIGHTLY_UNHAPPY_SMILEY
,
42 GLYPH_DEPRESSED_SMILEY
,
60 _GLYPH_INVALID
= -EINVAL
,
63 bool emoji_enabled(void);
65 const char* glyph_full(Glyph code
, bool force_utf
) _const_
;
67 static inline const char* glyph(Glyph code
) {
68 return glyph_full(code
, false);
71 static inline const char* optional_glyph(Glyph code
) {
72 return emoji_enabled() ? glyph(code
) : "";
75 static inline const char* glyph_check_mark(bool b
) {
76 return b
? glyph(GLYPH_CHECK_MARK
) : glyph(GLYPH_CROSS_MARK
);
79 static inline const char* glyph_check_mark_space(bool b
) {
80 return b
? glyph(GLYPH_CHECK_MARK
) : " ";