Update source to v6.11.18282.01000

This commit is contained in:
Will Pearson
2018-10-10 22:43:34 +01:00
parent 08ba072313
commit 80b0545f2b
93 changed files with 8784 additions and 2972 deletions

View File

@@ -200,6 +200,27 @@ static int ON_IsUTF8ByteOrderMark(
return (0xEF == (unsigned char)(sUTF8[0]) && 0xBB == (unsigned char)(sUTF8[1]) && 0xBF == (unsigned char)(sUTF8[2]));
}
bool ON_IsUnicodeControlCodePoint(
ON__UINT32 code_point,
bool bNullReturnValue
)
{
if (0 == code_point)
return bNullReturnValue ? true : false;
if (code_point < 0x0020)
return true; // below space
if (code_point < 0x007f)
return false;
if (code_point <= 0x00A0)
return true; // del to 0xA0
if (code_point < 0x00AD)
return false;
if (code_point == 0x00AD)
return true; // soft hyphen
return false;
}
int ON_EncodeUTF8( ON__UINT32 u, char sUTF8[6] )
{
ON__UINT32 c;