PostGIS  2.5.0dev-r@@SVN_REVISION@@
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  if (VARSIZE(txt) - VARHDRSZ <= 0)
311  return mode;
312  char *modestr = (char*)VARDATA(txt);
313  if ( modestr[0] == 'N' )
314  mode = 0;
315  return mode;
316 }

Here is the caller graph for this function: