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
/
REXML
/
Text
/
//opt/alt/ruby21/share/ri/2.1.0/system/REXML/Text/write_with_substitution-i.ri
U:RDoc::AnyMethod[iI"write_with_substitution:EFI"(REXML::Text#write_with_substitution;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BWrites out text, substituting special characters beforehand. ;TI"E+out+ A String, IO, or any other object supporting <<( String ) ;TI"5+input+ the text to substitute and the write out;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"z=utf8.unpack("U*") ;TI"ascOut="" ;TI"z.each{|r| ;TI" if r < 0x100 ;TI" ascOut.concat(r.chr) ;TI" else ;TI"- ascOut.concat(sprintf("&#x%x;", r)) ;TI" end ;TI"} ;TI"puts ascOut;T:@format0: @fileI"lib/rexml/text.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(out, input);T@FI" Text;TcRDoc::NormalClass00