Definition at line 1008 of file dbfopen.c.
1011{
1012 unsigned char *pabyRec;
1014
1015
1016
1017
1018 if( hEntity < 0 || hEntity >= psDBF->
nRecords )
1020
1021 if( iField < 0 || iField >= psDBF->
nFields )
1023
1024
1025
1026
1029
1031
1032
1033
1034
1036 {
1040 else
1043 }
1044
1045
1046
1047
1052
1054
1055
1056
1057
1058 if( chReqType == 'I' )
1059 {
1061
1063 }
1064 else if( chReqType == 'N' )
1065 {
1067
1069 }
1070
1071
1072
1073
1074#ifdef TRIM_DBF_WHITESPACE
1075 else
1076 {
1077 char *pchSrc, *pchDst;
1078
1080 while( *pchSrc == ' ' )
1081 pchSrc++;
1082
1083 while( *pchSrc != '\0' )
1084 *(pchDst++) = *(pchSrc++);
1085 *pchDst = '\0';
1086
1087 while( pchDst != psDBF->
pszWorkField && *(--pchDst) ==
' ' )
1088 *pchDst = '\0';
1089 }
1090#endif
1091
1092 return pReturnField;
1093}
static int DBFLoadRecord(DBFHandle psDBF, int iRecord)
#define STATIC_CAST(type, x)
#define REINTERPRET_CAST(type, x)
union DBFInfo::@5 fieldValue
double(* Atof)(const char *str)
References SAHooks::Atof, DBFLoadRecord(), DBFInfo::dfDoubleField, DBFInfo::fieldValue, malloc(), DBFInfo::nFields, DBFInfo::nIntField, DBFInfo::nRecords, DBFInfo::nWorkFieldLength, DBFInfo::panFieldOffset, DBFInfo::panFieldSize, DBFInfo::pszCurrentRecord, DBFInfo::pszWorkField, REINTERPRET_CAST, DBFInfo::sHooks, SHPLIB_NULLPTR, and STATIC_CAST.
Referenced by DBFReadDoubleAttribute(), DBFReadIntegerAttribute(), DBFReadLogicalAttribute(), and DBFReadStringAttribute().