parameters: (data)
return_statement: return impl
docstring: impl is an approximate translation of:
      https://github.com/python/cpython/blob/201c8f79450628241574fba940e08107178dc3a5/Objects/unicodeobject.c#L11900-L11933    # noqa: E501
      mixed with:
      https://github.com/python/cpython/blob/201c8f79450628241574fba940e08107178dc3a5/Objects/bytes_methods.c#L131-L156    # noqa: E501
docstring_summary: impl is an approximate translation of:
      https://github.com/python/cpython/blob/201c8f79450628241574fba940e08107178dc3a5/Objects/unicodeobject.c#L11900-L11933    # noqa: E501
      mixed with:
      https://github.com/python/cpython/blob/201c8f79450628241574fba940e08107178dc3a5/Objects/bytes_methods.c#L131-L156    # noqa: E501
docstring_tokens: impl is an approximate translation of : https : // github . com / python / cpython / blob / 201c8f79450628241574fba940e08107178dc3a5 / Objects / unicodeobject . c#L11900 - L11933 # noqa : E501 mixed with : https : // github . com / python / cpython / blob / 201c8f79450628241574fba940e08107178dc3a5 / Objects / bytes_methods . c#L131 - L156 # noqa : E501
function: def unicode_islower(data):
      """
      impl is an approximate translation of:
      https://github.com/python/cpython/blob/201c8f79450628241574fba940e08107178dc3a5/Objects/unicodeobject.c#L11900-L11933    # noqa: E501
      mixed with:
      https://github.com/python/cpython/blob/201c8f79450628241574fba940e08107178dc3a5/Objects/bytes_methods.c#L131-L156    # noqa: E501
      """
  
      def impl(data):
          length = len(data)
          if length == 1:
              return _PyUnicode_IsLowercase(_get_code_point(data, 0))
          if length == 0:
              return False
  
          cased = False
          for idx in range(length):
              cp = _get_code_point(data, idx)
              if _PyUnicode_IsUppercase(cp) or _PyUnicode_IsTitlecase(cp):
                  return False
              elif not cased and _PyUnicode_IsLowercase(cp):
                  cased = True
          return cased
      return impl
function_tokens: def unicode_islower ( data ) : def impl ( data ) : length = len ( data ) if length == 1 : return _PyUnicode_IsLowercase ( _get_code_point ( data , 0 ) ) if length == 0 : return False cased = False for idx in range ( length ) : cp = _get_code_point ( data , idx ) if _PyUnicode_IsUppercase ( cp ) or _PyUnicode_IsTitlecase ( cp ) : return False elif not cased and _PyUnicode_IsLowercase ( cp ) : cased = True return cased return impl