From 4910341d434255890b1077a92ff5d1fd899113f8 Mon Sep 17 00:00:00 2001 From: Scott Paul Jones Date: Sun, 3 May 2015 15:43:11 -0400 Subject: [PATCH] #11107 Improve performance of length of UTF8String and UTF16String --- src/support/utf8.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/support/utf8.h b/src/support/utf8.h index fd1d35d6e394c..6e0de6818c4e8 100644 --- a/src/support/utf8.h +++ b/src/support/utf8.h @@ -10,15 +10,6 @@ extern "C" { /* is c the start of a utf8 sequence? */ #define isutf(c) (((c)&0xC0)!=0x80) -//! Return if a 16-bit or 32-bit character is a surrogate character -#define is_surrogate_char(ch) (((ch) & ~0x7ff) == 0xd800) -//! Return if a 16-bit or 32-bit character is a leading surrogate character -#define is_surrogate_lead(ch) (((ch) & ~0x3ff) == 0xd800) -//! Return if a 16-bit or 32-bit character is a trailing surrogate character -#define is_surrogate_trail(ch) (((ch) & ~0x3ff) == 0xdc00) -//! Return if a byte is a valid UTF-8 continuation character -#define is_valid_continuation(ch) ((ch & 0xc0) == 0x80) - #define UEOF ((uint32_t)-1) /* convert UTF-8 data to wide character */