Definition at line 1017 of file dbfopen.c.
1020{
1021 unsigned char *pabyRec;
1023
1024
1025
1026
1027 if( hEntity < 0 || hEntity >= psDBF->
nRecords )
1029
1030 if( iField < 0 || iField >= psDBF->
nFields )
1032
1033
1034
1035
1038
1040
1041
1042
1043
1045 {
1049 else
1052 }
1053
1054
1055
1056
1061
1063
1064
1065
1066
1067 if( chReqType == 'I' )
1068 {
1070
1072 }
1073 else if( chReqType == 'N' )
1074 {
1076
1078 }
1079
1080
1081
1082
1083#ifdef TRIM_DBF_WHITESPACE
1084 else
1085 {
1086 char *pchSrc, *pchDst;
1087
1089 while( *pchSrc == ' ' )
1090 pchSrc++;
1091
1092 while( *pchSrc != '\0' )
1093 *(pchDst++) = *(pchSrc++);
1094 *pchDst = '\0';
1095
1096 while( pchDst != psDBF->
pszWorkField && *(--pchDst) ==
' ' )
1097 *pchDst = '\0';
1098 }
1099#endif
1100
1101 return pReturnField;
1102}
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().