'Return a Python string (or unicode string) from the \'cdata\'.
If \'cdata\' is a pointer or array of characters or bytes, returns
the null-terminated string.  The returned string extends until
the first null character, or at most \'maxlen\' characters.  If
\'cdata\' is an array then \'maxlen\' defaults to its length.
If \'cdata\' is a pointer or array of wchar_t, returns a unicode
string following the same rules.
If \'cdata\' is a single character or byte or a wchar_t, returns
it as a string or unicode string.
If \'cdata\' is an enum, returns the value of the enumerator as a
string, or \'NUMBER\' if the value is out of range.'

def string(self, cdata, maxlen=(-1)):

    return self._backend.string(cdata, maxlen)
