I'm trying to find out what's the way to do a search from my xcode app to a BBDD in SQlite discarding the text punctuation.
Any comments are appreciated.
Thanks!
EDIT:
In the documentation of SQLite I have found this out:
int sqlite3_create_collation(
sqlite3*,
const char *zName,
int eTextRep,
void *pArg,
int(*xCompare)(void*,int,const void*,int,const void*)
);
int
and this from xcode:
sqlite3_create_collation(sqlite3 *, const char *zName, int eTextRep, <void *pArg, int (*xCompare)(void *, int, const void *, int, const void *));
But I don't know how to implement this collation from the xcode to get something like this working:
SELECT * FROM users WHERE name LIKE "más" COLLATE NOACCENTS
Can someone give me a helping hand?
Thanks