projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use C++ compiler for va_copy test, at least under IRIX the C99 C compiler has it...
[wxWidgets.git]
/
src
/
common
/
textbuf.cpp
diff --git
a/src/common/textbuf.cpp
b/src/common/textbuf.cpp
index 1891af5b1be7fe09aed6c5ce43f060f992471632..8c7253e8b666daeb0bc96bb958b1161a35a733ea 100644
(file)
--- a/
src/common/textbuf.cpp
+++ b/
src/common/textbuf.cpp
@@
-132,6
+132,8
@@
wxString wxTextBuffer::Translate(const wxString& text, wxTextFileType type)
#if wxUSE_TEXTBUFFER
#if wxUSE_TEXTBUFFER
+wxString wxTextBuffer::ms_eof;
+
// ----------------------------------------------------------------------------
// ctors & dtor
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ctors & dtor
// ----------------------------------------------------------------------------
@@
-179,14
+181,14
@@
bool wxTextBuffer::Create()
return true;
}
return true;
}
-bool wxTextBuffer::Open(const wxString& strBufferName, wxMBConv& conv)
+bool wxTextBuffer::Open(const wxString& strBufferName,
const
wxMBConv& conv)
{
m_strBufferName = strBufferName;
return Open(conv);
}
{
m_strBufferName = strBufferName;
return Open(conv);
}
-bool wxTextBuffer::Open(wxMBConv& conv)
+bool wxTextBuffer::Open(
const
wxMBConv& conv)
{
// buffer name must be either given in ctor or in Open(const wxString&)
wxASSERT( !m_strBufferName.empty() );
{
// buffer name must be either given in ctor or in Open(const wxString&)
wxASSERT( !m_strBufferName.empty() );
@@
-216,7
+218,7
@@
wxTextFileType wxTextBuffer::GuessType() const
// we take MAX_LINES_SCAN in the beginning, middle and the end of buffer
#define MAX_LINES_SCAN (10)
// we take MAX_LINES_SCAN in the beginning, middle and the end of buffer
#define MAX_LINES_SCAN (10)
- size_t nCount = m_aLines.Count() / 3,
+ size_t nCount = m_aLines.
Get
Count() / 3,
nScan = nCount > 3*MAX_LINES_SCAN ? MAX_LINES_SCAN : nCount / 3;
#define AnalyseLine(n) \
nScan = nCount > 3*MAX_LINES_SCAN ? MAX_LINES_SCAN : nCount / 3;
#define AnalyseLine(n) \
@@
-274,7
+276,7
@@
bool wxTextBuffer::Close()
return true;
}
return true;
}
-bool wxTextBuffer::Write(wxTextFileType typeNew, wxMBConv& conv)
+bool wxTextBuffer::Write(wxTextFileType typeNew,
const
wxMBConv& conv)
{
return OnWrite(typeNew, conv);
}
{
return OnWrite(typeNew, conv);
}