InitPlugin
plugin = utils.InitPlugin()
Parameters:
none
Returns:
plugin: table
Description:
The function does the following:
-- redirects indexing of strings to unicode.utf8 table, so that e.g.
str:len() ends up with unicode.utf8.len(str) instead of string.len(str).
-- adds function unicode.utf8.cfind.
-- sets up export.OnError function.
-- returns a table with ModuleDir field set to plugin's directory.