Commit c31c6c08 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2352 from suzukaze/fix-indent

Fix indents in mruby-string-utf8
parents 82515722 73874f40
...@@ -159,10 +159,10 @@ mrb_memsearch_qs(const unsigned char *xs, mrb_int m, const unsigned char *ys, mr ...@@ -159,10 +159,10 @@ mrb_memsearch_qs(const unsigned char *xs, mrb_int m, const unsigned char *ys, mr
qstable[i] = m + 1; qstable[i] = m + 1;
for (; x < xe; ++x) for (; x < xe; ++x)
qstable[*x] = xe - x; qstable[*x] = xe - x;
/* Searching */ /* Searching */
for (; y + m <= ys + n; y += *(qstable + y[m])) { for (; y + m <= ys + n; y += *(qstable + y[m])) {
if (*xs == *y && memcmp(xs, y, m) == 0) if (*xs == *y && memcmp(xs, y, m) == 0)
return y - ys; return y - ys;
} }
return -1; return -1;
} }
...@@ -570,7 +570,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str) ...@@ -570,7 +570,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
if (mrb_string_p(spat)) { if (mrb_string_p(spat)) {
split_type = string; split_type = string;
if (RSTRING_LEN(spat) == 1 && RSTRING_PTR(spat)[0] == ' '){ if (RSTRING_LEN(spat) == 1 && RSTRING_PTR(spat)[0] == ' '){
split_type = awk; split_type = awk;
} }
} }
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment