MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsTextDirectionChar

Function IsTextDirectionChar

src/string_func.h:111–126  ·  view source on GitHub ↗

* Is the given character a text direction character. * @param c The character to test. * @return true iff the character is used to influence * the text direction. */

Source from the content-addressed store, hash-verified

109 * the text direction.
110 */
111inline bool IsTextDirectionChar(char32_t c)
112{
113 switch (c) {
114 case CHAR_TD_LRM:
115 case CHAR_TD_RLM:
116 case CHAR_TD_LRE:
117 case CHAR_TD_RLE:
118 case CHAR_TD_LRO:
119 case CHAR_TD_RLO:
120 case CHAR_TD_PDF:
121 return true;
122
123 default:
124 return false;
125 }
126}
127
128inline bool IsPrintable(char32_t c)
129{

Callers 3

FindMissingGlyphsMethod · 0.85
NextLineMethod · 0.85
GetLayouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected