diff options
| author | ksaito <ksaito@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-16 15:20:15 +0000 |
|---|---|---|
| committer | ksaito <ksaito@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-16 15:20:15 +0000 |
| commit | b991e842380ff74212011ec5f4689dd72c11accf (patch) | |
| tree | d8f64a6b42f55d7136e1b18d0e1694d02e70bffc /euc_jp.c | |
| parent | b0e607f92387d2bdf4ac02eae5400910884d29b6 (diff) | |
| download | ruby-b991e842380ff74212011ec5f4689dd72c11accf.tar.gz ruby-b991e842380ff74212011ec5f4689dd72c11accf.tar.xz ruby-b991e842380ff74212011ec5f4689dd72c11accf.zip | |
This commit was generated by cvs2svn to compensate for changes in r5960,
which included commits to RCS files with non-trunk default branches.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'euc_jp.c')
| -rw-r--r-- | euc_jp.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -45,20 +45,20 @@ eucjp_code_to_mbc_first(OnigCodePoint code) first = (code >> 16) & 0xff; /* if (enc_len(ONIG_ENCODING_EUC_JP, first) != 3) - return ONIGERR_INVALID_WIDE_CHAR_VALUE; + return ONIGENCERR_INVALID_WIDE_CHAR_VALUE; */ } else if ((code & 0xff00) != 0) { first = (code >> 8) & 0xff; /* if (enc_len(ONIG_ENCODING_EUC_JP, first) != 2) - return ONIGERR_INVALID_WIDE_CHAR_VALUE; + return ONIGENCERR_INVALID_WIDE_CHAR_VALUE; */ } else { /* if (enc_len(ONIG_ENCODING_EUC_JP, code) != 1) - return ONIGERR_INVALID_WIDE_CHAR_VALUE; + return ONIGENCERR_INVALID_WIDE_CHAR_VALUE; */ return (int )code; } @@ -76,7 +76,7 @@ eucjp_code_to_mbc(OnigCodePoint code, UChar *buf) #if 1 if (enc_len(ONIG_ENCODING_EUC_JP, buf[0]) != (p - buf)) - return ONIGERR_INVALID_WIDE_CHAR_VALUE; + return ONIGENCERR_INVALID_WIDE_CHAR_VALUE; #endif return p - buf; } @@ -127,8 +127,8 @@ eucjp_code_is_ctype(OnigCodePoint code, unsigned int ctype) static UChar* eucjp_left_adjust_char_head(UChar* start, UChar* s) { - /* Assumed in this encoding, - mb-trail bytes don't mix with single bytes. + /* In this encoding + mb-trail bytes doesn't mix with single bytes. */ UChar *p; int len; |
