Module: Prism::RegularExpressionFlags
| Relationships & Source Files | |
| Defined in: | lib/prism/node.rb |
Overview
Flags for regular expression and match last line nodes.
Constant Summary
-
ASCII_8BIT =
# File 'lib/prism/node.rb', line 19880
n - forces the ASCII-8BIT encoding
1 << 7
-
EUC_JP =
# File 'lib/prism/node.rb', line 19877
e - forces the EUC-JP encoding
1 << 6
-
EXTENDED =
# File 'lib/prism/node.rb', line 19868
x - ignores whitespace and allows comments in regular expressions
1 << 3
-
FORCED_BINARY_ENCODING =
# File 'lib/prism/node.rb', line 19892
internal bytes forced the encoding to binary
1 << 11
-
FORCED_US_ASCII_ENCODING =
# File 'lib/prism/node.rb', line 19895
internal bytes forced the encoding to US-ASCII
1 << 12
-
FORCED_UTF8_ENCODING =
# File 'lib/prism/node.rb', line 19889
internal bytes forced the encoding to UTF-8
1 << 10
-
IGNORE_CASE =
# File 'lib/prism/node.rb', line 19865
i - ignores the case of characters when matching
1 << 2
-
MULTI_LINE =
# File 'lib/prism/node.rb', line 19871
m - allows $ to match the end of lines within strings
1 << 4
-
ONCE =
# File 'lib/prism/node.rb', line 19874
o - only interpolates values into the regular expression once
1 << 5
-
UTF_8 =
# File 'lib/prism/node.rb', line 19886
u - forces the UTF-8 encoding
1 << 9
-
WINDOWS_31J =
# File 'lib/prism/node.rb', line 19883
s - forces the Windows-31J encoding
1 << 8