项目作者: tadd

项目描述 :
String#undump, inverse of String#dump
高级语言: C
项目地址: git://github.com/tadd/string_undump.git
创建时间: 2017-04-12T16:35:04Z
项目社区:https://github.com/tadd/string_undump

开源协议:Other

下载


String#undump

Unofficial implementation of String#undump, does inverse of String#dump.
See Feature #12275 for details.

Usage

  1. require 'string_undump'
  2. puts '\u3059\u3054\u30FC\u3044'.undump #=> すごーい
  3. puts '\xE3\x81\x9F\xE3\x81\xAE\xE3\x81\x97\xE3\x83\xBC'.undump #=> たのしー
  4. puts '\u{1F43E}'.undump #=> 🐾

See testcase also.

Installation

Add this line to your application’s Gemfile:

  1. gem 'string_undump'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install string_undump

Supported Ruby versions

2.0.0 or later.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tadd/string_undump.

License

Ruby’s. See COPYING.