Package org.jruby.ext.cgi.escape
Class CGIEscape
java.lang.Object
org.jruby.ext.cgi.escape.CGIEscape
- All Implemented Interfaces:
Library
Created by headius on 12/8/16.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final byte[]static final byte[]static final byte[]static final byte[]static final byte[]static final byte[]static final byte[]private static final int[]static final byte[]static final intstatic final byte[](package private) static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static IRubyObjectaccept_charset(IRubyObject[] args, int argc, int argv, IRubyObject self) static IRubyObjectcgiesc_escape(ThreadContext context, IRubyObject self, IRubyObject _str) static IRubyObjectcgiesc_escape_html(ThreadContext context, IRubyObject self, IRubyObject _str) static IRubyObjectcgiesc_unescape(ThreadContext context, IRubyObject self, IRubyObject[] argv) static IRubyObjectcgiesc_unescape_html(ThreadContext context, IRubyObject self, IRubyObject _str) (package private) static intchar_to_number(int c) (package private) static voidhtml_escaped_cat(RubyString str, byte c) (package private) static booleanISXDIGIT(byte[] cstrBytes, int i) void(package private) static booleanMATCH(byte[] s, int len, int i, byte[] cstrBytes, int cstr) (package private) static IRubyObjectoptimized_escape(Ruby runtime, RubyString str) (package private) static IRubyObjectoptimized_escape_html(Ruby runtime, RubyString str) (package private) static IRubyObjectoptimized_unescape(ThreadContext context, RubyString str, IRubyObject encoding) (package private) static IRubyObjectoptimized_unescape_html(Ruby runtime, RubyString str) (package private) static voidpreserve_original_state(RubyString orig, RubyString dest) (package private) static intruby_scan_digits(byte[] strBytes, int str, int len, int base, int[] retlenOverflow) (package private) static booleanurl_unreserved_char(int c)
-
Field Details
-
ACCEPT_CHARSET
- See Also:
-
NO39
public static final byte[] NO39 -
AMP
public static final byte[] AMP -
QUOT
public static final byte[] QUOT -
LT
public static final byte[] LT -
GT
public static final byte[] GT -
UNICODE_MAX
public static final int UNICODE_MAX- See Also:
-
TSEMI
public static final byte[] TSEMI -
UOTSEMI
public static final byte[] UOTSEMI -
MPSEMI
public static final byte[] MPSEMI -
POSSEMI
public static final byte[] POSSEMI -
upper_hexdigits
static final byte[] upper_hexdigits -
ruby_digit36_to_number_table
private static final int[] ruby_digit36_to_number_table
-
-
Constructor Details
-
CGIEscape
public CGIEscape()
-
-
Method Details
-
html_escaped_cat
-
preserve_original_state
-
optimized_escape_html
-
MATCH
static boolean MATCH(byte[] s, int len, int i, byte[] cstrBytes, int cstr) -
optimized_unescape_html
-
ISXDIGIT
static boolean ISXDIGIT(byte[] cstrBytes, int i) -
url_unreserved_char
static boolean url_unreserved_char(int c) -
optimized_escape
-
optimized_unescape
-
cgiesc_escape_html
public static IRubyObject cgiesc_escape_html(ThreadContext context, IRubyObject self, IRubyObject _str) -
cgiesc_unescape_html
public static IRubyObject cgiesc_unescape_html(ThreadContext context, IRubyObject self, IRubyObject _str) -
cgiesc_escape
-
accept_charset
-
cgiesc_unescape
public static IRubyObject cgiesc_unescape(ThreadContext context, IRubyObject self, IRubyObject[] argv) -
load
-
ruby_scan_digits
static int ruby_scan_digits(byte[] strBytes, int str, int len, int base, int[] retlenOverflow) -
char_to_number
static int char_to_number(int c)
-