Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 1 of 1) sorted by relevance

/fatfs-2.7.6/
Dff.c6353 UINT ct; local
6390 ct = 0;
6391 if ((dc & 0xE0) == 0xC0) { dc &= 0x1F; ct = 1; } /* 2-byte sequence? */
6392 if ((dc & 0xF0) == 0xE0) { dc &= 0x0F; ct = 2; } /* 3-byte sequence? */
6393 if ((dc & 0xF8) == 0xF0) { dc &= 0x07; ct = 3; } /* 4-byte sequence? */
6394 if (ct == 0) continue;
6395 f_read(fp, s, ct, &rc); /* Get trailing bytes */
6396 if (rc != ct) break;
6401 } while (++rc < ct);
6402 if (rc != ct || dc < 0x80 || IsSurrogate(dc) || dc >= 0x110000) continue; /* Wrong encoding? */
[all …]