Unified form of CPython functions: _Py_bytes_islower unicode_islower_impl
(&self)
| 403 | // _Py_bytes_islower |
| 404 | // unicode_islower_impl |
| 405 | fn py_islower(&self) -> bool { |
| 406 | let mut lower = false; |
| 407 | for c in self.elements() { |
| 408 | if c.is_uppercase() { |
| 409 | return false; |
| 410 | } else if !lower && c.is_lowercase() { |
| 411 | lower = true |
| 412 | } |
| 413 | } |
| 414 | lower |
| 415 | } |
| 416 | |
| 417 | // Unified form of CPython functions: |
| 418 | // Py_bytes_isupper |
no test coverage detected