| 173 | } |
| 174 | |
| 175 | static Rune ToLowerRune(Rune r) { |
| 176 | if (r < Runeself) { |
| 177 | if ('A' <= r && r <= 'Z') |
| 178 | r += 'a' - 'A'; |
| 179 | return r; |
| 180 | } |
| 181 | |
| 182 | const CaseFold *f = LookupCaseFold(unicode_tolower, num_unicode_tolower, r); |
| 183 | if (f == NULL || r < f->lo) |
| 184 | return r; |
| 185 | return ApplyFold(f, r); |
| 186 | } |
| 187 | |
| 188 | static Rune ToLowerRuneLatin1(Rune r) { |
| 189 | if ('A' <= r && r <= 'Z') |
no test coverage detected