PostGIS  2.2.7dev-r@@SVN_REVISION@@
static int guc_name_compare ( const char *  namea,
const char *  nameb 
)
static

Definition at line 114 of file lwgeom_backend_api.c.

Referenced by guc_var_compare().

115 {
116  /*
117  * The temptation to use strcasecmp() here must be resisted, because the
118  * array ordering has to remain stable across setlocale() calls. So, build
119  * our own with a simple ASCII-only downcasing.
120  */
121  while (*namea && *nameb)
122  {
123  char cha = *namea++;
124  char chb = *nameb++;
125 
126  if (cha >= 'A' && cha <= 'Z')
127  cha += 'a' - 'A';
128  if (chb >= 'A' && chb <= 'Z')
129  chb += 'a' - 'A';
130  if (cha != chb)
131  return cha - chb;
132  }
133  if (*namea)
134  return 1; /* a is longer */
135  if (*nameb)
136  return -1; /* b is longer */
137  return 0;
138 }

Here is the caller graph for this function: