Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
URI
/
Escape
/
//opt/alt/ruby21/share/ri/2.1.0/system/URI/Escape/escape-i.ri
U:RDoc::AnyMethod[iI"escape:EFI"URI::Escape#escape;TF:publico:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading: leveli: textI" Synopsis;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I" URI.escape(str [, unsafe]) ;T:@format0S; ;i;I" Args;T@ o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" +str+;T; [o:RDoc::Markup::Paragraph; [I"String to replaces in.;To;;[I" +unsafe+;T; [o;; [I"GRegexp that matches all symbols that must be replaced with codes. ;TI".By default uses <tt>REGEXP::UNSAFE</tt>. ;TI"CWhen this argument is a String, it represents a character set.;T@ S; ;i;I"Description;T@ o;; [I"DEscapes the string, replacing all unsafe characters with codes.;T@ S; ;i;I" Usage;T@ o;; [I"require 'uri' ;TI" ;TI":enc_uri = URI.escape("http://example.com/?a=\11\15") ;TI"p enc_uri ;TI")# => "http://example.com/?a=%09%0D" ;TI" ;TI"p URI.unescape(enc_uri) ;TI"'# => "http://example.com/?a=\t\r" ;TI" ;TI" p URI.escape("@?@!", "!?") ;TI"# => "@%3F@%21";T;0: @fileI"lib/uri/common.rb;T:0@omit_headings_from_table_of_contents_below000[[I"encode;Fo;; [ ;@9;0I"(*arg);T@9FI"Escape;FcRDoc::NormalModule00