PostGIS  3.4.0dev-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 318 of file gserialized_estimate.c.

319 {
320  int mode = 2;
321  char *modestr;
322  if (VARSIZE_ANY_EXHDR(txt) <= 0)
323  return mode;
324  modestr = (char*)VARDATA(txt);
325  if ( modestr[0] == 'N' )
326  mode = 0;
327  return mode;
328 }

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

Here is the caller graph for this function: