Module Stringex
In: lib/stringex/unidecoder.rb
lib/stringex/version.rb
lib/stringex/string_extensions.rb
lib/stringex/acts_as_url.rb
lib/stringex/acts_as_url/adapter/base.rb
lib/stringex/acts_as_url/adapter/data_mapper.rb
lib/stringex/acts_as_url/adapter/active_record.rb
lib/stringex/acts_as_url/adapter/mongoid.rb
lib/stringex/acts_as_url/adapter.rb
lib/stringex/localization.rb
lib/stringex/localization/converter.rb
lib/stringex/localization/conversion_expressions.rb
lib/stringex/localization/backend/base.rb
lib/stringex/localization/backend/internal.rb
lib/stringex/localization/backend/i18n.rb
lib/stringex/localization/default_conversions.rb
lib/stringex/configuration/base.rb
lib/stringex/configuration/string_extensions.rb
lib/stringex/configuration/acts_as_url.rb
lib/stringex/configuration/configurator.rb
lib/stringex/rails/railtie.rb

encoding: UTF-8

Classes and Modules

Module Stringex::Configuration
Module Stringex::Localization
Module Stringex::StringExtensions
Module Stringex::Unidecoder
Module Stringex::Version

Constants

CURRENCIES = CURRENCIES_SIMPLE.merge(CURRENCIES_COMPLEX)
HTML_ENTITIES = Proc.new(){ base = { :amp => %w{#38 amp}, :cent => %w{#162 cent}, :copy => %w{#169 copy}, :deg => %w{#176 deg}, :divide => %w{#247 divide}, :double_quote => %w{#34 #822[012] quot ldquo rdquo dbquo}, :ellipsis => %w{#8230 hellip}, :en_dash => %w{#8211 ndash}, :em_dash => %w{#8212 mdash}, :frac14 => %w{#188 frac14}, :frac12 => %w{#189 frac12}, :frac34 => %w{#190 frac34}, :gt => %w{#62 gt}, :lt => %w{#60 lt}, :nbsp => %w{#160 nbsp}, :pound => %w{#163 pound}, :reg => %w{#174 reg}, :single_quote => %w{#39 #821[678] apos lsquo rsquo sbquo}, :times => %w{#215 times}, :trade => %w{#8482 trade}, :yen => %w{#165 yen}, }
HTML_TAG = Proc.new(){ name = /[\w:_-]+/
SMART_PUNCTUATION = { /(“|”|\302\223|\302\224|\303\222|\303\223)/ => '"', /(‘|’|\302\221|\302\222|\303\225)/ => "'", /…/ => "...", }
VULGAR_FRACTIONS = { :half => /(½|½|½)/, :one_third => /(⅓|⅓)/, :two_thirds => /(⅔|⅔)/, :one_fourth => /(¼|¼|¼)/, :three_fourths => /(¾|¾|¾)/, :one_fifth => /(⅕|⅕)/, :two_fifths => /(⅖|⅖)/, :three_fifths => /(⅗|⅗)/, :four_fifths => /(⅘|⅘)/, :one_sixth => /(⅙|⅙)/, :five_sixths => /(⅚|⅚)/, :one_eighth => /(⅛|⅛)/, :three_eighths => /(⅜|⅜)/, :five_eighths => /(⅝|⅝)/, :seven_eighths => /(⅞|⅞)/, }   Ordered by denominator then numerator of the value
WHITESPACE = /\s+/

[Validate]