lite4cordova/Cordova-SQLitePlugin — pull request #32 by gulian (2014-01-29 17:12:47+00:00)
Title: Declare REGEXP function for iOS plugin

This function is available on Android but not on iOS. The documentation says :

> The REGEXP operator is a special syntax for the regexp() user function. No regexp() user function is defined by default and so use of the REGEXP operator will normally result in an error message. If an application-defined SQL function named "regexp" is added at run-time, then the "X REGEXP Y" operator will be implemented as a call to "regexp(Y,X)".

So this code declare `sqlite_regexp` function (line 134) and associate it to the SQLite one (line 218) : ` sqlite3_create_function(db, "regexp", 2, SQLITE_ANY, NULL, &sqlite_regexp, NULL, NULL);`