StorageUnicodeFunctions Namespace Reference


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


Function Documentation

int StorageUnicodeFunctions::RegisterFunctions ( sqlite3 aDB  ) 

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]

Parameters:
aDB The database we'll be registering the functions with.
Returns:
the sqlite status code.
Registers the functions with sqlite.

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.

Todo:
Having <contextcontainer> in the factory means that the item can be used by a user in a document. Not optimal, as it is not a legal XForms tag, but only a pseudo-element. But nsXFormsRepeat/SelectElement needs to be able to create the tag, so is there a "backdoor way" to do that? (XXX)
For example, resolving "../../foo/./bar/../baz.html" w.r.t. "/a/b/c/d/e/" yields "/a/b/c/foo/baz.html". Attempting to ascend above the base results in the NS_ERROR_MALFORMED_URI exception. If basePath is null, it treats it as "/".

Parameters:
relativePath a relative URI
basePath a base URI
Returns:
a new string, representing canonical uri
Parameters:
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).
Returns:
NS_ERROR_FILE_ACCESS_DENIED to indicate that the profile directory cannot be unlocked.
Exceptions:
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.
This function appends data to the existing value of aStr.

Parameters:
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)
Returns:
NS_OK if function succeeded
This function does not necessarily null-terminate aStr upon completion. The behavior depends on the implementation of the abstract string, aStr. If aStr is a reference to a nsStringContainer, then its data will be null- terminated by this function.

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).

See also:
NS_ProxyRelease(nsIEventTarget*, nsISupports*, PRBool)
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.

Parameters:
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)
Returns:
NS_OK if function succeeded
This function does not necessarily null-terminate aStr upon completion. The behavior depends on the implementation of the abstract string, aStr. If aStr is a reference to a nsStringContainer, then its data will be null- terminated by this function.

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.

Parameters:
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.


Variable Documentation


Generated Mozilla by doxygen 1.5.6