PostGIS  2.5.0beta1dev-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 307 of file gserialized_estimate.c.

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

308 {
309  int mode = 2;
310  char *modestr;
311  if (VARSIZE(txt) - VARHDRSZ <= 0)
312  return mode;
313  modestr = (char*)VARDATA(txt);
314  if ( modestr[0] == 'N' )
315  mode = 0;
316  return mode;
317 }
Here is the caller graph for this function: