summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding
AgeCommit message (Collapse)Author
2023-09-16Fix comment for rb_enc_str_new [ci skip]John Hawthorn
2023-01-11Remove Encoding#replicateBenoit Daloze
Notes: Merged: https://github.com/ruby/ruby/pull/7079
2022-08-19Support Encoding::Converter newline: :lf and :lf_newline optionsJeremy Evans
Previously, newline: :lf was accepted but ignored. Where it should have been used was commented out code that didn't work, but unlike all other invalid values, using newline: :lf did not raise an error. This adds support for newline: :lf and :lf_newline, for consistency with newline: :cr and :cr_newline. This is basically the same as universal_newline, except that it only affects writing and not reading due to RUBY_ECONV_NEWLINE_DECORATOR_WRITE_MASK. Add tests for the File.open :newline option while here. Fixes [Bug #12436] Notes: Merged: https://github.com/ruby/ruby/pull/4590
2022-08-12Add missing `rb_enc_iscntrl`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6235
2022-08-12[DOC] Use `true`/`false` for `@retval`s which are `bool`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6235
2022-08-07[DOC] Add return values of rb_enc_mbcputNobuyoshi Nakada
2022-03-01[DOC] Fix reference in rb_enc_associate() descriptionLars Kanis
Notes: Merged: https://github.com/ruby/ruby/pull/5534
2021-11-11rb_enc_code_to_mbclen: fix doxygen卜部昌平
Wrong parameter name. [ci skip]
2021-11-11RB_ENCODING_SET_INLINED: fix doxygen卜部昌平
Wrong parameter name. [ci skip]
2021-11-11ENCODING_MASK: fix doxygen link [ci skip]卜部昌平
2021-11-02Fix typosNobuyoshi Nakada
2021-10-06Remove duplicate type qualifiersNobuyoshi Nakada
`rb_encoding` is defined as `const OnigEncodingType`. Fix lots of C4114 warnings for each files by MSVC.
2021-10-05Adjust types to rb_enc_left_char_headNobuyoshi Nakada
I dislike unnatural casts.
2021-10-05rb_enc_left_char_head(): take void*卜部昌平
Nobu doesn't like (char*) cast. Notes: Merged: https://github.com/ruby/ruby/pull/4909
2021-10-05include/ruby/encoding.h: convert macros into inline functions卜部昌平
Less macros == huge win. Notes: Merged: https://github.com/ruby/ruby/pull/4909
2021-10-05split include/ruby/encoding.h卜部昌平
2,291 lines are too much! include/ruby/encoding.h became the biggest header file once it had doxygen comments. Let us split it into smaller parts, so that we can better organise their contents. Notes: Merged: https://github.com/ruby/ruby/pull/4909