PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ yytnamerr()

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

Definition at line 1177 of file lwin_wkt_parse.c.

1178 {
1179  if (*yystr == '"')
1180  {
1181  YYSIZE_T yyn = 0;
1182  char const *yyp = yystr;
1183 
1184  for (;;)
1185  switch (*++yyp)
1186  {
1187  case '\'':
1188  case ',':
1189  goto do_not_strip_quotes;
1190 
1191  case '\\':
1192  if (*++yyp != '\\')
1193  goto do_not_strip_quotes;
1194  /* Fall through. */
1195  default:
1196  if (yyres)
1197  yyres[yyn] = *yyp;
1198  yyn++;
1199  break;
1200 
1201  case '"':
1202  if (yyres)
1203  yyres[yyn] = '\0';
1204  return yyn;
1205  }
1206  do_not_strip_quotes: ;
1207  }
1208 
1209  if (! yyres)
1210  return yystrlen (yystr);
1211 
1212  return yystpcpy (yyres, yystr) - yyres;
1213 }
static char * yystpcpy(char *yydest, const char *yysrc)
#define YYSIZE_T
static YYSIZE_T yystrlen(const char *yystr)

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

Referenced by yysyntax_error().

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