mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* expand tabs.
This commit is contained in:
parent
2f6cc15cdb
commit
a88107c44d
1 changed files with 2 additions and 2 deletions
4
string.c
4
string.c
|
@ -8593,7 +8593,7 @@ get_reg_grapheme_cluster(rb_encoding *enc)
|
||||||
reg_grapheme_cluster = reg_grapheme_cluster_utf8;
|
reg_grapheme_cluster = reg_grapheme_cluster_utf8;
|
||||||
}
|
}
|
||||||
if (!reg_grapheme_cluster) {
|
if (!reg_grapheme_cluster) {
|
||||||
const OnigUChar source_ascii[] = "\\X";
|
const OnigUChar source_ascii[] = "\\X";
|
||||||
OnigErrorInfo einfo;
|
OnigErrorInfo einfo;
|
||||||
const OnigUChar *source = source_ascii;
|
const OnigUChar *source = source_ascii;
|
||||||
size_t source_len = sizeof(source_ascii) - 1;
|
size_t source_len = sizeof(source_ascii) - 1;
|
||||||
|
@ -8616,7 +8616,7 @@ get_reg_grapheme_cluster(rb_encoding *enc)
|
||||||
#undef CHARS_32BE
|
#undef CHARS_32BE
|
||||||
#undef CHARS_32LE
|
#undef CHARS_32LE
|
||||||
}
|
}
|
||||||
int r = onig_new(®_grapheme_cluster, source, source + source_len,
|
int r = onig_new(®_grapheme_cluster, source, source + source_len,
|
||||||
ONIG_OPTION_DEFAULT, enc, OnigDefaultSyntax, &einfo);
|
ONIG_OPTION_DEFAULT, enc, OnigDefaultSyntax, &einfo);
|
||||||
if (r) {
|
if (r) {
|
||||||
UChar message[ONIG_MAX_ERROR_MESSAGE_LEN];
|
UChar message[ONIG_MAX_ERROR_MESSAGE_LEN];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue