strglob method

int strglob(
  1. String zGlob,
  2. String zStr
)
inherited

Implementation

int strglob(String zGlob, String zStr) {
  if (libVersionNumber < 3007017) {
    throw dbsql.DatabaseException('API sqlite3_strglob is not available before 3.7.17');
  }
  final zGlobMeta = zGlob._metaNativeUtf8();
  final ptrZGlob = zGlobMeta.ptr;
  final zStrMeta = zStr._metaNativeUtf8();
  final ptrZStr = zStrMeta.ptr;
  try {
    return _h_sqlite3_strglob!(ptrZGlob, ptrZStr);
  } finally {
    pkgffi.malloc.free(ptrZGlob);
    pkgffi.malloc.free(ptrZStr);
  }
}