Sha256: 0abeb57c74229dc01383047534310f075755235cfc774adf61df418bea30413c
Contents?: true
Size: 771 Bytes
Versions: 1
Compression:
Stored size: 771 Bytes
Contents
# Samples of strings demonstrating handling of escape sequences, encoding and # line continuations. # Escape sequences %W(foo\nbar baz) %w(foo\nbar baz) # Encoding "日本語" "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E" # => "日本語" "\xAB\xE6\x97\xA5" # Invalid in UTF8 <<EOS 日本語 EOS <<EOS \xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E EOS # Line continuation "foo\ bar" 'foo2\ bar' /foo3\ bar/ <<EOS foo4\ bar EOS %Q[foo5\ bar] %W[fooa\ bar baz] %I[foob\ bar baz] %q[fooc\ bar] %w[food\ bar baz] %i[fooe\ bar baz] %r[foof\ bar baz] # Escaped line continuation "foo6\\ bar" 'foo7\\ bar' /foo8\\ bar/ <<EOS foo9\\ bar EOS %Q[foo10\\ bar] %W[foog\\ bar baz] %I[fooh\\ bar baz] %q[fooi\\ bar] %w[fooj\\ bar baz] %i[fook\\ bar baz] %r[fool\\ bar baz]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ripper_ruby_parser-1.4.2 | test/samples/strings.rb |