Module: Vonage::GSM7

Extended by:
T::Sig
Defined in:
lib/vonage/gsm7.rb

Constant Summary collapse

CHARACTERS =
"\n\f\r !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~ ¡£¤¥§¿ÄÅÆÇÉÑÖØÜßàäåæèéìñòöøùüΓΔΘΛΞΠΣΦΨΩ€"
REGEXP =
/\A[#{Regexp.escape(CHARACTERS)}]*\z/

Class Method Summary collapse

Class Method Details

.encoded?(string) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/vonage/gsm7.rb', line 12

def self.encoded?(string)
  REGEXP =~ string
end