summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c64c9cd)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42605
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
enum wxRichTextOddEvenPage {
wxRICHTEXT_PAGE_ODD,
wxRICHTEXT_PAGE_EVEN,
enum wxRichTextOddEvenPage {
wxRICHTEXT_PAGE_ODD,
wxRICHTEXT_PAGE_EVEN,
};
// Header/footer text locations
};
// Header/footer text locations
-wxDEFINE_SCOPED_PTR_TYPE(wxTarHeaderBlock);
+wxDEFINE_SCOPED_PTR_TYPE(wxTarHeaderBlock)
// A table giving the field names and offsets in a tar header block
const wxTarField wxTarHeaderBlock::fields[] =
// A table giving the field names and offsets in a tar header block
const wxTarField wxTarHeaderBlock::fields[] =
// converts Expat-produced string in UTF-8 into wxString using the specified
// conv or keep in UTF-8 if conv is NULL
static wxString CharToString(wxMBConv *conv,
// converts Expat-produced string in UTF-8 into wxString using the specified
// conv or keep in UTF-8 if conv is NULL
static wxString CharToString(wxMBConv *conv,
- const char *s, size_t len = wxSTRING_MAXLEN)
+ const char *s, size_t len = wxString::npos)
{
#if wxUSE_UNICODE
wxUnusedVar(conv);
{
#if wxUSE_UNICODE
wxUnusedVar(conv);
// there can be no embedded NULs in this string so we don't need the
// output length, it will be NUL-terminated
const wxWCharBuffer wbuf(
// there can be no embedded NULs in this string so we don't need the
// output length, it will be NUL-terminated
const wxWCharBuffer wbuf(
- wxConvUTF8.cMB2WC(s, len == wxSTRING_MAXLEN ? wxNO_LEN : len, NULL));
+ wxConvUTF8.cMB2WC(s, len == wxString::npos ? wxNO_LEN : len, NULL));
return wxString(wbuf, *conv);
}
else // already in UTF-8, no conversion needed
{
return wxString(wbuf, *conv);
}
else // already in UTF-8, no conversion needed
{
- return wxString(s, len != wxSTRING_MAXLEN ? len : strlen(s));
+ return wxString(s, len != wxString::npos ? len : strlen(s));
}
#endif // wxUSE_UNICODE/!wxUSE_UNICODE
}
}
#endif // wxUSE_UNICODE/!wxUSE_UNICODE
}