Home
last modified time | relevance | path

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

/fatfs-2.7.6/
Dff.c802 DWORD chr, /* UTF-16 encoded character (Surrogate pair if >=0x10000) */ in put_utf() argument
810 hs = (WCHAR)(chr >> 16); in put_utf()
811 wc = (WCHAR)chr; in put_utf()
825 if (chr < 0x80) { /* Single byte code? */ in put_utf()
827 *buf = (TCHAR)chr; in put_utf()
830 if (chr < 0x800) { /* 2-byte sequence? */ in put_utf()
832 *buf++ = (TCHAR)(0xC0 | (chr >> 6 & 0x1F)); in put_utf()
833 *buf++ = (TCHAR)(0x80 | (chr >> 0 & 0x3F)); in put_utf()
836 if (chr < 0x10000) { /* 3-byte sequence? */ in put_utf()
837 if (szb < 3 || IsSurrogate(chr)) return 0; /* Buffer overflow or wrong code? */ in put_utf()
[all …]