Module: TwitterCldr::Normalization
- Defined in:
- lib/twitter_cldr/normalization.rb
Constant Summary collapse
- VALID_NORMALIZERS =
[:nfd, :nfkd, :nfc, :nfkc]
- DEFAULT_NORMALIZER =
:nfd
Class Method Summary collapse
Class Method Details
.normalize(string, options = {}) ⇒ Object
16 17 18 19 |
# File 'lib/twitter_cldr/normalization.rb', line 16 def normalize(string, = {}) validate_form(form = extract_form_from()) Eprun.normalize(string, form) end |
.normalized?(string, options = {}) ⇒ Boolean
21 22 23 24 |
# File 'lib/twitter_cldr/normalization.rb', line 21 def normalized?(string, = {}) validate_form(form = extract_form_from()) Eprun.normalized?(string, form) end |