diff options
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 7eef844ee..d62dd64e0 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1050,11 +1050,6 @@ bool Document::InsertCString(int position, const char *s) { return InsertString(position, s, static_cast<int>(s ? strlen(s) : 0)); } -void Document::ChangeChar(int pos, char ch) { - DeleteChars(pos, 1); - InsertChar(pos, ch); -} - void Document::DelChar(int pos) { DeleteChars(pos, LenChar(pos)); } @@ -1667,25 +1662,6 @@ int Document::LinesTotal() const { return cb.Lines(); } -void Document::ChangeCase(Range r, bool makeUpperCase) { - for (int pos = r.start; pos < r.end;) { - int len = LenChar(pos); - if (len == 1) { - char ch = CharAt(pos); - if (makeUpperCase) { - if (IsLowerCase(ch)) { - ChangeChar(pos, static_cast<char>(MakeUpperCase(ch))); - } - } else { - if (IsUpperCase(ch)) { - ChangeChar(pos, static_cast<char>(MakeLowerCase(ch))); - } - } - } - pos += len; - } -} - void Document::SetDefaultCharClasses(bool includeWordClass) { charClass.SetDefaultCharClasses(includeWordClass); } @@ -1821,10 +1797,6 @@ void Document::MarginSetStyles(int line, const unsigned char *styles) { NotifyModified(DocModification(SC_MOD_CHANGEMARGIN, LineStart(line), 0, 0, 0, line)); } -int Document::MarginLength(int line) const { - return static_cast<LineAnnotation *>(perLineData[ldMargin])->Length(line); -} - void Document::MarginClearAll() { int maxEditorLine = LinesTotal(); for (int l=0; l<maxEditorLine; l++) @@ -1833,10 +1805,6 @@ void Document::MarginClearAll() { static_cast<LineAnnotation *>(perLineData[ldMargin])->ClearAll(); } -bool Document::AnnotationAny() const { - return static_cast<LineAnnotation *>(perLineData[ldAnnotation])->AnySet(); -} - StyledText Document::AnnotationStyledText(int line) { LineAnnotation *pla = static_cast<LineAnnotation *>(perLineData[ldAnnotation]); return StyledText(pla->Length(line), pla->Text(line), @@ -1866,10 +1834,6 @@ void Document::AnnotationSetStyles(int line, const unsigned char *styles) { } } -int Document::AnnotationLength(int line) const { - return static_cast<LineAnnotation *>(perLineData[ldAnnotation])->Length(line); -} - int Document::AnnotationLines(int line) const { return static_cast<LineAnnotation *>(perLineData[ldAnnotation])->Lines(line); } |