str.islower / str.isupper of a whole string */
| 563 | |
| 564 | /* str.islower / str.isupper of a whole string */ |
| 565 | static bool str_islower(const uint32_t *s, int n) { |
| 566 | bool cased = false; |
| 567 | for (int i = 0; i < n; i++) { |
| 568 | if (pdf_u_upper(s[i]) || pdf_u_title(s[i])) { |
| 569 | return false; |
| 570 | } |
| 571 | cased = cased || pdf_u_lower(s[i]); |
| 572 | } |
| 573 | return cased; |
| 574 | } |
| 575 | |
| 576 | static bool str_isupper(const uint32_t *s, int n) { |
| 577 | bool cased = false; |
no test coverage detected