PostGIS  2.5.2dev-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 313 of file gserialized_estimate.c.

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

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