diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-17 12:50:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-17 12:50:52 +0000 |
commit | 635b15d66214a441a23de6363015f1241dcb59fd (patch) | |
tree | 09ca97ac7a0391cc13274c97b5820b8a781eadb8 /include/ruby/encoding.h | |
parent | d965e99b04bc250e8129f5909383ffdff53c0149 (diff) | |
download | ruby-635b15d66214a441a23de6363015f1241dcb59fd.tar.gz |
* string.c (rb_str_casecmp): don't use rb_enc_codepoint.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/encoding.h')
-rw-r--r-- | include/ruby/encoding.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index ca9ddc5dc9..acf10cb072 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -125,10 +125,10 @@ unsigned int rb_enc_codepoint(const char *p, const char *e, rb_encoding *enc); #define rb_enc_mbc_precise_codepoint(p, e, prec_ret, enc) ONIGENC_MBC_PRECISE_CODEPOINT(enc,(UChar*)(p),(UChar*)(e),(prec_ret)) /* -> codelen>0 or raise exception */ -int rb_enc_codelen(int code, rb_encoding *enc); +int rb_enc_codelen(int codepoint, rb_encoding *enc); -/* code,ptr,encoding -> write buf */ -#define rb_enc_mbcput(c,buf,enc) ONIGENC_CODE_TO_MBC(enc,c,(UChar*)(buf)) +/* codepoint,ptr,encoding -> write buf */ +#define rb_enc_mbcput(codepoint,buf,enc) ONIGENC_CODE_TO_MBC((enc),(codepoint),(UChar*)(buf)) /* start, ptr, end, encoding -> prev_char */ #define rb_enc_prev_char(s,p,e,enc) (char *)onigenc_get_prev_char_head(enc,(UChar*)(s),(UChar*)(p),(UChar*)(e)) |