PostGIS 3.6.2dev-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 246 of file gserialized_estimate.c.

247{
248 int mode = 2;
249 char *modestr;
250 if (VARSIZE_ANY_EXHDR(txt) <= 0)
251 return mode;
252 modestr = (char *)VARDATA(txt);
253 if (modestr[0] == 'N')
254 mode = 0;
255 return mode;
256}

Referenced by _postgis_gserialized_sel(), and _postgis_gserialized_stats().

Here is the caller graph for this function: