ruby-changes:3034
From: ko1@a...
Date: 24 Dec 2007 00:19:36 +0900
Subject: [ruby-changes:3034] akr - Ruby:r14526 (trunk): comment updated.
akr 2007-12-24 00:19:23 +0900 (Mon, 24 Dec 2007) New Revision: 14526 Modified files: trunk/include/ruby/encoding.h Log: comment updated. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=14526&r2=14525 Index: include/ruby/encoding.h =================================================================== --- include/ruby/encoding.h (revision 14525) +++ include/ruby/encoding.h (revision 14526) @@ -71,7 +71,7 @@ #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 @@ /* -> 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml