HTML Tidy  5.7.0
The HTACG Tidy HTML Project
utf8.h File Reference

Go to the source code of this file.

Macros

#define UNICODE_BOM   UNICODE_BOM_BE
 
#define UNICODE_BOM_BE   0xFEFF /* big-endian (default) UNICODE BOM */
 
#define UNICODE_BOM_LE   0xFFFE /* little-endian UNICODE BOM */
 
#define UNICODE_BOM_UTF8   0xEFBBBF /* UTF-8 UNICODE BOM */
 

Functions

tchar TY_❪CombineSurrogatePair❫ (tchar high, tchar low)
 
int TY_❪DecodeUTF8BytesToChar❫ (uint *c, uint firstByte, ctmbstr successorBytes, TidyInputSource *inp, int *count)
 
int TY_❪EncodeCharToUTF8Bytes❫ (uint c, tmbstr encodebuf, TidyOutputSink *outp, int *count)
 
uint TY_❪GetUTF8❫ (ctmbstr str, uint *ch)
 
Bool TY_❪IsCombinedChar❫ (tchar ch)
 
Bool TY_❪IsHighSurrogate❫ (tchar ch)
 
Bool TY_❪IsLowSurrogate❫ (tchar ch)
 
Bool TY_❪IsValidCombinedChar❫ (tchar ch)
 
Bool TY_❪IsValidUTF16FromUCS4❫ (tchar ucs4)
 
tmbstr TY_❪PutUTF8❫ (tmbstr buf, uint c)
 
Bool TY_❪SplitSurrogatePair❫ (tchar utf16, tchar *high, tchar *low)
 

Macro Definition Documentation

#define UNICODE_BOM   UNICODE_BOM_BE
#define UNICODE_BOM_BE   0xFEFF /* big-endian (default) UNICODE BOM */
#define UNICODE_BOM_LE   0xFFFE /* little-endian UNICODE BOM */
#define UNICODE_BOM_UTF8   0xEFBBBF /* UTF-8 UNICODE BOM */

Function Documentation

tchar TY_❪CombineSurrogatePair❫ ( tchar  high,
tchar  low 
)
int TY_❪DecodeUTF8BytesToChar❫ ( uint c,
uint  firstByte,
ctmbstr  successorBytes,
TidyInputSource inp,
int *  count 
)
int TY_❪EncodeCharToUTF8Bytes❫ ( uint  c,
tmbstr  encodebuf,
TidyOutputSink outp,
int *  count 
)
uint TY_❪GetUTF8❫ ( ctmbstr  str,
uint ch 
)
Bool TY_❪IsCombinedChar❫ ( tchar  ch)
Bool TY_❪IsHighSurrogate❫ ( tchar  ch)
Bool TY_❪IsLowSurrogate❫ ( tchar  ch)
Bool TY_❪IsValidCombinedChar❫ ( tchar  ch)
Bool TY_❪IsValidUTF16FromUCS4❫ ( tchar  ucs4)
tmbstr TY_❪PutUTF8❫ ( tmbstr  buf,
uint  c 
)
Bool TY_❪SplitSurrogatePair❫ ( tchar  utf16,
tchar high,
tchar low 
)