aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-01-02 05:28:45 +0000
committernyamatongwe <devnull@localhost>2007-01-02 05:28:45 +0000
commit2e90199b5ace192bca8ce39a7319dcb1823827b3 (patch)
tree3ff5f363106d8488bc48c5e555b20688ff6b5879 /src/Document.h
parent30a42acd9f04fea654c99f6c18ddbb26e5deb4b2 (diff)
downloadscintilla-mirror-2e90199b5ace192bca8ce39a7319dcb1823827b3.tar.gz
Separated the cell buffer into substance and style buffers.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Document.h b/src/Document.h
index d774d5664..730b033f3 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -136,7 +136,7 @@ public:
// Gateways to modifying document
void ModifiedAt(int pos);
bool DeleteChars(int pos, int len);
- bool InsertStyledString(int position, char *s, int insertLength);
+ bool InsertString(int position, const char *s, int insertLength);
int Undo();
int Redo();
bool CanUndo() { return cb.CanUndo(); }
@@ -163,8 +163,7 @@ public:
bool IsReadOnly() { return cb.IsReadOnly(); }
bool InsertChar(int pos, char ch);
- bool InsertString(int position, const char *s);
- bool InsertString(int position, const char *s, size_t insertLength);
+ bool InsertCString(int position, const char *s);
void ChangeChar(int pos, char ch);
void DelChar(int pos);
void DelCharBack(int pos);
@@ -197,7 +196,7 @@ public:
int NextWordStart(int pos, int delta);
int NextWordEnd(int pos, int delta);
int Length() { return cb.Length(); }
- void Allocate(int newSize) { cb.Allocate(newSize*2); }
+ void Allocate(int newSize) { cb.Allocate(newSize); }
long FindText(int minPos, int maxPos, const char *s,
bool caseSensitive, bool word, bool wordStart, bool regExp, bool posix, int *length);
long FindText(int iMessage, unsigned long wParam, long lParam);