'''void %s(const wxString& text) {
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
- SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
+ SendMsg(%s, buf.length()-1, (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()-1, (sptr_t)(const char*)buf);''',
0),
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
const wxColour& background) {
SendMsg(%s, markerNumber, markerSymbol);
- if (foreground.Ok())
+ if (foreground.IsOk())
MarkerSetForeground(markerNumber, foreground);
- if (background.Ok())
+ if (background.IsOk())
MarkerSetBackground(markerNumber, background);''',
('Set the symbol used for a particular marker number,',
'''
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()-1, (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()-1, (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()-1, (sptr_t)(const char*)buf);''',
0),
# not sure what to do about these yet