Lines Matching refs:pszString
117 static void IgnoreWhitespace(char **pszString) in IgnoreWhitespace() argument
119 while( *pszString[0] == '\t' || in IgnoreWhitespace()
120 *pszString[0] == '\n' || in IgnoreWhitespace()
121 *pszString[0] == '\r' || in IgnoreWhitespace()
122 *pszString[0] == ' ' ) in IgnoreWhitespace()
124 (*pszString)++; in IgnoreWhitespace()
161 char *pszString = (char *)pszArgumentString; in GetSemanticDataFromString() local
164 IgnoreWhitespace(&pszString); in GetSemanticDataFromString()
166 if(pszString[0] != '(') in GetSemanticDataFromString()
171 pszString++; in GetSemanticDataFromString()
173 IgnoreWhitespace(&pszString); in GetSemanticDataFromString()
175 if(!strlen(pszString)) in GetSemanticDataFromString()
181 pszTmp = pszString; in GetSemanticDataFromString()
185 pDataItem->pfData[0] = (float)strtod(pszString, &pszTmp); in GetSemanticDataFromString()
188 pDataItem->pnData[0] = (int)strtol(pszString, &pszTmp, 10); in GetSemanticDataFromString()
191 if(strncmp(pszString, "true", 4) == 0) in GetSemanticDataFromString()
194 pszTmp = &pszString[4]; in GetSemanticDataFromString()
196 else if(strncmp(pszString, "false", 5) == 0) in GetSemanticDataFromString()
199 pszTmp = &pszString[5]; in GetSemanticDataFromString()
204 if(pszString == pszTmp) in GetSemanticDataFromString()
206 size_t n = strcspn(pszString, ",\t "); in GetSemanticDataFromString()
209 strncat(pszError, pszString, n); in GetSemanticDataFromString()
214 pszString = pszTmp; in GetSemanticDataFromString()
216 IgnoreWhitespace(&pszString); in GetSemanticDataFromString()
220 if(!strlen(pszString)) in GetSemanticDataFromString()
226 if(pszString[0] != ',') in GetSemanticDataFromString()
228 size_t n = strcspn(pszString, ",\t "); in GetSemanticDataFromString()
231 strncat(pszError, pszString, n); in GetSemanticDataFromString()
236 pszString++; in GetSemanticDataFromString()
238 IgnoreWhitespace(&pszString); in GetSemanticDataFromString()
240 if(!strlen(pszString)) in GetSemanticDataFromString()
246 pszTmp = pszString; in GetSemanticDataFromString()
250 pDataItem->pfData[i] = (float)strtod(pszString, &pszTmp); in GetSemanticDataFromString()
253 pDataItem->pnData[i] = (int)strtol(pszString, &pszTmp, 10); in GetSemanticDataFromString()
256 if(strncmp(pszString, "true", 4) == 0) in GetSemanticDataFromString()
259 pszTmp = &pszString[4]; in GetSemanticDataFromString()
261 else if(strncmp(pszString, "false", 5) == 0) in GetSemanticDataFromString()
264 pszTmp = &pszString[5]; in GetSemanticDataFromString()
269 if(pszString == pszTmp) in GetSemanticDataFromString()
271 size_t n = strcspn(pszString, ",\t "); in GetSemanticDataFromString()
274 strncat(pszError, pszString, n); in GetSemanticDataFromString()
279 pszString = pszTmp; in GetSemanticDataFromString()
281 IgnoreWhitespace(&pszString); in GetSemanticDataFromString()
284 if(pszString[0] != ')') in GetSemanticDataFromString()
286 size_t n = strcspn(pszString, "\t )"); in GetSemanticDataFromString()
289 strncat(pszError, pszString, n); in GetSemanticDataFromString()
294 pszString++; in GetSemanticDataFromString()
296 IgnoreWhitespace(&pszString); in GetSemanticDataFromString()
298 if(strlen(pszString)) in GetSemanticDataFromString()
300 *pError = CPVRTString("'") + pszString + "' unexpected after ')'"; in GetSemanticDataFromString()
2343 char pszString[2048]; in ParseSemantic() local
2344 strcpy(pszString,""); in ParseSemantic()
2351 strcat(pszString, str); in ParseSemantic()
2352 strcat(pszString, " "); in ParseSemantic()
2360 …if(strncmp(pszString, c_psSemanticDefaultDataTypeInfo[i].pszName, strlen(c_psSemanticDefaultDataTy… in ParseSemantic()
2363 &pszString[strlen(c_psSemanticDefaultDataTypeInfo[i].pszName)], in ParseSemantic()
2383 …*pReturnError = PVRTStringFromFormattedStr("'%s' unknown on line %d.\n", pszString, m_psContext->p… in ParseSemantic()