mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* re.c, regerror.c, string.c, parse.y, ruby.c, file.c:
use capital letter for \xHH notation. [ruby-dev:32511] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
098ca00175
commit
b92cee1ddb
7 changed files with 16 additions and 11 deletions
4
string.c
4
string.c
|
@ -3001,7 +3001,7 @@ rb_str_inspect(VALUE str)
|
|||
escape_codepoint:
|
||||
for (q = p-n; q < p; q++) {
|
||||
s = buf;
|
||||
sprintf(buf, "\\x%02x", *q & 0377);
|
||||
sprintf(buf, "\\x%02X", *q & 0377);
|
||||
while (*s) {
|
||||
str_cat_char(result, *s++, enc);
|
||||
}
|
||||
|
@ -3113,7 +3113,7 @@ rb_str_dump(VALUE str)
|
|||
}
|
||||
else {
|
||||
*q++ = '\\';
|
||||
sprintf(q, "x%02x", c&0xff);
|
||||
sprintf(q, "x%02X", c&0xff);
|
||||
q += 3;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue