| 574 | } |
| 575 | |
| 576 | static bool str_isupper(const uint32_t *s, int n) { |
| 577 | bool cased = false; |
| 578 | for (int i = 0; i < n; i++) { |
| 579 | if (pdf_u_lower(s[i]) || pdf_u_title(s[i])) { |
| 580 | return false; |
| 581 | } |
| 582 | cased = cased || pdf_u_upper(s[i]); |
| 583 | } |
| 584 | return cased; |
| 585 | } |
| 586 | |
| 587 | static bool is_camel(const uint32_t *t, int n) { |
| 588 | if (n < 3 || str_isupper(t, n) || str_islower(t, n)) { |
no test coverage detected