Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Macros | Functions
unicode-utils.h File Reference
#include "ws_symbol_export.h"
#include <glib.h>

Go to the source code of this file.

Macros

#define IS_LEAD_SURROGATE(uchar2)   ((uchar2) >= 0xd800 && (uchar2) < 0xdc00)
 
#define IS_TRAIL_SURROGATE(uchar2)   ((uchar2) >= 0xdc00 && (uchar2) < 0xe000)
 
#define SURROGATE_VALUE(lead, trail)   (((((lead) - 0xd800) << 10) | ((trail) - 0xdc00)) + 0x10000)
 

Functions

WS_DLL_PUBLIC int ws_utf8_char_len (guint8 ch)
 

Detailed Description

Unicode convenience routines.