Logo
Explore Help
Sign In
1berry/ruby
1
0
Fork 0
You've already forked ruby
Code Issues Packages Projects Releases Wiki Activity
ruby/enc/utf_16_32.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
173 B
C
Raw Permalink Normal View History

* enc/utf_16_32.h: add UTF-16 and UTF-32 as a dummy encoding. * enc/trans/utf_16_32.trans: add a converter from UTF-16 to UTF-8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-23 16:42:47 +00:00
#include "regenc.h"
* enc/iso_2022_jp.h: fix typos. [ci skip][fix GH-1140] Patch by @jutaz * enc/utf_16_32.h: ditto. * enc/utf_7.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-14 02:50:21 +00:00
/* dummy for unsupported, stateful encoding */
Remove get_actual_encoding() and the dynamic endian detection for dummy UTF-16/UTF-32 * And simplify callers of get_actual_encoding(). * See [Feature #18949]. * See https://github.com/ruby/ruby/pull/6322#issuecomment-1242758474
2022-09-10 19:15:49 +02:00
#define ENC_DUMMY_UNICODE(name) ENC_DUMMY(name)
encoding.c: unicode_p * enc/encdb.c, enc/utf_16_32.h (ENC_DUMMY_UNICODE): endian-less wide UTF encodings are dummy but Unicode. * encoding.c (rb_encdb_set_unicode): set Unicode flag. * template/encdb.h.tmpl: allow ENC_DUMMY variants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-06 00:42:14 +00:00
ENC_DUMMY_UNICODE("UTF-16");
ENC_DUMMY_UNICODE("UTF-32");
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 7650ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API