lib/characteristics.rb in characteristics-0.5.2 vs lib/characteristics.rb in characteristics-0.6.0
- old
+ new
@@ -8,11 +8,11 @@
require_relative "characteristics/unicode"
class Characteristics
def self.type_from_encoding_name(encoding_name)
case encoding_name
- when "US-ASCII"
+ when "US-ASCII", "GB1988"
:ascii
when "ASCII-8BIT"
:binary
when /^UTF-?/
:unicode
@@ -59,9 +59,18 @@
def assigned?
end
def control?
+ end
+
+ def c0?
+ end
+
+ def delete?
+ end
+
+ def c1?
end
def blank?
end