Sha256: e73f163304f9735226b39ddeb87fc053ad6342a0292b76727afca05af73e0f0d
Contents?: true
Size: 752 Bytes
Versions: 4
Compression:
Stored size: 752 Bytes
Contents
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' require 'unf/normalizer_jruby' else require 'unf/normalizer_cruby' end # UTF-8 string normalizer class. Implementations may vary depending # on the platform. class UNF::Normalizer class << self # :singleton-method: new # :call-seq: # new # instance # # Returns a normalizer instance. # :stopdoc: def instance @@normalizer ||= new end # :startdoc: # A shortcut for new.normalize(string, form). def normalize(string, form) instance.normalize(string, form) end end # :method: normalize # :call-seq: # normalize(string, form) # # Normalizes a UTF-8 string into a given form (:nfc, :nfd, :nfkc or # :nfkd). end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unf-0.1.2-jruby | lib/unf/normalizer.rb |
unf-0.1.2 | lib/unf/normalizer.rb |
unf-0.1.1-jruby | lib/unf/normalizer.rb |
unf-0.1.1 | lib/unf/normalizer.rb |