Validate() protected method

Validate the specified input.
protected Validate ( string text, int pos, char ch ) : char
text string
pos int
ch char
return char
    private static int Validate(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIInput uIInput   = (UIInput)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIInput");
        string  luaString = LuaScriptMgr.GetLuaString(L, 2);
        string  str       = uIInput.Validate(luaString);

        LuaScriptMgr.Push(L, str);
        return(1);
    }
Beispiel #2
0
    static int Validate(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIInput obj  = (UIInput)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIInput");
        string  arg0 = LuaScriptMgr.GetLuaString(L, 2);
        string  o    = obj.Validate(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Beispiel #3
0
 static public int Validate(IntPtr l)
 {
     try {
         UIInput       self = (UIInput)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         var ret = self.Validate(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #4
0
 static int Validate(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIInput obj  = (UIInput)ToLua.CheckObject(L, 1, typeof(UIInput));
         string  arg0 = ToLua.CheckString(L, 2);
         string  o    = obj.Validate(arg0);
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #5
0
    private static int Validate(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 2);
            UIInput uIInput = (UIInput)ToLua.CheckObject(L, 1, typeof(UIInput));
            string  val     = ToLua.CheckString(L, 2);
            string  str     = uIInput.Validate(val);
            LuaDLL.lua_pushstring(L, str);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
    public static int Validate(IntPtr l)
    {
        int result;

        try
        {
            UIInput uIInput = (UIInput)LuaObject.checkSelf(l);
            string  val;
            LuaObject.checkType(l, 2, out val);
            string s = uIInput.Validate(val);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, s);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Beispiel #7
0
        static int _m_Validate(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UIInput __cl_gen_to_be_invoked = (UIInput)translator.FastGetCSObj(L, 1);


            try {
                {
                    string val = LuaAPI.lua_tostring(L, 2);

                    string __cl_gen_ret = __cl_gen_to_be_invoked.Validate(val);
                    LuaAPI.lua_pushstring(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }