MCPcopy Create free account
hub / github.com/davisking/dlib / is_combining_char

Function is_combining_char

dlib/unicode/unicode.h:221–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220 template <typename T>
221 bool is_combining_char(
222 const T ch_
223 )
224 {
225 const unichar ch = zero_extend_cast<unichar>(ch_);
226 if (ch < 0x300)
227 return false;
228 if (ch < 0x370)
229 return true;
230 if (ch < 0x800) {
231 if (ch < 0x483)
232 return false;
233 if (ch < 0x48A)
234 return true;
235 if (ch < 0x591)
236 return false;
237 if (ch < 0x5D0) {
238 if (ch == 0x5C0)
239 return false;
240 if (ch == 0x5C3)
241 return false;
242 if (ch == 0x5C6)
243 return false;
244 return true;
245 }
246 if (ch < 0x610)
247 return false;
248 if (ch < 0x616)
249 return true;
250 if (ch < 0x64B)
251 return false;
252 if (ch < 0x660)
253 return true;
254 if (ch == 0x670)
255 return true;
256 if (ch < 0x6D6)
257 return false;
258 if (ch < 0x6EE) {
259 if (ch == 0x6DD)
260 return false;
261 if (ch == 0x6E5)
262 return false;
263 if (ch == 0x6E6)
264 return false;
265 if (ch == 0x6E9)
266 return false;
267 return true;
268 }
269 if (ch == 0x711)
270 return true;
271 if (ch < 0x730)
272 return false;
273 if (ch < 0x74B)
274 return true;
275 if (ch < 0x7A6)
276 return false;
277 if (ch < 0x7B1)
278 return true;

Callers 6

compute_string_dimsFunction · 0.85
draw_stringFunction · 0.85
compute_sizeMethod · 0.85
draw_stringMethod · 0.85
compute_cursor_rectMethod · 0.85
compute_cursor_posMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected