UNSAFE_GFF2 |
= |
/[^-_.!~*'()a-zA-Z\d\/?:@+$\[\] \x80-\xfd><;=,%^&\|`]/n |
|
unsafe characters to be escaped
|
IDENTIFIER_GFF2 |
= |
/\A[A-Za-z][A-Za-z0-9_]*\z/n |
|
GFF2 standard identifier
|
NUMERIC_GFF2 |
= |
/\A[-+]?([0-9]+|[0-9]*\.[0-9]*)([eE][+-]?[0-9]+)?\z/n |
|
GFF2 numeric value
|
BACKSLASH |
= |
{ 't' => "\t", 'n' => "\n", 'r' => "\r", 'f' => "\f", 'b' => "\b", 'a' => "\a", 'e' => "\e", 'v' => "\v", # 's' => " ", }.freeze |
|
List of 1-letter special backslash code. The letters other than listed here
are the same as those of without backslash, except for "x" and
digits. (Note that \u (unicode) is not supported.)
|
CHAR2BACKSLASH |
= |
BACKSLASH.invert.freeze |
|
inverted hash of BACKSLASH
|
CHAR2BACKSLASH_EXTENDED |
= |
CHAR2BACKSLASH.merge({ '"' => '"', "\\" => "\\" }).freeze |
|
inverted hash of BACKSLASH, including double quote and backslash
|
PROHIBITED_GFF2_COLUMNS |
= |
/[\t\r\n\x00-\x1f\x7f\xfe\xff]/ |
|
prohibited characters in GFF2 columns
|
PROHIBITED_GFF2_TAGS |
= |
/[\s\"\;\t\r\n\x00-\x1f\x7f\xfe\xff]/ |
|
prohibited characters in GFF2 attribute tags
|