'''void %s(const wxString& text) {
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
- SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
+ SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
0),
'AddStyledText' : (0,
'''void %s(const wxString& text) {
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
- SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
+ SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
0),
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
'''
int %s(const wxString& text) {
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
- return SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
+ return SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
0),
'ReplaceTargetRE' :
'''
int %s(const wxString& text) {
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
- return SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
+ return SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
0),
'SearchInTarget' :
'''
int %s(const wxString& text) {
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
- return SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
+ return SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
0),
# not sure what to do about these yet