PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ text_p_get_mode()

static int text_p_get_mode ( const text *  txt)
static

Utility function to see if the first letter of the mode argument is 'N'.

Used by the postgis* functions.

Definition at line 309 of file gserialized_estimate.c.

310 {
311  int mode = 2;
312  char *modestr;
313  if (VARSIZE(txt) - VARHDRSZ <= 0)
314  return mode;
315  modestr = (char*)VARDATA(txt);
316  if ( modestr[0] == 'N' )
317  mode = 0;
318  return mode;
319 }

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

Here is the caller graph for this function: