stdlib/cgi/0/core.rbs in rbs-3.0.0.dev.2 vs stdlib/cgi/0/core.rbs in rbs-3.0.0.dev.3
- old
+ new
@@ -882,10 +882,18 @@
#
def escapeHTML: (string str) -> String
# <!--
# rdoc-file=ext/cgi/escape/escape.c
+ # - CGI.escapeURIComponent(string) -> string
+ # -->
+ # Returns URL-escaped string following RFC 3986.
+ #
+ def escapeURIComponent: (string) -> String
+
+ # <!--
+ # rdoc-file=ext/cgi/escape/escape.c
# - CGI.unescape(string, encoding=@@accept_charset) -> string
# -->
# Returns URL-unescaped string (`application/x-www-form-urlencoded`).
#
def unescape: (string str, ?encoding encoding) -> String
@@ -895,9 +903,17 @@
# - CGI.unescapeHTML(string) -> string
# -->
# Returns HTML-unescaped string.
#
def unescapeHTML: (string str) -> String
+
+ # <!--
+ # rdoc-file=ext/cgi/escape/escape.c
+ # - CGI.unescapeURIComponent(string, encoding=@@accept_charset) -> string
+ # -->
+ # Returns URL-unescaped string following RFC 3986.
+ #
+ def unescapeURIComponent: (string) -> String
end
# <!-- rdoc-file=lib/cgi/core.rb -->
# Exception raised when there is an invalid encoding detected
#