mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
* array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui
<yugui@yugui.sakura.ne.jp>. [ruby-dev:31748] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
629b1e4324
commit
edd7c787ad
19 changed files with 146 additions and 133 deletions
4
utf8.c
4
utf8.c
|
@ -60,7 +60,7 @@ static const int EncLen_UTF8[] = {
|
|||
};
|
||||
|
||||
static int
|
||||
utf8_mbc_enc_len(const UChar* p)
|
||||
utf8_mbc_enc_len(const UChar* p, const UChar* e)
|
||||
{
|
||||
return EncLen_UTF8[*p];
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ utf8_mbc_to_code(const UChar* p, const UChar* end)
|
|||
int c, len;
|
||||
OnigCodePoint n;
|
||||
|
||||
len = enc_len(ONIG_ENCODING_UTF8, p);
|
||||
len = enc_len(ONIG_ENCODING_UTF8, p, end);
|
||||
c = *p++;
|
||||
if (len > 1) {
|
||||
len--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue