mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/encoding.h (rb_econv_set_replacement): renamed from
rb_econv_set_replacemenet. * transcode.c: follow the renaming. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
82a5736519
commit
6e36c4842e
3 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
Mon Sep 8 02:04:25 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* include/ruby/encoding.h (rb_econv_set_replacement): renamed from
|
||||
rb_econv_set_replacemenet.
|
||||
|
||||
* transcode.c: follow the renaming.
|
||||
|
||||
Mon Sep 8 01:10:41 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* tool/transcode-tblgen.rb (transcode_tblgen): log message refined.
|
||||
|
|
|
@ -222,7 +222,7 @@ rb_econv_result_t rb_econv_convert(rb_econv_t *ec,
|
|||
void rb_econv_close(rb_econv_t *ec);
|
||||
|
||||
/* result: 0:success -1:failure */
|
||||
int rb_econv_set_replacemenet(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname);
|
||||
int rb_econv_set_replacement(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname);
|
||||
|
||||
VALUE rb_econv_open_exc(const char *senc, const char *denc, int ecflags);
|
||||
|
||||
|
|
|
@ -1980,7 +1980,7 @@ make_replacement(rb_econv_t *ec)
|
|||
}
|
||||
|
||||
int
|
||||
rb_econv_set_replacemenet(rb_econv_t *ec,
|
||||
rb_econv_set_replacement(rb_econv_t *ec,
|
||||
const unsigned char *str, size_t len, const char *encname)
|
||||
{
|
||||
unsigned char *str2;
|
||||
|
@ -2260,7 +2260,7 @@ rb_econv_open_opts(const char *source_encoding, const char *destination_encoding
|
|||
int ret;
|
||||
rb_encoding *enc = rb_enc_get(replacement);
|
||||
|
||||
ret = rb_econv_set_replacemenet(ec,
|
||||
ret = rb_econv_set_replacement(ec,
|
||||
(const unsigned char *)RSTRING_PTR(replacement),
|
||||
RSTRING_LEN(replacement),
|
||||
enc->name);
|
||||
|
@ -3357,7 +3357,7 @@ econv_set_replacement(VALUE self, VALUE arg)
|
|||
StringValue(string);
|
||||
enc = rb_enc_get(string);
|
||||
|
||||
ret = rb_econv_set_replacemenet(ec,
|
||||
ret = rb_econv_set_replacement(ec,
|
||||
(const unsigned char *)RSTRING_PTR(string),
|
||||
RSTRING_LEN(string),
|
||||
enc->name);
|
||||
|
|
Loading…
Reference in a new issue