src/module.cxx
static int luno_absolutize(lua_State *L)
{
    const OUString aBaseURL = luno_luatooustring(L, 1);
    const OUString aRelURL = luno_luatooustring(L, 2);
    OUString aAbsURL;
    osl::FileBase::RC e = osl::FileBase::getAbsoluteFileURL(aBaseURL, aRelURL, aAbsURL);
    if (e != osl::FileBase::E_None)
        luaL_error(L, "Illegal URL passed.");
    luno_pushoustring(L, aAbsURL);
    return 1;
}
/** Create absolute URL from base URL and relative path.
 * 
 */
Create absolute URL from base URL and relative path.
Create absolute URL from base URL and relative path .
static int luno_absolutize(lua_State *L)
{
    const OUString aBaseURL = luno_luatooustring(L, 1);
    const OUString aRelURL = luno_luatooustring(L, 2);
    OUString aAbsURL;
    osl::FileBase::RC e = osl::FileBase::getAbsoluteFileURL(aBaseURL, aRelURL, aAbsURL);
    if (e != osl::FileBase::E_None)
        luaL_error(L, "Illegal URL passed.");
    luno_pushoustring(L, aAbsURL);
    return 1;
}
static int luno_absolutize ( lua_State * L ) { const OUString aBaseURL = luno_luatooustring ( L , 1 ) ; const OUString aRelURL = luno_luatooustring ( L , 2 ) ; OUString aAbsURL ; osl :: FileBase :: RC e = osl :: FileBase :: getAbsoluteFileURL ( aBaseURL , aRelURL , aAbsURL ) ; if ( e != osl :: FileBase :: E_None ) luaL_error ( L , " " ) ; luno_pushoustring ( L , aAbsURL ) ; return 1 ; }
Create absolute URL from base URL and relative path.
Create absolute URL from base URL and relative path .