mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/euc_tw.c (euctw_islead): 0x8e is a leading byte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67212c5ba4
commit
6e3391c866
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 29 21:59:16 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* enc/euc_tw.c (euctw_islead): 0x8e is a leading byte.
|
||||
|
||||
Tue Jan 29 21:55:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* bignum.c: move object allocation out of blocking_region.
|
||||
|
|
|
@ -89,7 +89,7 @@ euctw_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
|
|||
return onigenc_mb4_is_code_ctype(enc, code, ctype);
|
||||
}
|
||||
|
||||
#define euctw_islead(c) (((c) < 0xa1 && (c) != 0x8e) || (c) == 0xff)
|
||||
#define euctw_islead(c) ((UChar )((c) - 0xa1) > 0xfe - 0xa1)
|
||||
|
||||
static UChar*
|
||||
euctw_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue