PostGIS  2.2.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 238 of file gserialized_estimate.c.

References text2cstring().

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

239 {
240  int mode = 2;
241  char *modestr = text2cstring(txt);
242  if ( modestr[0] == 'N' )
243  mode = 0;
244  pfree(modestr);
245  return mode;
246 }
char * text2cstring(const text *textptr)
Here is the call graph for this function:
Here is the caller graph for this function: