diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 15:19:23 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 15:19:23 +0000 |
| commit | e708616384761dc708068bc7ab18bcde84578e29 (patch) | |
| tree | b11e6d5f70a63d78c212126b0bdb705321489a81 /include/ruby | |
| parent | a73184197216a3d4f22e4f73289fdb1543ec293a (diff) | |
| download | ruby-e708616384761dc708068bc7ab18bcde84578e29.tar.gz ruby-e708616384761dc708068bc7ab18bcde84578e29.tar.xz ruby-e708616384761dc708068bc7ab18bcde84578e29.zip | |
comment updated.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/encoding.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 6f763adaf..c70f0972d 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -71,7 +71,7 @@ rb_encoding * rb_enc_find(const char *name); #define rb_enc_mbminlen(enc) (enc)->min_enc_len #define rb_enc_mbmaxlen(enc) (enc)->max_enc_len -/* -> mbclen (no error notification, no exception, 0 < ret <= e-p) */ +/* -> mbclen (no error notification: 0 < ret <= e-p, no exception) */ int rb_enc_mbclen(const char *p, const char *e, rb_encoding *enc); /* -> chlen, invalid or needmore */ @@ -83,15 +83,15 @@ int rb_enc_precise_mbclen(const char *p, const char *e, rb_encoding *enc); /* -> 0x00..0x7f, -1 */ int rb_enc_ascget(const char *p, const char *e, int *len, rb_encoding *enc); +/* -> code or raise exception */ +int rb_enc_codepoint(const char *p, const char *e, rb_encoding *enc); + /* -> codelen or raise exception */ int rb_enc_codelen(int code, rb_encoding *enc); /* code,ptr,encoding -> write buf */ #define rb_enc_mbcput(c,buf,enc) ONIGENC_CODE_TO_MBC(enc,c,(UChar*)buf) -/* -> code or raise exception */ -int rb_enc_codepoint(const char *p, const char *e, rb_encoding *enc); - /* ptr, ptr, encoding -> prev_char */ #define rb_enc_prev_char(s,p,enc) (char *)onigenc_get_prev_char_head(enc,(UChar*)s,(UChar*)p) |
