stricmp method

int stricmp(
  1. String arg1,
  2. String arg2
)
inherited

Implementation

int stricmp(String arg1, String arg2) {
  if (libVersionNumber < 3007011) {
    throw dbsql.DatabaseException('API sqlite3_stricmp is not available before 3.7.11');
  }
  final arg1Meta = arg1._metaNativeUtf8();
  final ptrArg1 = arg1Meta.ptr;
  final arg2Meta = arg2._metaNativeUtf8();
  final ptrArg2 = arg2Meta.ptr;
  try {
    return _h_sqlite3_stricmp!(ptrArg1, ptrArg2);
  } finally {
    pkgffi.malloc.free(ptrArg1);
    pkgffi.malloc.free(ptrArg2);
  }
}