PostGIS  2.3.8dev-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 262 of file gserialized_estimate.c.

References text2cstring().

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

263 {
264  int mode = 2;
265  char *modestr = text2cstring(txt);
266  if ( modestr[0] == 'N' )
267  mode = 0;
268  pfree(modestr);
269  return mode;
270 }
char * text2cstring(const text *textptr)
Here is the call graph for this function:
Here is the caller graph for this function: