mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
69406aad50
validation. * include/ruby/encoding.h (rb_enc_precise_mbclen): declared. (MBCLEN_CHARFOUND): new macro. (MBCLEN_INVALID): new macro. (MBCLEN_NEEDMORE): new macro. * include/ruby/oniguruma.h (OnigEncodingTypeST): replace mbc_enc_len by precise_mbc_enc_len. (ONIGENC_PRECISE_MBC_ENC_LEN): new macro. (ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND): new macro. (ONIGENC_CONSTRUCT_MBCLEN_INVALID): new macro. (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE): new macro. (ONIGENC_MBCLEN_CHARFOUND): new macro. (ONIGENC_MBCLEN_INVALID): new macro. (ONIGENC_MBCLEN_NEEDMORE): new macro. (ONIGENC_MBC_ENC_LEN): use ONIGENC_PRECISE_MBC_ENC_LEN. * enc/euc_jp.c: validation implemented. * enc/sjis.c: ditto. * enc/utf8.c: ditto. * string.c (rb_str_inspect): use rb_enc_precise_mbclen for invalid encoding. (rb_str_valid_encoding_p): new method String#valid_encoding?. * io.c (rb_io_getc): use rb_enc_precise_mbclen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
---|---|---|
.. | ||
beginmainend.rb | ||
endblockwarn.rb | ||
envutil.rb | ||
marshaltestlib.rb | ||
sentence.rb | ||
test_alias.rb | ||
test_array.rb | ||
test_assignment.rb | ||
test_basicinstructions.rb | ||
test_beginendblock.rb | ||
test_bignum.rb | ||
test_call.rb | ||
test_case.rb | ||
test_class.rb | ||
test_clone.rb | ||
test_condition.rb | ||
test_const.rb | ||
test_continuation.rb | ||
test_defined.rb | ||
test_dir.rb | ||
test_encoding.rb | ||
test_enumerator.rb | ||
test_env.rb | ||
test_eval.rb | ||
test_exception.rb | ||
test_fiber.rb | ||
test_file.rb | ||
test_fixnum.rb | ||
test_float.rb | ||
test_fnmatch.rb | ||
test_gc.rb | ||
test_hash.rb | ||
test_ifunless.rb | ||
test_integer.rb | ||
test_io.rb | ||
test_iterator.rb | ||
test_lambda.rb | ||
test_literal.rb | ||
test_m17n.rb | ||
test_marshal.rb | ||
test_math.rb | ||
test_method.rb | ||
test_mixed_unicode_escapes.rb | ||
test_module.rb | ||
test_objectspace.rb | ||
test_optimization.rb | ||
test_pack.rb | ||
test_path.rb | ||
test_pipe.rb | ||
test_primitive.rb | ||
test_proc.rb | ||
test_process.rb | ||
test_rand.rb | ||
test_range.rb | ||
test_readpartial.rb | ||
test_regexp.rb | ||
test_settracefunc.rb | ||
test_signal.rb | ||
test_sprintf.rb | ||
test_string.rb | ||
test_stringchar.rb | ||
test_struct.rb | ||
test_super.rb | ||
test_symbol.rb | ||
test_system.rb | ||
test_thread.rb | ||
test_time.rb | ||
test_trace.rb | ||
test_unicode_escape.rb | ||
test_variable.rb | ||
test_whileuntil.rb | ||
test_yield.rb | ||
ut_eof.rb |