* 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. */
| 109 | * the text direction. |
| 110 | */ |
| 111 | inline 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 | |
| 128 | inline bool IsPrintable(char32_t c) |
| 129 | { |
no outgoing calls
no test coverage detected