PostGIS 3.7.0dev-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 242 of file gserialized_estimate.c.

243{
244 int mode = 2;
245 char *modestr;
246 if (VARSIZE_ANY_EXHDR(txt) <= 0)
247 return mode;
248 modestr = (char *)VARDATA(txt);
249 if (modestr[0] == 'N')
250 mode = 0;
251 return mode;
252}

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

Here is the caller graph for this function: