def as_string(self): "Retrieve the Field's value as a string." if not self.is_set: return None string = capi.get_field_as_string(self._feat.ptr, self._index) return force_str(string, encoding=self._feat.encoding, strings_only=True)
def as_string(self): "Retrieves the Field's value as a string." string = capi.get_field_as_string(self._feat.ptr, self._index) return force_text(string, encoding=self._feat.encoding, strings_only=True)
def as_string(self): "Retrieve the Field's value as a string." string = capi.get_field_as_string(self._feat.ptr, self._index) return force_text(string, encoding=self._feat.encoding, strings_only=True)
def as_string(self): "Retrieves the Field's value as a string." return get_field_as_string(self._feat, self._index)
def as_string(self): "Retrieves the Field's value as a string." return get_field_as_string(self._feat, self._index)
def as_int(self, is_64=False): "Retrieve the Field's value as an integer." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 if is_64: return capi.get_field_as_integer64(self._feat.ptr, self._index) else: return capi.get_field_as_integer(self._feat.ptr, self._index) def as_string(self): <<<<<<< HEAD "Retrieves the Field's value as a string." ======= "Retrieve the Field's value as a string." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 string = capi.get_field_as_string(self._feat.ptr, self._index) return force_text(string, encoding=self._feat.encoding, strings_only=True) def as_datetime(self): <<<<<<< HEAD "Retrieves the Field's value as a tuple of date & time components." ======= "Retrieve the Field's value as a tuple of date & time components." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 yy, mm, dd, hh, mn, ss, tz = [c_int() for i in range(7)] status = capi.get_field_as_datetime( self._feat.ptr, self._index, byref(yy), byref(mm), byref(dd), byref(hh), byref(mn), byref(ss), byref(tz)) if status: return (yy, mm, dd, hh, mn, ss, tz) else:
from ctypes import byref, c_int
def as_string(self): "Retrieve the Field's value as a string." if not self.is_set: return None string = capi.get_field_as_string(self._feat.ptr, self._index) return force_str(string, encoding=self._feat.encoding, strings_only=True)