PHP 8.2.31
Preview: encoding.rb Size: 751 B
/proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/syck/encoding.rb

#
# Handle Unicode-to-Internal conversion
#

module Syck

	#
	# Escape the string, condensing common escapes
	#
	def self.escape( value, skip = "" )
              warn "#{caller[0]}: YAML.escape is deprecated" if $VERBOSE
		value.gsub( /\\/, "\\\\\\" ).
              gsub( /"/, "\\\"" ).
              gsub( /([\x00-\x1f])/ ) do
                 skip[$&] || ESCAPES[ $&.unpack("C")[0] ]
             end
	end

	#
	# Unescape the condenses escapes
	#
	def self.unescape( value )
              warn "#{caller[0]}: YAML.unescape is deprecated" if $VERBOSE
		value.gsub( /\\(?:([nevfbart\\])|0?x([0-9a-fA-F]{2})|u([0-9a-fA-F]{4}))/ ) {
			if $3
				["#$3".hex ].pack('U*')
			elsif $2
				[$2].pack( "H2" )
			else
				UNESCAPES[$1]
			end
		}
	end

end

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
4.85 KB lrw-r--r-- 2010-04-03 21:50:47
Edit Download
6.47 KB lrw-r--r-- 2010-07-19 04:54:06
Edit Download
1.16 KB lrw-r--r-- 2010-04-03 21:50:47
Edit Download
751 B lrw-r--r-- 2010-04-03 21:50:47
Edit Download
1.04 KB lrw-r--r-- 2010-04-03 21:50:47
Edit Download
296 B lrw-r--r-- 2010-04-03 21:50:47
Edit Download
14.49 KB lrw-r--r-- 2012-03-06 02:43:21
Edit Download
768 B lrw-r--r-- 2010-04-03 21:50:47
Edit Download
1.98 KB lrw-r--r-- 2010-04-03 21:50:47
Edit Download
194 B lrw-r--r-- 2011-05-15 11:55:52
Edit Download
3.16 KB lrw-r--r-- 2010-04-16 20:31:59
Edit Download
4.88 KB lrw-r--r-- 2010-04-03 21:50:47
Edit Download
1.19 KB lrw-r--r-- 2010-04-03 21:50:47
Edit Download
1.35 KB lrw-r--r-- 2010-04-03 21:50:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).