PostGIS  2.1.10dev-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 237 of file gserialized_estimate.c.

References text2cstring().

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

238 {
239  int mode = 2;
240  char *modestr = text2cstring(txt);
241  if ( modestr[0] == 'N' )
242  mode = 0;
243  pfree(modestr);
244  return mode;
245 }
char * text2cstring(const text *textptr)

Here is the call graph for this function:

Here is the caller graph for this function: