Sha256: b8e6fb8df6af2ac9db06ce0007bf7bff3cf9c2ceb31fc898d018c0b4dbabb0ad
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
# charwidth Normalize Unicode fullwidth / halfwidth (zenkaku / hankaku) characters. # Installation gem install charwidth # Usage require "charwidth" Charwidth.normalize("Hello, World!") # => "Hello, World!" Charwidth.normalize!("Hello, World!") # destructive Charwidth.normalize("「ハローワールド」") # => "「ハローワールド」" Or extend String class. require "charwidth/string" "Hello, World!".normalize_charwidth # => "Hello, World!" "Hello, World!".normalize_charwidth! # => destructive "「ハローワールド」".normalize_charwidth # => "「ハローワールド」" # Contributing to charwidth * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it * Fork the project * Start a feature/bugfix branch * Commit and push until you are happy with your contribution * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally. * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. # Copyright Copyright (c) 2012 labocho. See LICENSE.txt for further details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
charwidth-0.1.1 | README.md |