示例#1
0
        public static int XmlAutomataSetFinalState(global::libxml.XmlAutomata am, global::libxml.XmlAutomataState state)
        {
            var __arg0 = ReferenceEquals(am, null) ? global::System.IntPtr.Zero : am.__Instance;
            var __arg1 = ReferenceEquals(state, null) ? global::System.IntPtr.Zero : state.__Instance;
            var __ret  = __Internal.XmlAutomataSetFinalState(__arg0, __arg1);

            return(__ret);
        }
示例#2
0
        public static global::libxml.XmlAutomataState XmlAutomataNewCounterTrans(global::libxml.XmlAutomata am, global::libxml.XmlAutomataState from, global::libxml.XmlAutomataState to, int counter)
        {
            var __arg0 = ReferenceEquals(am, null) ? global::System.IntPtr.Zero : am.__Instance;
            var __arg1 = ReferenceEquals(from, null) ? global::System.IntPtr.Zero : from.__Instance;
            var __arg2 = ReferenceEquals(to, null) ? global::System.IntPtr.Zero : to.__Instance;
            var __ret  = __Internal.XmlAutomataNewCounterTrans(__arg0, __arg1, __arg2, counter);

            global::libxml.XmlAutomataState __result0;
            if (__ret == IntPtr.Zero)
            {
                __result0 = null;
            }
            else if (global::libxml.XmlAutomataState.NativeToManagedMap.ContainsKey(__ret))
            {
                __result0 = (global::libxml.XmlAutomataState)global::libxml.XmlAutomataState.NativeToManagedMap[__ret];
            }
            else
            {
                __result0 = global::libxml.XmlAutomataState.__CreateInstance(__ret);
            }
            return(__result0);
        }