1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* expand tabs.

This commit is contained in:
git 2019-06-29 10:17:37 +09:00
parent 2f6cc15cdb
commit a88107c44d

View file

@ -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(&reg_grapheme_cluster, source, source + source_len, int r = onig_new(&reg_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];