This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add \o{} escape
authorKarl Williamson <khw@khw-desktop.(none)>
Thu, 15 Jul 2010 23:28:28 +0000 (17:28 -0600)
committerDavid Golden <dagolden@cpan.org>
Sun, 18 Jul 2010 01:50:48 +0000 (21:50 -0400)
commitf0a2b745ce6c03aec6412d79ce0b782f20eddce4
treed1786b1a4a80f6b848dca1ab4eba6e3ffd5dc5d1
parent8e4698ef1ed0da722532bfcc769ba22fe85c4b47
Add \o{} escape

This commit adds the new construct \o{} to express a character constant
by its octal ordinal value, along with ancillary tests and
documentation.

A function to handle this is added to util.c, and it is called from the
3 parsing places it could occur.  The function is a candidate for
in-lining, though I doubt that it will ever be used frequently.
16 files changed:
embed.fnc
embed.h
global.sym
pod/perl5133delta.pod
pod/perldiag.pod
pod/perlre.pod
pod/perlrebackslash.pod
pod/perlretut.pod
proto.h
regcomp.c
t/lib/warnings/regcomp
t/lib/warnings/toke
t/op/qq.t
t/re/re_tests
toke.c
util.c