local function _instantiate(class, ...)
local inst = setmetatable({}, {__index = class})
local function _instantiate(class, ...)
local inst = setmetatable({}, {__index = class})
--- Create a Class object (Python-style object model).
-- The class object can be instantiated by calling itself.
--- Create a Class object (Python-style object model).
-- The class object can be instantiated by calling itself.
--- Test whether the given object is an instance of the given class.
-- @param object Object instance
--- Test whether the given object is an instance of the given class.
-- @param object Object instance
function instanceof(object, class)
local meta = getmetatable(object)
while meta and meta.__index do
function instanceof(object, class)
local meta = getmetatable(object)
while meta and meta.__index do
--- Create valid XML PCDATA from given string.
-- @param value String value containing the data to escape
-- @return String value containing the escaped data
--- Create valid XML PCDATA from given string.
-- @param value String value containing the data to escape
-- @return String value containing the escaped data
--- Remove leading and trailing whitespace from given string value.
-- @param str String value containing whitespace padded data
-- @return String value with leading and trailing space removed
--- Remove leading and trailing whitespace from given string value.
-- @param str String value containing whitespace padded data
-- @return String value with leading and trailing space removed