/* The name can optionally begin with "SQLITE_" but the "SQLITE_" prefix is not required for a match.  */
SQLITE_API int sqlite3_compileoption_used(const char *zOptName)
/* The name can optionally begin with "SQLITE_" but the "SQLITE_" prefix is not required for a match.  */
SQLITE_API int sqlite3_compileoption_used(const char *zOptName)
{
  int i, n;
  if( sqlite3StrNICmp(zOptName, "SQLITE_", 7)==0 ) zOptName += 7;
  n = sqlite3Strlen30(zOptName);
  for(i=0; i<ArraySize(azCompileOpt); i++){
    if( sqlite3StrNICmp(zOptName, azCompileOpt[i], n)==0
     && sqlite3CtypeMap[(unsigned char)azCompileOpt[i][n]]==0
    ){
      return 1;
    }
  }
  return 0;
}