public string GetOperator(OperatorIndex index) { var result = migemo_get_operator(_migemoObject, index); if (result != IntPtr.Zero) return Marshal.PtrToStringAnsi(result); return ""; }
public string GetOperator(OperatorIndex index) { var result = migemo_get_operator(_migemoObject, index); if (result != IntPtr.Zero) { return(Marshal.PtrToStringAnsi(result)); } return(""); }
public bool SetOperator(OperatorIndex index, string op) { return migemo_set_operator(_migemoObject, index, op) != 0; }
private static extern IntPtr migemo_get_operator(IntPtr obj, OperatorIndex index);
private static extern int migemo_set_operator(IntPtr obj, OperatorIndex index, string op);
public bool SetOperator(OperatorIndex index, string op) { return(migemo_set_operator(this.migemoObject, index, op) != 0); }
private static extern int MigemoSetOperator(IntPtr migemoObj, OperatorIndex opIndex, [In] string opString);