private static int GetStandardString(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 2);
            RichText richText       = (RichText)ToLua.CheckObject(L, 1, typeof(RichText));
            string   str            = ToLua.CheckString(L, 2);
            RichText standardString = richText.GetStandardString(str);
            ToLua.Push(L, standardString);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }