]> granicus.if.org Git - onig/commitdiff
remove tabs
authorK.Kosako <kkosako0@gmail.com>
Fri, 29 Mar 2019 11:42:14 +0000 (20:42 +0900)
committerK.Kosako <kkosako0@gmail.com>
Fri, 29 Mar 2019 11:42:14 +0000 (20:42 +0900)
test/test_utf8.c
test/testc.c
test/testu.c

index af391ce60853259b7aea80450b455c584b0e0bf4..44b159641c578aa5549d233f00772f3cfdb9c186 100644 (file)
@@ -30,7 +30,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not,
   OnigErrorInfo einfo;
 
   r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)),
-              ONIG_OPTION_DEFAULT, ONIG_ENCODING_UTF8, ONIG_SYNTAX_DEFAULT, &einfo);
+         ONIG_OPTION_DEFAULT, ONIG_ENCODING_UTF8, ONIG_SYNTAX_DEFAULT, &einfo);
   if (r) {
     char s[ONIG_MAX_ERROR_MESSAGE_LEN];
 
@@ -55,8 +55,8 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not,
   }
 
   r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
-                 (UChar* )str, (UChar* )(str + SLEN(str)),
-                 region, ONIG_OPTION_NONE);
+                  (UChar* )str, (UChar* )(str + SLEN(str)),
+                  region, ONIG_OPTION_NONE);
   if (r < ONIG_MISMATCH) {
     char s[ONIG_MAX_ERROR_MESSAGE_LEN];
 
@@ -102,7 +102,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not,
       }
       else {
         fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
-               from, to, region->beg[mem], region->end[mem]);
+                from, to, region->beg[mem], region->end[mem]);
         nfail++;
       }
     }
index 8745280249cca4cf52c3ec9e2c7c0796d6351592..c3174cd34c010e6c98fafbfee6f3e7640f6eb517 100644 (file)
@@ -72,7 +72,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
       }
       else {
         fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
-               from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
+                from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
         nfail++;
       }
     }
@@ -84,7 +84,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
   OnigErrorInfo einfo;
 
   r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + SLEN(pattern)),
-              ONIG_OPTION_DEFAULT, ONIG_ENCODING_EUC_JP, ONIG_SYNTAX_DEFAULT, &einfo);
+       ONIG_OPTION_DEFAULT, ONIG_ENCODING_EUC_JP, ONIG_SYNTAX_DEFAULT, &einfo);
   if (r) {
     char s[ONIG_MAX_ERROR_MESSAGE_LEN];
     onig_error_code_to_str((UChar* )s, r, &einfo);
@@ -94,8 +94,8 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
   }
 
   r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
-                 (UChar* )str, (UChar* )(str + SLEN(str)),
-                 region, ONIG_OPTION_NONE);
+                  (UChar* )str, (UChar* )(str + SLEN(str)),
+                  region, ONIG_OPTION_NONE);
   if (r < ONIG_MISMATCH) {
     char s[ONIG_MAX_ERROR_MESSAGE_LEN];
     onig_error_code_to_str((UChar* )s, r);
@@ -126,7 +126,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
       }
       else {
         fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", pattern, str,
-               from, to, region->beg[mem], region->end[mem]);
+                from, to, region->beg[mem], region->end[mem]);
         nfail++;
       }
     }
index 58fca61c828c7111149c5ac82ee8bffe626c6ed0..4b053e522df10dfa9ff76ad04eddc76445fb27cd 100644 (file)
@@ -107,7 +107,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
       }
       else {
         fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", cpat, cstr,
-               from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
+                from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
         nfail++;
       }
     }
@@ -124,7 +124,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
 
 #if 0
   r = onig_new(&reg, (UChar* )pattern, (UChar* )(pattern + ulen(pattern)),
-              ONIG_OPTION_DEFAULT, ENC, ONIG_SYNTAX_DEFAULT, &einfo);
+               ONIG_OPTION_DEFAULT, ENC, ONIG_SYNTAX_DEFAULT, &einfo);
 #else
   ci.num_of_elements = 5;
   ci.pattern_enc = ENC;
@@ -147,8 +147,8 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
   }
 
   r = onig_search(reg, (UChar* )str, (UChar* )(str + ulen(str)),
-                 (UChar* )str, (UChar* )(str + ulen(str)),
-                 region, ONIG_OPTION_NONE);
+                  (UChar* )str, (UChar* )(str + ulen(str)),
+                  region, ONIG_OPTION_NONE);
   if (r < ONIG_MISMATCH) {
     char s[ONIG_MAX_ERROR_MESSAGE_LEN];
     onig_error_code_to_str((UChar* )s, r);
@@ -179,7 +179,7 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not)
       }
       else {
         fprintf(stdout, "FAIL: /%s/ '%s' %d-%d : %d-%d\n", cpat, cstr,
-               from, to, region->beg[mem], region->end[mem]);
+                from, to, region->beg[mem], region->end[mem]);
         nfail++;
       }
     }