PostGIS  3.0.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 312 of file gserialized_estimate.c.

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

313 {
314  int mode = 2;
315  char *modestr;
316  if (VARSIZE(txt) - VARHDRSZ <= 0)
317  return mode;
318  modestr = (char*)VARDATA(txt);
319  if ( modestr[0] == 'N' )
320  mode = 0;
321  return mode;
322 }
Here is the caller graph for this function: