Skip to content

Commit

Permalink
JuliaLang#11107 Improve performance of length of UTF8String and UTF16…
Browse files Browse the repository at this point in the history
…String
  • Loading branch information
ScottPJones authored and mbauman committed Jun 5, 2015
1 parent 5bb4558 commit 4910341
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/support/utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4910341

Please sign in to comment.