コード例 #1
0
ファイル: field.py プロジェクト: ZekriSara/pfe
 def as_int(self, is_64=False):
     "Retrieve the Field's value as an integer."
     if is_64:
         return (capi.get_field_as_integer64(self._feat.ptr, self._index)
                 if self.is_set else None)
     else:
         return (capi.get_field_as_integer(self._feat.ptr, self._index)
                 if self.is_set else None)
コード例 #2
0
ファイル: field.py プロジェクト: diego-d5000/MisValesMd
 def as_int(self):
     "Retrieves the Field's value as an integer."
     return capi.get_field_as_integer(self._feat.ptr, self._index)
コード例 #3
0
ファイル: field.py プロジェクト: 0038lana/Test-Task
 def as_int(self, is_64=False):
     "Retrieves the Field's value as an integer."
     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)
コード例 #4
0
ファイル: field.py プロジェクト: mrojass/Scrap
 def as_int(self):
     "Retrieves the Field's value as an integer."
     return capi.get_field_as_integer(self._feat.ptr, self._index)
コード例 #5
0
ファイル: field.py プロジェクト: Kenstogram/my-first-blog
        "Retrieves the Field's value as a double (float)."
        return capi.get_field_as_double(self._feat.ptr, self._index)

    def as_int(self, is_64=False):
        "Retrieves the Field's value as an integer."
=======
        "Retrieve the Field's value as a double (float)."
        return capi.get_field_as_double(self._feat.ptr, 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."
コード例 #6
0
from ctypes import byref, c_int