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");
Index: src/sdk/scripting/bindings/sc_wxtypes.cpp
===================================================================
--- src/sdk/scripting/bindings/sc_wxtypes.cpp (revision 5668)
+++ src/sdk/scripting/bindings/sc_wxtypes.cpp (working copy)
@@ -305,6 +305,7 @@
typedef int(wxString::*WXSTR_FIRST_STR)(const wxString&)const;
typedef wxString&(wxString::*WXSTR_REMOVE_2)(size_t pos, size_t len);
+ typedef size_t (wxString::*WXSTR_FIND)(const wxString& str, size_t nStart)const;
SqPlus::SQClassDef<wxString>("wxString").
emptyCtor().
@@ -328,6 +329,7 @@
func(&wxString::MakeUpper, "MakeUpper").
func(&wxString::Mid, "Mid").
func<WXSTR_REMOVE_2>(&wxString::Remove, "Remove").
+ func<WXSTR_FIRST_STR>(&wxString::First, "Find").
func(&wxString::RemoveLast, "RemoveLast").
staticFuncVarArgs(&wxString_Replace, "Replace", "*").
func(&wxString::Right, "Right").
Hello, I need to export to squirrel a find function that has a start parameter.Did you read this:
Is there any way to move a post to another topic (other than manually re-posting it)?Post it there again and give me a note. Then I'll remove the posts in this thread.