PostGIS  2.4.9dev-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 272 of file gserialized_estimate.c.

References text2cstring().

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

273 {
274  int mode = 2;
275  char *modestr = text2cstring(txt);
276  if ( modestr[0] == 'N' )
277  mode = 0;
278  pfree(modestr);
279  return mode;
280 }
char * text2cstring(const text *textptr)
Here is the call graph for this function:
Here is the caller graph for this function: