コード例 #1
0
 // Token: 0x06003D67 RID: 15719 RVA: 0x00114F6C File Offset: 0x0011316C
 public static int IsValidName(this string Name, IConfigDataLoader ConfigDataLoader)
 {
     if (string.IsNullOrEmpty(Name))
     {
         return(-9);
     }
     if (!StringCheck.IsStringLegal(Name))
     {
         return(-7);
     }
     if (ConfigDataLoader != null && ConfigDataLoader.UtilityGetSensitiveWords().IsSensitiveWord(Name))
     {
         return(-7);
     }
     return(0);
 }
コード例 #2
0
    public static int IsStringLegal_s(IntPtr l)
    {
        int result;

        try
        {
            string checkingString;
            LuaObject.checkType(l, 1, out checkingString);
            bool b = StringCheck.IsStringLegal(checkingString);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }