]> granicus.if.org Git - onig/commitdiff
remove tabs
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 28 Feb 2019 05:27:09 +0000 (14:27 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 28 Feb 2019 05:27:09 +0000 (14:27 +0900)
25 files changed:
src/big5.c
src/cp1251.c
src/euc_jp.c
src/euc_kr.c
src/euc_tw.c
src/iso8859_1.c
src/iso8859_10.c
src/iso8859_13.c
src/iso8859_14.c
src/iso8859_15.c
src/iso8859_16.c
src/iso8859_2.c
src/iso8859_3.c
src/iso8859_4.c
src/iso8859_5.c
src/iso8859_7.c
src/iso8859_9.c
src/koi8.c
src/koi8_r.c
src/sjis.c
src/utf16_be.c
src/utf16_le.c
src/utf32_be.c
src/utf32_le.c
src/utf8.c

index f931ade2950575684e7cfdbab34e6d0c2d11ab81..ff8bd3bdf032f29d491fc4a904738c55b207cf76 100644 (file)
@@ -102,7 +102,7 @@ big5_mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end,
 #if 0
 static int
 big5_is_mbc_ambiguous(OnigCaseFoldType flag,
-                     const UChar** pp, const UChar* end)
+                      const UChar** pp, const UChar* end)
 {
   return onigenc_mbn_is_mbc_ambiguous(ONIG_ENCODING_BIG5, flag, pp, end);
 }
@@ -148,8 +148,8 @@ big5_left_adjust_char_head(const UChar* start, const UChar* s)
   if (BIG5_ISMB_TRAIL(*p)) {
     while (p > start) {
       if (! BIG5_ISMB_FIRST(*--p)) {
-       p++;
-       break;
+        p++;
+        break;
       }
     }
   }
index 7b19855c5cf543b77117954a8ecacfea537020f4..b4ce4d8a6a2a24002b5bef1440f64a41b364a3e7 100644 (file)
@@ -164,7 +164,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 cp1251_apply_all_case_fold(OnigCaseFoldType flag,
-                              OnigApplyAllCaseFoldFunc f, void* arg)
+                           OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -176,8 +176,8 @@ cp1251_get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingCP1251 = {
index c1ab89ef04b631fcdf42702991ffccf47e12473a..d17386d5f447c179c31617658adfa916eaeda6fd 100644 (file)
@@ -157,7 +157,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf)
 
 static int
 mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   int len;
   const UChar* p = *pp;
@@ -269,7 +269,7 @@ is_code_ctype(OnigCodePoint code, unsigned int ctype)
 
 static int
 get_ctype_code_range(OnigCtype ctype, OnigCodePoint* sb_out,
-                    const OnigCodePoint* ranges[])
+                     const OnigCodePoint* ranges[])
 {
   if (ctype <= ONIGENC_MAX_STD_CTYPE) {
     return ONIG_NO_SUPPORT_CONFIG;
index 9b625146653752fd220a91df2afcf4b2816f1d8e..bb968b0b67d30f57598237468aca299821620c63 100644 (file)
@@ -68,7 +68,7 @@ is_valid_mbc_string(const UChar* p, const UChar* end)
       p++;
       if (p >= end) return FALSE;
       if (*p < 0xa1 || *p == 0xff)
-       return FALSE;
+        return FALSE;
       p++;
     }
     else
@@ -101,7 +101,7 @@ euckr_mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end,
 #if 0
 static int
 euckr_is_mbc_ambiguous(OnigCaseFoldType flag,
-                      const UChar** pp, const UChar* end)
+                       const UChar** pp, const UChar* end)
 {
   return onigenc_mbn_is_mbc_ambiguous(ONIG_ENCODING_EUC_KR, flag, pp, end);
 }
index 76833364cfa9a13c69f5de7fac5d0b3b9e03ea83..c9acaf18b07aafbbdd7c197491e013ed2bacd8a3 100644 (file)
@@ -63,27 +63,27 @@ is_valid_mbc_string(const UChar* p, const UChar* end)
     }
     else if (*p < 0xa1) {
       if (*p == 0x8e) {
-       p++;
-       if (p >= end) return FALSE;
-       if (*p < 0xa1 || *p > 0xb0) return FALSE;
-       p++;
-       if (p >= end) return FALSE;
-       if (*p < 0xa1 || *p == 0xff)
-         return FALSE;
-       p++;
-       if (p >= end) return FALSE;
-       if (*p < 0xa1 || *p == 0xff)
-         return FALSE;
-       p++;
+        p++;
+        if (p >= end) return FALSE;
+        if (*p < 0xa1 || *p > 0xb0) return FALSE;
+        p++;
+        if (p >= end) return FALSE;
+        if (*p < 0xa1 || *p == 0xff)
+          return FALSE;
+        p++;
+        if (p >= end) return FALSE;
+        if (*p < 0xa1 || *p == 0xff)
+          return FALSE;
+        p++;
       }
       else
-       return FALSE;
+        return FALSE;
     }
     else if (*p < 0xff) {
       p++;
       if (p >= end) return FALSE;
       if (*p < 0xa1 || *p == 0xff)
-       return FALSE;
+        return FALSE;
       p++;
     }
     else
index 0ce70a62c7fc893482f8cb1b343da24979376b3d..3b6494256fb9d94513646630c0d57728d531b017 100644 (file)
@@ -103,7 +103,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
             sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -112,15 +112,15 @@ apply_all_case_fold(OnigCaseFoldType flag,
 
 static int
 get_case_fold_codes_by_str(OnigCaseFoldType flag ARG_UNUSED,
-                          const OnigUChar* p, const OnigUChar* end,
-                          OnigCaseFoldCodeItem items[])
+                           const OnigUChar* p, const OnigUChar* end,
+                           OnigCaseFoldCodeItem items[])
 {
   if (0x41 <= *p && *p <= 0x5a) {
     items[0].byte_len = 1;
     items[0].code_len = 1;
     items[0].code[0] = (OnigCodePoint )(*p + 0x20);
     if (*p == 0x53 && end > p + 1
-       && (*(p+1) == 0x53 || *(p+1) == 0x73)) { /* SS */
+        && (*(p+1) == 0x53 || *(p+1) == 0x73)) { /* SS */
       items[1].byte_len = 2;
       items[1].code_len = 1;
       items[1].code[0] = (OnigCodePoint )0xdf;
@@ -134,7 +134,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag ARG_UNUSED,
     items[0].code_len = 1;
     items[0].code[0] = (OnigCodePoint )(*p - 0x20);
     if (*p == 0x73 && end > p + 1
-       && (*(p+1) == 0x73 || *(p+1) == 0x53)) { /* ss */
+        && (*(p+1) == 0x73 || *(p+1) == 0x53)) { /* ss */
       items[1].byte_len = 2;
       items[1].code_len = 1;
       items[1].code[0] = (OnigCodePoint )0xdf;
@@ -200,7 +200,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag ARG_UNUSED,
 
 static int
 mbc_case_fold(OnigCaseFoldType flag, const UChar** pp,
-             const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -218,8 +218,7 @@ mbc_case_fold(OnigCaseFoldType flag, const UChar** pp,
 
 #if 0
 static int
-is_mbc_ambiguous(OnigCaseFoldType flag,
-                const UChar** pp, const UChar* end)
+is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
 {
   int v;
   const UChar* p = *pp;
index 4a34b3887087f00253836d736db05e2ac21435a6..f5882bc3c9d1002667ea41ed579a6509ef8b2259 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_10_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -203,7 +203,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -215,8 +215,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_10 = {
index 23a0265d4cf5ed2d6bfad7d569776ab045cf5a0b..0cf251cd35b50e3861b4913daaf043368fd7ca02 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_13_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -192,7 +192,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -204,8 +204,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
    const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_13 = {
index 7281e93fde7e30a48594446f77c7a4941a237bea..030e9f5ef692d083fb207eb1eb24f3e1c1da2427 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_14_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -124,7 +124,7 @@ mbc_case_fold(OnigCaseFoldType flag,
 #if 0
 static int
 is_mbc_ambiguous(OnigCaseFoldType flag,
-                const UChar** pp, const UChar* end)
+                 const UChar** pp, const UChar* end)
 {
   int v;
   const UChar* p = *pp;
@@ -205,7 +205,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -217,8 +217,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_14 = {
index 3d9f571248930eb6b649d6ddd9f12009551ff495..859d727b8fc0093cd6498e8ed7654d264a2921c3 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_15_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -123,8 +123,7 @@ mbc_case_fold(OnigCaseFoldType flag,
 
 #if 0
 static int
-is_mbc_ambiguous(OnigCaseFoldType flag,
-                const UChar** pp, const UChar* end)
+is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
 {
   int v;
   const UChar* p = *pp;
@@ -199,7 +198,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -211,8 +210,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_15 = {
index a6977dd328ac08a203a5a7de57bf5b72b51d795b..2614e567f47b976f897060afc6dbfb5947d150ce 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_16_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -201,7 +201,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -213,8 +213,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_16 = {
index 4f994c427e07bcf814002562bbe97a9c3130159a..ba030d5d35a98cdaccdcfbf846ecc46e4cae0b5e 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_2_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -190,7 +190,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
             sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -202,8 +202,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 static int
index 944a7ae64ec2fd6f96145897b0136ed0ef311fd5..f090d0bbd003248cb49555ad06e7250769ec7dcd 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_3_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag, const UChar** pp,
-             const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -199,7 +199,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -211,8 +211,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
    const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_3 = {
index 3a7c210929c4c45978cf9c6f490fa2c36b14481b..57dc9fe104637a941dbc29b3eacf62fc3ed0a22c 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_4_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -201,7 +201,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -213,8 +213,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_4 = {
index 0a8b7ec8d8b73184314f9a741da4c3660ede9e6a..a090d257c5d851bb3c901028ad878dd4fc043eca 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_5_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -189,7 +189,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -198,12 +198,12 @@ apply_all_case_fold(OnigCaseFoldType flag,
 
 static int
 get_case_fold_codes_by_str(OnigCaseFoldType flag,
-                          const OnigUChar* p, const OnigUChar* end,
-                          OnigCaseFoldCodeItem items[])
+                           const OnigUChar* p, const OnigUChar* end,
+                           OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_5 = {
index 0877b6fe998c7345a07de60ee02f39c39b5d3cab..8c8835176f641c66e63752369a18c4bcae80e5c9 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_7_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -116,8 +116,7 @@ mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
 
 #if 0
 static int
-is_mbc_ambiguous(OnigCaseFoldType flag,
-                const UChar** pp, const UChar* end)
+is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
 {
   int v;
   const UChar* p = *pp;
@@ -185,7 +184,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -197,8 +196,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
    const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
+                 flag, p, end, items);
 }
 
 
index 8819f4a4728fc016237646b67872d9c50908190c..1d291d5010d2de9566055d5c04e943627a175407 100644 (file)
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_9_CtypeTable[256] = {
 
 static int
 mbc_case_fold(OnigCaseFoldType flag,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -192,7 +192,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 apply_all_case_fold(OnigCaseFoldType flag,
-                   OnigApplyAllCaseFoldFunc f, void* arg)
+                    OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -204,8 +204,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingISO_8859_9 = {
index 7ce965fc59e74de3b3cf7e5248704da58852ce05..94c95a0ef2f44a7e891bbd7abf167359fc60a19c 100644 (file)
@@ -106,7 +106,7 @@ static const unsigned short EncKOI8_CtypeTable[256] = {
 
 static int
 koi8_mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
-          const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+                   const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -214,7 +214,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 koi8_apply_all_case_fold(OnigCaseFoldType flag,
-                        OnigApplyAllCaseFoldFunc f, void* arg)
+                         OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -226,8 +226,8 @@ koi8_get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingKOI8 = {
index 5994ebe51c4dbe47295c95690d0099fc235aa2cb..1284f7f2cc5e594fdf8a62fd846ec7aff2753745 100644 (file)
@@ -176,7 +176,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
 
 static int
 koi8_r_apply_all_case_fold(OnigCaseFoldType flag,
-                              OnigApplyAllCaseFoldFunc f, void* arg)
+                           OnigApplyAllCaseFoldFunc f, void* arg)
 {
   return onigenc_apply_all_case_fold_with_map(
              sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -188,8 +188,8 @@ koi8_r_get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_get_case_fold_codes_by_str_with_map(
-            sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
-            flag, p, end, items);
+                 sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
+                 flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingKOI8_R = {
index aaf4cb8edbc8ab9e66b6248361301c1d8bd898de..4f90b726e6d7f59a7adeb9499da48571c5bdb216 100644 (file)
@@ -85,11 +85,11 @@ is_valid_mbc_string(const UChar* p, const UChar* end)
     }
     else if (*p < 0xa1) {
       if (*p == 0xa0 || *p == 0x80)
-       return FALSE;
+        return FALSE;
       p++;
       if (p >= end) return FALSE;
       if (*p < 0x40 || *p > 0xfc || *p == 0x7f)
-       return FALSE;
+        return FALSE;
       p++;
     }
     else if (*p < 0xe0) {
@@ -99,7 +99,7 @@ is_valid_mbc_string(const UChar* p, const UChar* end)
       p++;
       if (p >= end) return FALSE;
       if (*p < 0x40 || *p > 0xfc || *p == 0x7f)
-       return FALSE;
+        return FALSE;
       p++;
     }
     else
@@ -158,7 +158,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf)
 
 static int
 mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
-             const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
+              const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
 {
   const UChar* p = *pp;
 
@@ -181,8 +181,7 @@ mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
 
 #if 0
 static int
-is_mbc_ambiguous(OnigCaseFoldType flag,
-                const UChar** pp, const UChar* end)
+is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
 {
   return onigenc_mbn_is_mbc_ambiguous(ONIG_ENCODING_SJIS, flag, pp, end);
 
@@ -217,8 +216,8 @@ left_adjust_char_head(const UChar* start, const UChar* s)
   if (SJIS_ISMB_TRAIL(*p)) {
     while (p > start) {
       if (! SJIS_ISMB_FIRST(*--p)) {
-       p++;
-       break;
+        p++;
+        break;
       }
     }
   }
@@ -281,7 +280,7 @@ is_code_ctype(OnigCodePoint code, unsigned int ctype)
       return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype);
     else {
       if (CTYPE_IS_WORD_GRAPH_PRINT(ctype)) {
-       return (code_to_mbclen(code) > 1 ? TRUE : FALSE);
+        return (code_to_mbclen(code) > 1 ? TRUE : FALSE);
       }
     }
   }
@@ -298,7 +297,7 @@ is_code_ctype(OnigCodePoint code, unsigned int ctype)
 
 static int
 get_ctype_code_range(OnigCtype ctype, OnigCodePoint* sb_out,
-                    const OnigCodePoint* ranges[])
+                     const OnigCodePoint* ranges[])
 {
   if (ctype <= ONIGENC_MAX_STD_CTYPE) {
     return ONIG_NO_SUPPORT_CONFIG;
index a812a323c9aeb53163c1b3d526e9ace4e5552a73..22bf74d270d9506dd8c0e0e4fc552088c9f81903 100644 (file)
@@ -174,7 +174,7 @@ utf16be_code_to_mbc(OnigCodePoint code, UChar *buf)
 
 static int
 utf16be_mbc_case_fold(OnigCaseFoldType flag,
-                     const UChar** pp, const UChar* end, UChar* fold)
+                      const UChar** pp, const UChar* end, UChar* fold)
 {
   const UChar* p = *pp;
 
@@ -198,7 +198,7 @@ utf16be_mbc_case_fold(OnigCaseFoldType flag,
   }
   else
     return onigenc_unicode_mbc_case_fold(ONIG_ENCODING_UTF16_BE, flag,
-                                        pp, end, fold);
+                                         pp, end, fold);
 }
 
 #if 0
@@ -218,8 +218,7 @@ utf16be_is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* e
     }
 
     c = *p;
-    v = ONIGENC_IS_UNICODE_ISO_8859_1_BIT_CTYPE(c,
-               (BIT_CTYPE_UPPER | BIT_CTYPE_LOWER));
+    v = ONIGENC_IS_UNICODE_ISO_8859_1_BIT_CTYPE(c, (BIT_CTYPE_UPPER | BIT_CTYPE_LOWER));
 
     if ((v | BIT_CTYPE_LOWER) != 0) {
       /* 0xaa, 0xb5, 0xba are lower case letter, but can't convert. */
@@ -255,7 +254,7 @@ utf16be_get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_unicode_get_case_fold_codes_by_str(ONIG_ENCODING_UTF16_BE,
-                                                   flag, p, end, items);
+                                                    flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingUTF16_BE = {
index da9571f07fe2db0b2d493d1941af2966c0558ebd..4b231c6ecbc59e290cc8c3b1caf84b8f1d13b4ed 100644 (file)
@@ -184,7 +184,7 @@ utf16le_code_to_mbc(OnigCodePoint code, UChar *buf)
 
 static int
 utf16le_mbc_case_fold(OnigCaseFoldType flag,
-                     const UChar** pp, const UChar* end, UChar* fold)
+                      const UChar** pp, const UChar* end, UChar* fold)
 {
   const UChar* p = *pp;
 
@@ -207,13 +207,13 @@ utf16le_mbc_case_fold(OnigCaseFoldType flag,
   }
   else
     return onigenc_unicode_mbc_case_fold(ONIG_ENCODING_UTF16_LE, flag, pp, end,
-                                        fold);
+                                         fold);
 }
 
 #if 0
 static int
 utf16le_is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp,
-                        const UChar* end)
+                         const UChar* end)
 {
   const UChar* p = *pp;
 
@@ -263,7 +263,7 @@ utf16le_get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_unicode_get_case_fold_codes_by_str(ONIG_ENCODING_UTF16_LE,
-                                                   flag, p, end, items);
+                                                    flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingUTF16_LE = {
index 9339b151e27f58d20e87f710c8c9889df2922161..dd17d3bcb6864799ccbe53d14b1a7255b4a67bba 100644 (file)
@@ -90,7 +90,7 @@ utf32be_code_to_mbc(OnigCodePoint code, UChar *buf)
 
 static int
 utf32be_mbc_case_fold(OnigCaseFoldType flag,
-                     const UChar** pp, const UChar* end, UChar* fold)
+                      const UChar** pp, const UChar* end, UChar* fold)
 {
   const UChar* p = *pp;
 
@@ -116,7 +116,7 @@ utf32be_mbc_case_fold(OnigCaseFoldType flag,
   }
   else
     return onigenc_unicode_mbc_case_fold(ONIG_ENCODING_UTF32_BE, flag, pp, end,
-                                        fold);
+                                         fold);
 }
 
 #if 0
@@ -168,7 +168,7 @@ utf32be_get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_unicode_get_case_fold_codes_by_str(ONIG_ENCODING_UTF32_BE,
-                                                   flag, p, end, items);
+                                                    flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingUTF32_BE = {
index 22e007cab2156fb558147d51a095a4bfefbc7a01..d9fe3c6c92b0741bfbe56b6d0331008996f6f190 100644 (file)
@@ -90,7 +90,7 @@ utf32le_code_to_mbc(OnigCodePoint code, UChar *buf)
 
 static int
 utf32le_mbc_case_fold(OnigCaseFoldType flag,
-                     const UChar** pp, const UChar* end, UChar* fold)
+                      const UChar** pp, const UChar* end, UChar* fold)
 {
   const UChar* p = *pp;
 
@@ -168,7 +168,7 @@ utf32le_get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_unicode_get_case_fold_codes_by_str(ONIG_ENCODING_UTF32_LE,
-                                                   flag, p, end, items);
+                                                    flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingUTF32_LE = {
index 4d1f9ec5e6a8ad2e48a1088a3629f0d5c60c4648..110906a8913c9cbc56242338c5e891a8bf0e0007 100644 (file)
@@ -78,11 +78,11 @@ is_valid_mbc_string(const UChar* p, const UChar* end)
     len = mbc_enc_len(p++);
     if (len > 1) {
       for (i = 1; i < len; i++) {
-       if (p == end)
-         return FALSE;
+        if (p == end)
+          return FALSE;
 
-       if (! utf8_istail(*p++))
-         return FALSE;
+        if (! utf8_istail(*p++))
+          return FALSE;
       }
     }
   }
@@ -222,7 +222,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf)
 
 static int
 mbc_case_fold(OnigCaseFoldType flag, const UChar** pp,
-             const UChar* end, UChar* fold)
+              const UChar* end, UChar* fold)
 {
   const UChar* p = *pp;
 
@@ -244,13 +244,13 @@ mbc_case_fold(OnigCaseFoldType flag, const UChar** pp,
   }
   else {
     return onigenc_unicode_mbc_case_fold(ONIG_ENCODING_UTF8, flag,
-                                        pp, end, fold);
+                                         pp, end, fold);
   }
 }
 
 static int
 get_ctype_code_range(OnigCtype ctype, OnigCodePoint *sb_out,
-                    const OnigCodePoint* ranges[])
+                     const OnigCodePoint* ranges[])
 {
   *sb_out = 0x80;
   return onigenc_unicode_ctype_code_range(ctype, ranges);
@@ -274,7 +274,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
     const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
 {
   return onigenc_unicode_get_case_fold_codes_by_str(ONIG_ENCODING_UTF8,
-                                                   flag, p, end, items);
+                                                    flag, p, end, items);
 }
 
 OnigEncodingType OnigEncodingUTF8 = {