strlike method

int strlike(
  1. String zGlob,
  2. String zStr,
  3. int cEsc
)
inherited

Implementation

int strlike(String zGlob, String zStr, int cEsc) {
  if (libVersionNumber < 3010000) {
    throw dbsql.DatabaseException('API sqlite3_strlike is not available before 3.10.0');
  }
  final zGlobMeta = zGlob._metaNativeUtf8();
  final ptrZGlob = zGlobMeta.ptr;
  final zStrMeta = zStr._metaNativeUtf8();
  final ptrZStr = zStrMeta.ptr;
  try {
    return _h_sqlite3_strlike!(ptrZGlob, ptrZStr, cEsc);
  } finally {
    pkgffi.malloc.free(ptrZGlob);
    pkgffi.malloc.free(ptrZStr);
  }
}