Hello, I need to export to squirrel a find function that has a start parameter.
typedef size_t (wxString::*WXSTR_FIND)(const wxStringBase& str, size_t nStart) const;
SqPlus::SQClassDef<wxString>("wxString").
emptyCtor().
staticFuncVarArgs(&wxString_OpAdd, "_add", "*").
staticFuncVarArgs(&wxString_OpCmp, "_cmp", "*").
staticFuncVarArgs(&wxString_OpToString, "_tostring", "").
func<WXSTR_FIRST_STR>(&wxString::First, "Find").
staticFuncVarArgs(&wxString_Matches, "Matches", "*").
staticFuncVarArgs(&wxString_AddChar, "AddChar", "n").
staticFuncVarArgs(&wxString_GetChar, "GetChar", "n").
func(&wxString::IsEmpty, "IsEmpty").
func(&wxString::Length, "Length").
func(&wxString::Length, "length").
func(&wxString::Length, "len").
func(&wxString::Length, "size").
func(&wxString::Lower, "Lower").
func(&wxString::LowerCase, "LowerCase").
func(&wxString::MakeLower, "MakeLower").
func(&wxString::Upper, "Upper").
func(&wxString::UpperCase, "UpperCase").
func(&wxString::MakeUpper, "MakeUpper").
func(&wxString::Mid, "Mid").
func<WXSTR_REMOVE_2>(&wxString::Remove, "Remove").
func(&wxString::RemoveLast, "RemoveLast").
staticFuncVarArgs(&wxString_Replace, "Replace", "*").
func(&wxString::Right, "Right").
staticFuncVarArgs(&wxString_AfterFirst, "AfterFirst", "*").
staticFuncVarArgs(&wxString_AfterLast, "AfterLast", "*").
staticFuncVarArgs(&wxString_BeforeFirst, "BeforeFirst", "*").
staticFuncVarArgs(&wxString_BeforeLast, "BeforeLast", "*").
func<WXSTR_FIND>(&wxString::find, "FindIndex");
I suppose the problem is that this function is wxStringBase method and take wxStringBase as the first parameter, which is not know to the bindings.