ensure


Description:

public static Handle ensure (HandleRepoIface self, string id, void* context) throws Error

Return a handle for the given string, creating one if necessary.

The string is normalized, if possible.

Parameters:

self

A handle repository implementation

id

A string whose handle is required

context

User data to be passed to the normalization callback

Returns:

the handle corresponding to the given string, or 0 if it is invalid.