зеркало из https://github.com/github/ruby.git
* 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:
Родитель
67212c5ba4
Коммит
6e3391c866
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче