RubyGems Navigation menu

charshift 0.2.3

Charshift is a simple gem which adds functionality to the String class. It's primary function is to act on a given string, taking a fixnum parameter, then shifting each character in that string to a higher or lower ordinal position in that strings encoding. Charshift works with all of Ruby's included encodings and also works with devloper supplied 'custom encodings.' Simply provide an ordered set of characters as an optional parameter and charshift will work on the string using that set instead of the strings native encoding. Charshift also includes a '.get_encoding_length' method which returns the number of of characters which a given strings encoding contains. Finally, strings can be shifted in place using the '.charshift!' method.

Gemfile:
=

安裝:
=

版本列表:

  1. 0.2.3 June 23, 2016 (5.5 KB)
  2. 0.2.2 June 21, 2016 (5.5 KB)
  3. 0.2.1 June 21, 2016 (5.5 KB)
顯示所有版本(共 4)

擁有者:

作者:

  • Jonathon Nordquist

SHA 256 總和檢查碼:

=

總下載次數 8,588

這個版本 3,368

版本发布:

授權:

MIT

Ruby 版本需求: >= 0

相關連結: