PostGIS  3.7.0dev-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 315 of file gserialized_estimate.c.

316 {
317  int mode = 2;
318  char *modestr;
319  if (VARSIZE_ANY_EXHDR(txt) <= 0)
320  return mode;
321  modestr = (char*)VARDATA(txt);
322  if ( modestr[0] == 'N' )
323  mode = 0;
324  return mode;
325 }

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

Here is the caller graph for this function: