mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adjust indent [ci skip]
This commit is contained in:
parent
9a8f6e392f
commit
2d1cf658ee
1 changed files with 10 additions and 10 deletions
20
string.c
20
string.c
|
@ -10784,16 +10784,16 @@ rb_str_b(VALUE str)
|
|||
// If we know the receiver's code range then we know the result's code range.
|
||||
int cr = ENC_CODERANGE(str);
|
||||
switch (cr) {
|
||||
case ENC_CODERANGE_7BIT:
|
||||
ENC_CODERANGE_SET(str2, ENC_CODERANGE_7BIT);
|
||||
break;
|
||||
case ENC_CODERANGE_BROKEN:
|
||||
case ENC_CODERANGE_VALID:
|
||||
ENC_CODERANGE_SET(str2, ENC_CODERANGE_VALID);
|
||||
break;
|
||||
default:
|
||||
ENC_CODERANGE_CLEAR(str2);
|
||||
break;
|
||||
case ENC_CODERANGE_7BIT:
|
||||
ENC_CODERANGE_SET(str2, ENC_CODERANGE_7BIT);
|
||||
break;
|
||||
case ENC_CODERANGE_BROKEN:
|
||||
case ENC_CODERANGE_VALID:
|
||||
ENC_CODERANGE_SET(str2, ENC_CODERANGE_VALID);
|
||||
break;
|
||||
default:
|
||||
ENC_CODERANGE_CLEAR(str2);
|
||||
break;
|
||||
}
|
||||
|
||||
return str2;
|
||||
|
|
Loading…
Add table
Reference in a new issue