PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 301 of file gserialized_estimate.c.

302{
303 int mode = 2;
304 char *modestr;
305 if (VARSIZE_ANY_EXHDR(txt) <= 0)
306 return mode;
307 modestr = (char*)VARDATA(txt);
308 if ( modestr[0] == 'N' )
309 mode = 0;
310 return mode;
311}

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

Here is the caller graph for this function: