PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ yytnamerr()

static YYPTRDIFF_T yytnamerr ( char *  yyres,
const char *  yystr 
)
static

Definition at line 1326 of file lwin_wkt_parse.c.

1327{
1328 if (*yystr == '"')
1329 {
1330 YYPTRDIFF_T yyn = 0;
1331 char const *yyp = yystr;
1332 for (;;)
1333 switch (*++yyp)
1334 {
1335 case '\'':
1336 case ',':
1337 goto do_not_strip_quotes;
1338
1339 case '\\':
1340 if (*++yyp != '\\')
1341 goto do_not_strip_quotes;
1342 else
1343 goto append;
1344
1345 append:
1346 default:
1347 if (yyres)
1348 yyres[yyn] = *yyp;
1349 yyn++;
1350 break;
1351
1352 case '"':
1353 if (yyres)
1354 yyres[yyn] = '\0';
1355 return yyn;
1356 }
1357 do_not_strip_quotes: ;
1358 }
1359
1360 if (yyres)
1361 return yystpcpy (yyres, yystr) - yyres;
1362 else
1363 return yystrlen (yystr);
1364}
static YYPTRDIFF_T yystrlen(const char *yystr)
#define YYPTRDIFF_T
static char * yystpcpy(char *yydest, const char *yysrc)

References YYPTRDIFF_T, yystpcpy(), and yystrlen().

Referenced by yysyntax_error().

Here is the call graph for this function:
Here is the caller graph for this function: