Functions | |
| int | RegisterFunctions (sqlite3 *aDB) |
| void | caseFunction (sqlite3_context *p, int aArgc, sqlite3_value **aArgv) |
| void | likeFunction (sqlite3_context *p, int aArgc, sqlite3_value **aArgv) |
| This implements the like() SQL function. | |
| NS_HIDDEN_ (int) RegisterFunctions(sqlite3 *aDB) | |
| Registers the functions with sqlite. | |
| NS_HIDDEN_ (void) caseFunction(sqlite3_context *p | |
| Does the upper and lowercase conversions for the SQL functions upper() and lower(). | |
Variables | |
| int | aArgc |
| int sqlite3_value ** | aArgv |
| void StorageUnicodeFunctions::caseFunction | ( | sqlite3_context * | p, | |
| int | aArgc, | |||
| sqlite3_value ** | aArgv | |||
| ) |
| void StorageUnicodeFunctions::likeFunction | ( | sqlite3_context * | p, | |
| int | aArgc, | |||
| sqlite3_value ** | aArgv | |||
| ) |
This is used by the LIKE operator. The SQL statement 'A LIKE B' is implemented as 'like(B, A)', and if there is an escape character, say E, it is implemented as 'like(B, A, E)'.
| StorageUnicodeFunctions::NS_HIDDEN_ | ( | nsresult | ) | [inline] |
| aDB | The database we'll be registering the functions with. |
NS_CStringAppendData.
Finish the XPCOM glue after it is no longer needed.
Dynamically load functions from libxul.
Try to acquire exclusive access to the specified profile directory.
This routine returns the trash directory corresponding to the given directory.
Extract URI-Scheme if possible.
| relativePath | a relative URI | |
| basePath | a base URI |
| inURI | URI spec | |
| startPos | start of scheme (may be null) | |
| endPos | end of scheme; index of colon (may be null) | |
| scheme | scheme copied to this buffer on return (may be null) | |
| aPath | The profile directory to lock. | |
| aTempPath | The corresponding profile temporary directory. | |
| aUnlocker | A callback interface used to attempt to unlock a profile that appears to be locked. | |
| aResult | The resulting profile lock object (or null if the profile could not be locked). |
| NS_ERROR_NOT_INITIALIZED | if XPCOMGlueStartup() was not called or if the libxul DLL was not found. | |
| NS_ERROR_LOSS_OF_SIGNIFICANT_DATA | if only some of the required functions were found. |
| aStr | abstract string reference to be modified | |
| aData | character buffer | |
| aDataLength | number of characters to append (pass PR_UINT32_MAX to append until a null-character is encountered) |
Registers the functions with sqlite.
Resolves a relative path string containing "." and ".." with respect to a base path (assumed to already be resolved).
The transport event sink will be called on the thread indicated by the given event target. Like events are automatically coalesced. This means that for example if the status value is the same from event to event, and the previous event has not yet been delivered, then only one event will be delivered. The progress reported will be that from the second event. If aCoalesceAllEvents is true, then any undelivered event will be replaced with the next event if it arrives early enough. This option should be used cautiously since it can cause states to be effectively skipped. Coalescing events can help prevent a backlog of unprocessed transport events in the case that the target thread is overworked.
Registers the functions with sqlite.
Resolves a relative path string containing "." and ".." with respect to a base path (assumed to already be resolved).
This routine returns the trash directory corresponding to the given directory.
This later point is only an issue on Windows and a few other systems.
If the moveToTrash parameter is true, then the process for deleting the directory creates a sibling directory of the same name with the ".Trash" suffix. It then attempts to move the given directory into the corresponding trash folder (moving individual files if necessary). Next, it proceeds to delete each file in the trash folder on a low-priority background thread.
If the moveToTrash parameter is false, then the given directory is deleted directly.
If the sync flag is true, then the delete operation runs to completion before this function returns. Otherwise, deletion occurs asynchronously.
Registers the functions with sqlite.
Resolves a relative path string containing "." and ".." with respect to a base path (assumed to already be resolved).
As part of that process, it may exit the current process and relaunch it at a later time.
Two directories are passed to this function: greDir (where the actual binary resides) and appDir (which contains application.ini for XULRunner apps). If this is not a XULRunner app then appDir is identical to greDir.
The argc and argv passed to this function should be what is needed to relaunch the current process.
This function does not modify appDir.
Registers the functions with sqlite.
Resolves a relative path string containing "." and ".." with respect to a base path (assumed to already be resolved).
Registers the functions with sqlite.
Resolves a relative path string containing "." and ".." with respect to a base path (assumed to already be resolved).
NS_CStringAppendData.
This function appends data to the existing value of aStr.
| aStr | abstract string reference to be modified | |
| aData | character buffer | |
| aDataLength | number of characters to append (pass PR_UINT32_MAX to append until a null-character is encountered) |
| StorageUnicodeFunctions::NS_HIDDEN_ | ( | void | ) | [inline] |
Trim whitespace from the beginning and end of a string; then compress remaining runs of whitespace characters to a single space.
Parses a content-type header and returns the content type and charset (if any).
Performs the LIKE comparison in sqlite.
| p | The sqlite_context that this function is being called on. | |
| aArgc | The number of arguments the function is being called with. | |
| aArgv | An array of the arguments the functions is being called with. |
1.5.6