diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-05-28 10:42:03 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-08-02 09:24:51 -0600 |
commit | 5c4c47eceffa415fca72434320f6522e979a080b (patch) | |
tree | f39efd63795c88e32b17097d148953fd5b820c0d | |
parent | 4924e08c35622f31867cf9e248a2d7aa96e3eace (diff) | |
download | perl-5c4c47eceffa415fca72434320f6522e979a080b.tar.gz |
regcomp.c: White-space only
This indents and outdents to compensate for newly formed and orphan
blocks, respectively; and reflows comments to fit in 80 columns
-rw-r--r-- | regcomp.c | 68 |
1 files changed, 34 insertions, 34 deletions
@@ -10656,30 +10656,30 @@ tryagain: if (FOLD) { if (UTF || is_exactfu_sharp_s) { - /* Prime the casefolded buffer. Locale rules, which apply - * only to code points < 256, aren't known until execution, - * so for them, just output the original character using - * utf8. If we start to fold non-UTF patterns, be sure to - * update join_exact() */ - if (LOC && ender < 256) { - if (UNI_IS_INVARIANT(ender)) { - *s = (U8) ender; - foldlen = 1; - } else { - *s = UTF8_TWO_BYTE_HI(ender); - *(s + 1) = UTF8_TWO_BYTE_LO(ender); - foldlen = 2; - } - } - else { - ender = _to_uni_fold_flags(ender, (U8 *) s, &foldlen, - FOLD_FLAGS_FULL - | ((LOC) ? FOLD_FLAGS_LOCALE - : (ASCII_FOLD_RESTRICTED) - ? FOLD_FLAGS_NOMIX_ASCII - : 0) - ); - } + /* Prime the casefolded buffer. Locale rules, which + * apply only to code points < 256, aren't known until + * execution, so for them, just output the original + * character using utf8. If we start to fold non-UTF + * patterns, be sure to update join_exact() */ + if (LOC && ender < 256) { + if (UNI_IS_INVARIANT(ender)) { + *s = (U8) ender; + foldlen = 1; + } else { + *s = UTF8_TWO_BYTE_HI(ender); + *(s + 1) = UTF8_TWO_BYTE_LO(ender); + foldlen = 2; + } + } + else { + ender = _to_uni_fold_flags(ender, (U8 *) s, &foldlen, + FOLD_FLAGS_FULL + | ((LOC) ? FOLD_FLAGS_LOCALE + : (ASCII_FOLD_RESTRICTED) + ? FOLD_FLAGS_NOMIX_ASCII + : 0) + ); + } s += foldlen; /* The loop increments <len> each time, as all but this @@ -10689,20 +10689,20 @@ tryagain: * subtract one to cancel out the increment that * follows */ len += foldlen - 1; - } - else { - REGC((char)ender, s++); - } + } + else { + REGC((char)ender, s++); + } } else if (UTF) { - const STRLEN unilen = reguni(pRExC_state, ender, s); - if (unilen > 0) { - s += unilen; - len += unilen; - } + const STRLEN unilen = reguni(pRExC_state, ender, s); + if (unilen > 0) { + s += unilen; + len += unilen; + } /* See comment just above for - 1 */ - len--; + len--; } else { REGC((char)ender, s++); |