/* Case-mapping context of suffix UTF-8/UTF-16/UTF-32 string.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009-2014 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2009.
This program is free software: you can redistribute it and/or modify it
int count = U_MBTOUC_UNSAFE (&uc, s, s_end - s);
if (first_char_except_ignorable == (ucs4_t)(-1))
- {
- if (!uc_is_case_ignorable (uc))
- first_char_except_ignorable = uc;
- }
+ {
+ if (!uc_is_case_ignorable (uc))
+ first_char_except_ignorable = uc;
+ }
if (scc_MORE_ABOVE < 0)
- {
- int ccc = uc_combining_class (uc);
- if (ccc == UC_CCC_A)
- scc_MORE_ABOVE = SCC_MORE_ABOVE_MASK;
- else if (ccc == UC_CCC_NR)
- scc_MORE_ABOVE = 0;
- }
+ {
+ int ccc = uc_combining_class (uc);
+ if (ccc == UC_CCC_A)
+ scc_MORE_ABOVE = SCC_MORE_ABOVE_MASK;
+ else if (ccc == UC_CCC_NR)
+ scc_MORE_ABOVE = 0;
+ }
if (scc_BEFORE_DOT < 0)
- {
- if (uc == 0x0307) /* COMBINING DOT ABOVE */
- scc_BEFORE_DOT = SCC_BEFORE_DOT_MASK;
- else
- {
- int ccc = uc_combining_class (uc);
- if (ccc == UC_CCC_A || ccc == UC_CCC_NR)
- scc_BEFORE_DOT = 0;
- }
- }
+ {
+ if (uc == 0x0307) /* COMBINING DOT ABOVE */
+ scc_BEFORE_DOT = SCC_BEFORE_DOT_MASK;
+ else
+ {
+ int ccc = uc_combining_class (uc);
+ if (ccc == UC_CCC_A || ccc == UC_CCC_NR)
+ scc_BEFORE_DOT = 0;
+ }
+ }
if (first_char_except_ignorable != (ucs4_t)(-1)
- && (scc_MORE_ABOVE | scc_BEFORE_DOT) >= 0)
- /* All conditions have been determined. */
- break;
+ && (scc_MORE_ABOVE | scc_BEFORE_DOT) >= 0)
+ /* All conditions have been determined. */
+ break;
s += count;
}