geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Scintilla::Document Class Reference

#include <Document.h>

Inheritance diagram for Scintilla::Document:
[legend]
Collaboration diagram for Scintilla::Document:
[legend]

Classes

struct  CharacterExtracted
 
struct  WatcherWithUserData
 Used to pair watcher pointer with user data. More...
 

Public Member Functions

 Document (int options)
 
 Document (const Document &)=delete
 
 Document (Document &&)=delete
 
void operator= (const Document &)=delete
 
Documentoperator= (Document &&)=delete
 
 ~Document () override
 
int AddRef ()
 
int SCI_METHOD Release () override
 
void Init () override
 
void InsertLine (Sci::Line line) override
 
void InsertLines (Sci::Line line, Sci::Line lines) override
 
void RemoveLine (Sci::Line line) override
 
int LineEndTypesSupported () const
 
bool SetDBCSCodePage (int dbcsCodePage_)
 
int GetLineEndTypesAllowed () const noexcept
 
bool SetLineEndTypesAllowed (int lineEndBitSet_)
 
int GetLineEndTypesActive () const noexcept
 
int SCI_METHOD Version () const override
 
void SCI_METHOD SetErrorStatus (int status) override
 
Sci_Position SCI_METHOD LineFromPosition (Sci_Position pos) const override
 
Sci::Line SciLineFromPosition (Sci::Position pos) const noexcept
 
Sci::Position ClampPositionIntoDocument (Sci::Position pos) const noexcept
 
bool ContainsLineEnd (const char *s, Sci::Position length) const noexcept
 
bool IsCrLf (Sci::Position pos) const noexcept
 
int LenChar (Sci::Position pos) const noexcept
 
bool InGoodUTF8 (Sci::Position pos, Sci::Position &start, Sci::Position &end) const noexcept
 
Sci::Position MovePositionOutsideChar (Sci::Position pos, Sci::Position moveDir, bool checkLineEnd=true) const noexcept
 
Sci::Position NextPosition (Sci::Position pos, int moveDir) const noexcept
 
bool NextCharacter (Sci::Position &pos, int moveDir) const noexcept
 
Document::CharacterExtracted CharacterAfter (Sci::Position position) const noexcept
 
Document::CharacterExtracted CharacterBefore (Sci::Position position) const noexcept
 
Sci_Position SCI_METHOD GetRelativePosition (Sci_Position positionStart, Sci_Position characterOffset) const override
 
Sci::Position GetRelativePositionUTF16 (Sci::Position positionStart, Sci::Position characterOffset) const noexcept
 
int SCI_METHOD GetCharacterAndWidth (Sci_Position position, Sci_Position *pWidth) const override
 
int SCI_METHOD CodePage () const override
 
bool SCI_METHOD IsDBCSLeadByte (char ch) const override
 
bool IsDBCSLeadByteNoExcept (char ch) const noexcept
 
bool IsDBCSLeadByteInvalid (char ch) const noexcept
 
bool IsDBCSTrailByteInvalid (char ch) const noexcept
 
int DBCSDrawBytes (const char *text, int len) const noexcept
 
int SafeSegment (const char *text, int length, int lengthSegment) const noexcept
 
EncodingFamily CodePageFamily () const noexcept
 
void ModifiedAt (Sci::Position pos) noexcept
 
void CheckReadOnly ()
 
bool DeleteChars (Sci::Position pos, Sci::Position len)
 
Sci::Position InsertString (Sci::Position position, const char *s, Sci::Position insertLength)
 Insert a string with a length. More...
 
void ChangeInsertion (const char *s, Sci::Position length)
 
int SCI_METHOD AddData (const char *data, Sci_Position length) override
 
void *SCI_METHOD ConvertToDocument () override
 
Sci::Position Undo ()
 
Sci::Position Redo ()
 
bool CanUndo () const noexcept
 
bool CanRedo () const noexcept
 
void DeleteUndoHistory ()
 
bool SetUndoCollection (bool collectUndo)
 
bool IsCollectingUndo () const noexcept
 
void BeginUndoAction ()
 
void EndUndoAction ()
 
void AddUndoAction (Sci::Position token, bool mayCoalesce)
 
void SetSavePoint ()
 
bool IsSavePoint () const noexcept
 
void TentativeStart ()
 
void TentativeCommit ()
 
void TentativeUndo ()
 
bool TentativeActive () const noexcept
 
const char *SCI_METHOD BufferPointer () override
 
const char * RangePointer (Sci::Position position, Sci::Position rangeLength) noexcept
 
Sci::Position GapPosition () const noexcept
 
int SCI_METHOD GetLineIndentation (Sci_Position line) override
 
Sci::Position SetLineIndentation (Sci::Line line, Sci::Position indent)
 
Sci::Position GetLineIndentPosition (Sci::Line line) const
 
Sci::Position GetColumn (Sci::Position pos)
 
Sci::Position CountCharacters (Sci::Position startPos, Sci::Position endPos) const noexcept
 
Sci::Position CountUTF16 (Sci::Position startPos, Sci::Position endPos) const noexcept
 
Sci::Position FindColumn (Sci::Line line, Sci::Position column)
 
void Indent (bool forwards, Sci::Line lineBottom, Sci::Line lineTop)
 
void ConvertLineEnds (int eolModeSet)
 
void SetReadOnly (bool set)
 
bool IsReadOnly () const noexcept
 
bool IsLarge () const noexcept
 
int Options () const noexcept
 
void DelChar (Sci::Position pos)
 
void DelCharBack (Sci::Position pos)
 
char CharAt (Sci::Position position) const noexcept
 
void SCI_METHOD GetCharRange (char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const override
 
char SCI_METHOD StyleAt (Sci_Position position) const override
 
int StyleIndexAt (Sci_Position position) const noexcept
 
void GetStyleRange (unsigned char *buffer, Sci::Position position, Sci::Position lengthRetrieve) const
 
int GetMark (Sci::Line line) const noexcept
 
Sci::Line MarkerNext (Sci::Line lineStart, int mask) const noexcept
 
int AddMark (Sci::Line line, int markerNum)
 
void AddMarkSet (Sci::Line line, int valueSet)
 
void DeleteMark (Sci::Line line, int markerNum)
 
void DeleteMarkFromHandle (int markerHandle)
 
void DeleteAllMarks (int markerNum)
 
Sci::Line LineFromHandle (int markerHandle) const noexcept
 
int MarkerNumberFromLine (Sci::Line line, int which) const noexcept
 
int MarkerHandleFromLine (Sci::Line line, int which) const noexcept
 
Sci_Position SCI_METHOD LineStart (Sci_Position line) const override
 
bool IsLineStartPosition (Sci::Position position) const
 
Sci_Position SCI_METHOD LineEnd (Sci_Position line) const override
 
Sci::Position LineEndPosition (Sci::Position position) const
 
bool IsLineEndPosition (Sci::Position position) const
 
bool IsPositionInLineEnd (Sci::Position position) const
 
Sci::Position VCHomePosition (Sci::Position position) const
 
Sci::Position IndexLineStart (Sci::Line line, int lineCharacterIndex) const noexcept
 
Sci::Line LineFromPositionIndex (Sci::Position pos, int lineCharacterIndex) const noexcept
 
int SCI_METHOD SetLevel (Sci_Position line, int level) override
 
int SCI_METHOD GetLevel (Sci_Position line) const override
 
void ClearLevels ()
 
Sci::Line GetLastChild (Sci::Line lineParent, int level=-1, Sci::Line lastLine=-1)
 
Sci::Line GetFoldParent (Sci::Line line) const
 
void GetHighlightDelimiters (HighlightDelimiter &highlightDelimiter, Sci::Line line, Sci::Line lastLine)
 
Sci::Position ExtendWordSelect (Sci::Position pos, int delta, bool onlyWordCharacters=false) const
 Used by commands that want to select whole words. More...
 
Sci::Position NextWordStart (Sci::Position pos, int delta) const
 Find the start of the next word in either a forward (delta >= 0) or backwards direction (delta < 0). More...
 
Sci::Position NextWordEnd (Sci::Position pos, int delta) const
 Find the end of the next word in either a forward (delta >= 0) or backwards direction (delta < 0). More...
 
Sci_Position SCI_METHOD Length () const override
 
Sci::Position LengthNoExcept () const noexcept
 
void Allocate (Sci::Position newSize)
 
CharacterExtracted ExtractCharacter (Sci::Position position) const noexcept
 
bool IsWordStartAt (Sci::Position pos) const
 Check that the character at the given position is a word or punctuation character and that the previous character is of a different character class. More...
 
bool IsWordEndAt (Sci::Position pos) const
 Check that the character at the given position is a word or punctuation character and that the next character is of a different character class. More...
 
bool IsWordAt (Sci::Position start, Sci::Position end) const
 Check that the given range is has transitions between character classes at both ends and where the characters on the inside are word or punctuation characters. More...
 
bool MatchesWordOptions (bool word, bool wordStart, Sci::Position pos, Sci::Position length) const
 
bool HasCaseFolder () const noexcept
 
void SetCaseFolder (CaseFolder *pcf_) noexcept
 
Sci::Position FindText (Sci::Position minPos, Sci::Position maxPos, const char *search, int flags, Sci::Position *length)
 Find text in document, supporting both forward and backward searches (just pass minPos > maxPos to do a backward search) Has not been tested with backwards DBCS searches yet. More...
 
const char * SubstituteByPosition (const char *text, Sci::Position *length)
 
int LineCharacterIndex () const noexcept
 
void AllocateLineCharacterIndex (int lineCharacterIndex)
 
void ReleaseLineCharacterIndex (int lineCharacterIndex)
 
Sci::Line LinesTotal () const noexcept
 
void SetDefaultCharClasses (bool includeWordClass)
 
void SetCharClasses (const unsigned char *chars, CharClassify::cc newCharClass)
 
int GetCharsOfClass (CharClassify::cc characterClass, unsigned char *buffer) const
 
void SetCharacterCategoryOptimization (int countCharacters)
 
int CharacterCategoryOptimization () const noexcept
 
void SCI_METHOD StartStyling (Sci_Position position, char mask) override
 
bool SCI_METHOD SetStyleFor (Sci_Position length, char style) override
 
bool SCI_METHOD SetStyles (Sci_Position length, const char *styles) override
 
Sci::Position GetEndStyled () const noexcept
 
void EnsureStyledTo (Sci::Position pos)
 
void StyleToAdjustingLineDuration (Sci::Position pos)
 
void LexerChanged ()
 
int GetStyleClock () const noexcept
 
void IncrementStyleClock () noexcept
 
void SCI_METHOD DecorationSetCurrentIndicator (int indicator) override
 
void SCI_METHOD DecorationFillRange (Sci_Position position, int value, Sci_Position fillLength) override
 
LexInterfaceGetLexInterface () const noexcept
 
void SetLexInterface (std::unique_ptr< LexInterface > pLexInterface) noexcept
 
int SCI_METHOD SetLineState (Sci_Position line, int state) override
 
int SCI_METHOD GetLineState (Sci_Position line) const override
 
Sci::Line GetMaxLineState () const noexcept
 
void SCI_METHOD ChangeLexerState (Sci_Position start, Sci_Position end) override
 
StyledText MarginStyledText (Sci::Line line) const noexcept
 
void MarginSetStyle (Sci::Line line, int style)
 
void MarginSetStyles (Sci::Line line, const unsigned char *styles)
 
void MarginSetText (Sci::Line line, const char *text)
 
void MarginClearAll ()
 
StyledText AnnotationStyledText (Sci::Line line) const noexcept
 
void AnnotationSetText (Sci::Line line, const char *text)
 
void AnnotationSetStyle (Sci::Line line, int style)
 
void AnnotationSetStyles (Sci::Line line, const unsigned char *styles)
 
int AnnotationLines (Sci::Line line) const noexcept
 
void AnnotationClearAll ()
 
StyledText EOLAnnotationStyledText (Sci::Line line) const noexcept
 
void EOLAnnotationSetStyle (Sci::Line line, int style)
 
void EOLAnnotationSetText (Sci::Line line, const char *text)
 
void EOLAnnotationClearAll ()
 
bool AddWatcher (DocWatcher *watcher, void *userData)
 
bool RemoveWatcher (DocWatcher *watcher, void *userData)
 
CharClassify::cc WordCharacterClass (unsigned int ch) const
 
bool IsWordPartSeparator (unsigned int ch) const
 
Sci::Position WordPartLeft (Sci::Position pos) const
 
Sci::Position WordPartRight (Sci::Position pos) const
 
Sci::Position ExtendStyleRange (Sci::Position pos, int delta, bool singleLine) noexcept
 
bool IsWhiteLine (Sci::Line line) const
 
Sci::Position ParaUp (Sci::Position pos) const
 
Sci::Position ParaDown (Sci::Position pos) const
 
int IndentSize () const noexcept
 
Sci::Position BraceMatch (Sci::Position position, Sci::Position maxReStyle, Sci::Position startPos, bool useStartPos) noexcept
 
virtual Sci_Position LineEnd (Sci_Position line) const =0
 
virtual Sci_Position GetRelativePosition (Sci_Position positionStart, Sci_Position characterOffset) const =0
 
virtual int GetCharacterAndWidth (Sci_Position position, Sci_Position *pWidth) const =0
 
virtual int Version () const =0
 
virtual void SetErrorStatus (int status)=0
 
virtual Sci_Position Length () const =0
 
virtual void GetCharRange (char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const =0
 
virtual char StyleAt (Sci_Position position) const =0
 
virtual Sci_Position LineFromPosition (Sci_Position position) const =0
 
virtual Sci_Position LineStart (Sci_Position line) const =0
 
virtual int GetLevel (Sci_Position line) const =0
 
virtual int SetLevel (Sci_Position line, int level)=0
 
virtual int GetLineState (Sci_Position line) const =0
 
virtual int SetLineState (Sci_Position line, int state)=0
 
virtual void StartStyling (Sci_Position position, char mask)=0
 
virtual bool SetStyleFor (Sci_Position length, char style)=0
 
virtual bool SetStyles (Sci_Position length, const char *styles)=0
 
virtual void DecorationSetCurrentIndicator (int indicator)=0
 
virtual void DecorationFillRange (Sci_Position position, int value, Sci_Position fillLength)=0
 
virtual void ChangeLexerState (Sci_Position start, Sci_Position end)=0
 
virtual int CodePage () const =0
 
virtual bool IsDBCSLeadByte (char ch) const =0
 
virtual const char * BufferPointer ()=0
 
virtual int GetLineIndentation (Sci_Position line)=0
 
virtual int Release ()=0
 
virtual int AddData (const char *data, Sci_Position length)=0
 
virtual void * ConvertToDocument ()=0
 

Static Public Member Functions

static std::string TransformLineEnds (const char *s, size_t len, int eolModeWanted)
 

Public Attributes

int eolMode
 
int dbcsCodePage
 Can also be SC_CP_UTF8 to enable UTF-8 mode. More...
 
int lineEndBitSet
 
int tabInChars
 
int indentInChars
 
int actualIndentInChars
 
bool useTabs
 
bool tabIndents
 
bool backspaceUnindents
 
ActionDuration durationStyleOneLine
 
std::unique_ptr< IDecorationListdecorations
 

Private Types

enum  lineData {
  ldMarkers , ldLevels , ldState , ldMargin ,
  ldAnnotation , ldEOLAnnotation , ldSize
}
 

Private Member Functions

LineMarkersMarkers () const noexcept
 
LineLevelsLevels () const noexcept
 
LineStateStates () const noexcept
 
LineAnnotationMargins () const noexcept
 
LineAnnotationAnnotations () const noexcept
 
LineAnnotationEOLAnnotations () const noexcept
 
void NotifyModifyAttempt ()
 
void NotifySavePoint (bool atSavePoint)
 
void NotifyModified (DocModification mh)
 
- Private Member Functions inherited from Scintilla::PerLine
virtual ~PerLine ()
 
virtual void Init ()=0
 
virtual void InsertLine (Sci::Line line)=0
 
virtual void InsertLines (Sci::Line line, Sci::Line lines)=0
 
virtual void RemoveLine (Sci::Line line)=0
 

Private Attributes

int refCount
 
CellBuffer cb
 
CharClassify charClass
 
CharacterCategoryMap charMap
 
std::unique_ptr< CaseFolderpcf
 
Sci::Position endStyled
 
int styleClock
 
int enteredModification
 
int enteredStyling
 
int enteredReadOnlyCount
 
bool insertionSet
 
std::string insertion
 
std::vector< WatcherWithUserDatawatchers
 
std::unique_ptr< PerLineperLineData [ldSize]
 
bool matchesValid
 
std::unique_ptr< RegexSearchBaseregex
 
std::unique_ptr< LexInterfacepli
 

Detailed Description

Definition at line 214 of file Document.h.

Member Enumeration Documentation

◆ lineData

Enumerator
ldMarkers 
ldLevels 
ldState 
ldMargin 
ldAnnotation 
ldEOLAnnotation 
ldSize 

Definition at line 247 of file Document.h.

Constructor & Destructor Documentation

◆ Document() [1/3]

◆ Document() [2/3]

Scintilla::Document::Document ( const Document )
delete

◆ Document() [3/3]

Scintilla::Document::Document ( Document &&  )
delete

◆ ~Document()

Document::~Document ( )
override

Definition at line 151 of file Document.cxx.

References watchers.

Member Function Documentation

◆ AddData()

int Document::AddData ( const char *  data,
Sci_Position  length 
)
overridevirtual

Implements ILoader.

Definition at line 1298 of file Document.cxx.

References InsertString(), Length(), position, SC_STATUS_BADALLOC, and SC_STATUS_FAILURE.

◆ AddMark()

int Document::AddMark ( Sci::Line  line,
int  markerNum 
)

◆ AddMarkSet()

void Document::AddMarkSet ( Sci::Line  line,
int  valueSet 
)

◆ AddRef()

◆ AddUndoAction()

void Scintilla::Document::AddUndoAction ( Sci::Position  token,
bool  mayCoalesce 
)
inline

Definition at line 360 of file Document.h.

References Scintilla::CellBuffer::AddUndoAction().

Referenced by Scintilla::Editor::WndProc().

◆ AddWatcher()

bool Document::AddWatcher ( DocWatcher watcher,
void *  userData 
)

Definition at line 2448 of file Document.cxx.

References watchers.

Referenced by Scintilla::Editor::Editor(), and Scintilla::Editor::SetDocPointer().

◆ Allocate()

void Scintilla::Document::Allocate ( Sci::Position  newSize)
inline

Definition at line 432 of file Document.h.

References Scintilla::CellBuffer::Allocate().

Referenced by Scintilla::Editor::WndProc().

◆ AllocateLineCharacterIndex()

void Document::AllocateLineCharacterIndex ( int  lineCharacterIndex)

◆ AnnotationClearAll()

void Document::AnnotationClearAll ( )

◆ AnnotationLines()

◆ Annotations()

LineAnnotation * Document::Annotations ( ) const
privatenoexcept

◆ AnnotationSetStyle()

void Document::AnnotationSetStyle ( Sci::Line  line,
int  style 
)

◆ AnnotationSetStyles()

void Document::AnnotationSetStyles ( Sci::Line  line,
const unsigned char *  styles 
)

◆ AnnotationSetText()

◆ AnnotationStyledText()

◆ BeginUndoAction()

void Scintilla::Document::BeginUndoAction ( )
inline

◆ BraceMatch()

Sci::Position Document::BraceMatch ( Sci::Position  position,
Sci::Position  maxReStyle,
Sci::Position  startPos,
bool  useStartPos 
)
noexcept

Definition at line 2667 of file Document.cxx.

References BraceOpposite(), and position.

Referenced by Scintilla::Editor::WndProc().

◆ BufferPointer()

const char *SCI_METHOD Scintilla::Document::BufferPointer ( )
inlineoverridevirtual

Implements Scintilla::IDocument.

Definition at line 369 of file Document.h.

References Scintilla::CellBuffer::BufferPointer().

Referenced by Scintilla::Editor::WndProc().

◆ CanRedo()

bool Scintilla::Document::CanRedo ( ) const
inlinenoexcept

◆ CanUndo()

bool Scintilla::Document::CanUndo ( ) const
inlinenoexcept

◆ ChangeInsertion()

void Document::ChangeInsertion ( const char *  s,
Sci::Position  length 
)

Definition at line 1293 of file Document.cxx.

References insertion, and insertionSet.

Referenced by Scintilla::Editor::WndProc().

◆ ChangeLexerState()

void Document::ChangeLexerState ( Sci_Position  start,
Sci_Position  end 
)
overridevirtual

Implements Scintilla::IDocument.

Definition at line 2314 of file Document.cxx.

References NotifyModified(), and SC_MOD_LEXERSTATE.

Referenced by Scintilla::Editor::WndProc().

◆ CharacterAfter()

◆ CharacterBefore()

◆ CharacterCategoryOptimization()

int Document::CharacterCategoryOptimization ( ) const
noexcept

Definition at line 2203 of file Document.cxx.

References charMap, and Scintilla::CharacterCategoryMap::Size().

Referenced by Scintilla::Editor::WndProc().

◆ CharAt()

char Scintilla::Document::CharAt ( Sci::Position  position) const
inlinenoexcept

◆ CheckReadOnly()

void Document::CheckReadOnly ( )

◆ ClampPositionIntoDocument()

Sci::Position Document::ClampPositionIntoDocument ( Sci::Position  pos) const
noexcept

Definition at line 618 of file Document.cxx.

References pos.

Referenced by Scintilla::Editor::CopyRangeToClipboard().

◆ ClearLevels()

void Document::ClearLevels ( )

Definition at line 495 of file Document.cxx.

References Scintilla::LineLevels::ClearLevels(), and Levels().

Referenced by Scintilla::Editor::ClearDocumentStyle().

◆ CodePage()

int Document::CodePage ( ) const
overridevirtual

Implements Scintilla::IDocument.

Definition at line 1005 of file Document.cxx.

References dbcsCodePage.

◆ CodePageFamily()

EncodingFamily Document::CodePageFamily ( ) const
noexcept

◆ ContainsLineEnd()

bool Scintilla::Document::ContainsLineEnd ( const char *  s,
Sci::Position  length 
) const
inlinenoexcept

Definition at line 320 of file Document.h.

References Scintilla::CellBuffer::ContainsLineEnd().

Referenced by Scintilla::Editor::NotifyModified().

◆ ConvertLineEnds()

void Document::ConvertLineEnds ( int  eolModeSet)

◆ ConvertToDocument()

void * Document::ConvertToDocument ( )
overridevirtual

Implements ILoader.

Definition at line 1310 of file Document.cxx.

◆ CountCharacters()

◆ CountUTF16()

Sci::Position Document::CountUTF16 ( Sci::Position  startPos,
Sci::Position  endPos 
) const
noexcept

Definition at line 1577 of file Document.cxx.

References count.

Referenced by Scintilla::Editor::WndProc().

◆ DBCSDrawBytes()

int Document::DBCSDrawBytes ( const char *  text,
int  len 
) const
noexcept

Definition at line 1119 of file Document.cxx.

References text.

Referenced by Scintilla::BreakFinder::Next().

◆ DecorationFillRange()

◆ DecorationSetCurrentIndicator()

void Document::DecorationSetCurrentIndicator ( int  indicator)
overridevirtual

Implements Scintilla::IDocument.

Definition at line 2434 of file Document.cxx.

References decorations.

Referenced by Scintilla::ScintillaGTK::DrawImeIndicator(), and Scintilla::Editor::WndProc().

◆ DelChar()

void Document::DelChar ( Sci::Position  pos)

◆ DelCharBack()

void Document::DelCharBack ( Sci::Position  pos)

Definition at line 1463 of file Document.cxx.

References dbcsCodePage, DeleteChars(), IsCrLf(), NextPosition(), and pos.

Referenced by Scintilla::Editor::DelCharBack().

◆ DeleteAllMarks()

void Document::DeleteAllMarks ( int  markerNum)

◆ DeleteChars()

◆ DeleteMark()

void Document::DeleteMark ( Sci::Line  line,
int  markerNum 
)

◆ DeleteMarkFromHandle()

void Document::DeleteMarkFromHandle ( int  markerHandle)

◆ DeleteUndoHistory()

void Scintilla::Document::DeleteUndoHistory ( )
inline

Definition at line 353 of file Document.h.

References Scintilla::CellBuffer::DeleteUndoHistory().

Referenced by Scintilla::Editor::WndProc().

◆ EndUndoAction()

void Scintilla::Document::EndUndoAction ( )
inline

◆ EnsureStyledTo()

◆ EOLAnnotationClearAll()

void Document::EOLAnnotationClearAll ( )

◆ EOLAnnotations()

LineAnnotation * Document::EOLAnnotations ( ) const
privatenoexcept

Definition at line 219 of file Document.cxx.

References ldEOLAnnotation, and perLineData.

Referenced by EOLAnnotationClearAll(), EOLAnnotationSetStyle(), and EOLAnnotationSetText().

◆ EOLAnnotationSetStyle()

void Document::EOLAnnotationSetStyle ( Sci::Line  line,
int  style 
)

◆ EOLAnnotationSetText()

void Document::EOLAnnotationSetText ( Sci::Line  line,
const char *  text 
)

◆ EOLAnnotationStyledText()

◆ ExtendStyleRange()

Sci::Position Document::ExtendStyleRange ( Sci::Position  pos,
int  delta,
bool  singleLine 
)
noexcept

Definition at line 2630 of file Document.cxx.

References IsLineEndChar(), and pos.

Referenced by Scintilla::Editor::SetHotSpotRange().

◆ ExtendWordSelect()

Sci::Position Document::ExtendWordSelect ( Sci::Position  pos,
int  delta,
bool  onlyWordCharacters = false 
) const

◆ ExtractCharacter()

◆ FindColumn()

◆ FindText()

◆ GapPosition()

Sci::Position Scintilla::Document::GapPosition ( ) const
inlinenoexcept

Definition at line 371 of file Document.h.

References Scintilla::CellBuffer::GapPosition().

Referenced by Scintilla::Editor::WndProc().

◆ GetCharacterAndWidth()

◆ GetCharRange()

◆ GetCharsOfClass()

int Document::GetCharsOfClass ( CharClassify::cc  characterClass,
unsigned char *  buffer 
) const

Definition at line 2195 of file Document.cxx.

References charClass, and Scintilla::CharClassify::GetCharsOfClass().

Referenced by Scintilla::Editor::WndProc().

◆ GetColumn()

◆ GetEndStyled()

◆ GetFoldParent()

◆ GetHighlightDelimiters()

◆ GetLastChild()

◆ GetLevel()

◆ GetLexInterface()

LexInterface * Document::GetLexInterface ( ) const
noexcept

Definition at line 2288 of file Document.cxx.

References pli.

◆ GetLineEndTypesActive()

int Scintilla::Document::GetLineEndTypesActive ( ) const
inlinenoexcept

Definition at line 309 of file Document.h.

References Scintilla::CellBuffer::GetLineEndTypes().

Referenced by Scintilla::Editor::WndProc().

◆ GetLineEndTypesAllowed()

int Scintilla::Document::GetLineEndTypesAllowed ( ) const
inlinenoexcept

Definition at line 307 of file Document.h.

References Scintilla::CellBuffer::GetLineEndTypes().

Referenced by Scintilla::Editor::WndProc().

◆ GetLineIndentation()

◆ GetLineIndentPosition()

◆ GetLineState()

int Document::GetLineState ( Sci_Position  line) const
overridevirtual

◆ GetMark()

◆ GetMaxLineState()

Sci::Line Document::GetMaxLineState ( ) const
noexcept

Definition at line 2310 of file Document.cxx.

References Scintilla::LineState::GetMaxLineState(), and States().

Referenced by Scintilla::Editor::WndProc().

◆ GetRelativePosition()

Sci_Position Document::GetRelativePosition ( Sci_Position  positionStart,
Sci_Position  characterOffset 
) const
overridevirtual

◆ GetRelativePositionUTF16()

Sci::Position Document::GetRelativePositionUTF16 ( Sci::Position  positionStart,
Sci::Position  characterOffset 
) const
noexcept

Definition at line 944 of file Document.cxx.

References INVALID_POSITION, and pos.

Referenced by Scintilla::Editor::WndProc().

◆ GetStyleClock()

int Scintilla::Document::GetStyleClock ( ) const
inlinenoexcept

Definition at line 462 of file Document.h.

Referenced by Scintilla::EditView::RetrieveLineLayout().

◆ GetStyleRange()

void Scintilla::Document::GetStyleRange ( unsigned char *  buffer,
Sci::Position  position,
Sci::Position  lengthRetrieve 
) const
inline

Definition at line 397 of file Document.h.

References Scintilla::CellBuffer::GetStyleRange(), and position.

Referenced by Scintilla::EditView::LayoutLine().

◆ HasCaseFolder()

bool Document::HasCaseFolder ( ) const
noexcept

◆ IncrementStyleClock()

void Document::IncrementStyleClock ( )
noexcept

Definition at line 2430 of file Document.cxx.

References styleClock.

Referenced by EnsureStyledTo(), and Scintilla::Editor::NotifyModified().

◆ Indent()

void Document::Indent ( bool  forwards,
Sci::Line  lineBottom,
Sci::Line  lineTop 
)

◆ IndentSize()

◆ IndexLineStart()

Sci::Position Document::IndexLineStart ( Sci::Line  line,
int  lineCharacterIndex 
) const
noexcept

◆ InGoodUTF8()

bool Document::InGoodUTF8 ( Sci::Position  pos,
Sci::Position start,
Sci::Position end 
) const
noexcept

◆ Init()

void Document::Init ( )
overridevirtual

Implements Scintilla::PerLine.

Definition at line 171 of file Document.cxx.

References perLineData.

◆ InsertLine()

void Document::InsertLine ( Sci::Line  line)
overridevirtual

Implements Scintilla::PerLine.

Definition at line 178 of file Document.cxx.

References line, and perLineData.

◆ InsertLines()

void Document::InsertLines ( Sci::Line  line,
Sci::Line  lines 
)
overridevirtual

Implements Scintilla::PerLine.

Definition at line 185 of file Document.cxx.

References line, lines, and perLineData.

◆ InsertString()

◆ IsCollectingUndo()

bool Scintilla::Document::IsCollectingUndo ( ) const
inlinenoexcept

Definition at line 357 of file Document.h.

References Scintilla::CellBuffer::IsCollectingUndo().

Referenced by Scintilla::Editor::WndProc().

◆ IsCrLf()

bool Document::IsCrLf ( Sci::Position  pos) const
noexcept

Definition at line 622 of file Document.cxx.

References pos.

Referenced by DelCharBack().

◆ IsDBCSLeadByte()

bool Document::IsDBCSLeadByte ( char  ch) const
overridevirtual

Implements Scintilla::IDocument.

Definition at line 1009 of file Document.cxx.

References IsDBCSLeadByteNoExcept().

◆ IsDBCSLeadByteInvalid()

bool Document::IsDBCSLeadByteInvalid ( char  ch) const
noexcept

Definition at line 1043 of file Document.cxx.

Referenced by Scintilla::Editor::SetRepresentations().

◆ IsDBCSLeadByteNoExcept()

bool Document::IsDBCSLeadByteNoExcept ( char  ch) const
noexcept

◆ IsDBCSTrailByteInvalid()

bool Document::IsDBCSTrailByteInvalid ( char  ch) const
noexcept

Definition at line 1080 of file Document.cxx.

◆ IsLarge()

bool Scintilla::Document::IsLarge ( ) const
inlinenoexcept

◆ IsLineEndPosition()

◆ IsLineStartPosition()

bool Document::IsLineStartPosition ( Sci::Position  position) const

Definition at line 399 of file Document.cxx.

References LineFromPosition(), LineStart(), and position.

◆ IsPositionInLineEnd()

bool Document::IsPositionInLineEnd ( Sci::Position  position) const

◆ IsReadOnly()

◆ IsSavePoint()

bool Scintilla::Document::IsSavePoint ( ) const
inlinenoexcept

Definition at line 362 of file Document.h.

References Scintilla::CellBuffer::IsSavePoint().

Referenced by Scintilla::Editor::WndProc().

◆ IsWhiteLine()

bool Document::IsWhiteLine ( Sci::Line  line) const

◆ IsWordAt()

bool Document::IsWordAt ( Sci::Position  start,
Sci::Position  end 
) const

Check that the given range is has transitions between character classes at both ends and where the characters on the inside are word or punctuation characters.

Definition at line 1962 of file Document.cxx.

References IsWordEndAt(), and IsWordStartAt().

Referenced by MatchesWordOptions(), and Scintilla::Editor::WndProc().

◆ IsWordEndAt()

bool Document::IsWordEndAt ( Sci::Position  pos) const

Check that the character at the given position is a word or punctuation character and that the next character is of a different character class.

Definition at line 1944 of file Document.cxx.

References Scintilla::CharClassify::ccPunctuation, Scintilla::CharClassify::ccWord, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, and WordCharacterClass().

Referenced by IsWordAt().

◆ IsWordPartSeparator()

bool Document::IsWordPartSeparator ( unsigned int  ch) const

◆ IsWordStartAt()

bool Document::IsWordStartAt ( Sci::Position  pos) const

Check that the character at the given position is a word or punctuation character and that the previous character is of a different character class.

Definition at line 1926 of file Document.cxx.

References Scintilla::CharClassify::ccPunctuation, Scintilla::CharClassify::ccWord, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, and WordCharacterClass().

Referenced by IsWordAt(), and MatchesWordOptions().

◆ LenChar()

◆ Length()

Sci_Position SCI_METHOD Scintilla::Document::Length ( ) const
inlineoverridevirtual

◆ LengthNoExcept()

Sci::Position Scintilla::Document::LengthNoExcept ( ) const
inlinenoexcept

◆ Levels()

LineLevels * Document::Levels ( ) const
privatenoexcept

Definition at line 203 of file Document.cxx.

References ldLevels, and perLineData.

Referenced by ClearLevels(), GetLevel(), and SetLevel().

◆ LexerChanged()

void Document::LexerChanged ( )

Definition at line 2281 of file Document.cxx.

References watchers.

◆ LineCharacterIndex()

◆ LineEnd()

◆ LineEndPosition()

Sci::Position Document::LineEndPosition ( Sci::Position  position) const

◆ LineEndTypesSupported()

int Document::LineEndTypesSupported ( ) const

Definition at line 223 of file Document.cxx.

References dbcsCodePage, pli, and SC_CP_UTF8.

Referenced by SetDBCSCodePage(), and SetLineEndTypesAllowed().

◆ LineFromHandle()

Sci::Line Document::LineFromHandle ( int  markerHandle) const
noexcept

Definition at line 383 of file Document.cxx.

Referenced by Scintilla::Editor::WndProc().

◆ LineFromPosition()

◆ LineFromPositionIndex()

Sci::Line Document::LineFromPositionIndex ( Sci::Position  pos,
int  lineCharacterIndex 
) const
noexcept

◆ LineStart()

Sci_Position Document::LineStart ( Sci_Position  line) const
overridevirtual

Implements Scintilla::IDocument.

Definition at line 395 of file Document.cxx.

References cb, line, and Scintilla::CellBuffer::LineStart().

Referenced by AddMark(), AddMarkSet(), AnnotationSetStyle(), AnnotationSetText(), Scintilla::Editor::ButtonDownWithModifiers(), Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), Scintilla::ScintillaGTKAccessible::CharacterOffsetFromByteOffset(), Scintilla::Editor::CopySelectionRange(), Scintilla::Editor::DelCharBack(), DeleteMark(), Scintilla::Editor::DelWordOrLine(), Scintilla::EditView::DisplayFromPosition(), Scintilla::EditView::DrawCarets(), Scintilla::EditView::DrawEOL(), Scintilla::EditView::DrawFoldDisplayText(), Scintilla::EditView::DrawIndentGuidesOverEmpty(), DrawIndicators(), Scintilla::EditView::DrawLine(), DrawTranslucentSelection(), Scintilla::Editor::Duplicate(), EnsureStyledTo(), EOLAnnotationSetStyle(), EOLAnnotationSetText(), Scintilla::EditView::FillLineRemainder(), FindColumn(), BuiltinRegex::FindText(), Scintilla::EditView::FormatRange(), GetColumn(), GetLastChild(), GetLineIndentation(), GetLineIndentPosition(), Scintilla::Editor::GoToLine(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::IdleWork(), Scintilla::Editor::Indent(), Indent(), Scintilla::Editor::InsertPasteShape(), IsLineStartPosition(), IsWhiteLine(), Scintilla::Editor::KeyCommand(), Scintilla::EditView::LayoutLine(), LineEnd(), Scintilla::Editor::LineReverse(), Scintilla::Editor::LineSelection(), Scintilla::Editor::LineSelectionRange(), Scintilla::Editor::LinesSplit(), Scintilla::Editor::LineTranspose(), Scintilla::EditView::LocationFromPosition(), MarginSetStyle(), MarginSetStyles(), MarginSetText(), Scintilla::Editor::MovePositionSoVisible(), Scintilla::Editor::MoveSelectedLines(), Scintilla::Editor::NotifyMarginClick(), Scintilla::Editor::NotifyMarginRightClick(), Scintilla::Editor::NotifyModified(), Scintilla::ScintillaBase::NotifyStyleToNeeded(), Scintilla::EditView::PaintText(), ParaDown(), ParaUp(), Scintilla::Editor::PositionAfterArea(), Scintilla::Editor::PositionAfterMaxStyling(), Scintilla::Editor::PositionUpOrDown(), Scintilla::EditView::RangeDisplayLine(), Scintilla::Editor::RedrawSelMargin(), Scintilla::EditView::RetrieveLineLayout(), SetLevel(), SetLineIndentation(), SetLineState(), Scintilla::Editor::SetTopLine(), Scintilla::EditView::SPositionFromLineX(), Scintilla::EditView::SPositionFromLocation(), Scintilla::EditView::StartEndDisplayLine(), VCHomePosition(), Scintilla::Editor::WndProc(), Scintilla::Editor::WordSelection(), and Scintilla::Editor::WrapLines().

◆ LinesTotal()

◆ MarginClearAll()

void Document::MarginClearAll ( )

◆ Margins()

LineAnnotation * Document::Margins ( ) const
privatenoexcept

Definition at line 211 of file Document.cxx.

References ldMargin, and perLineData.

Referenced by MarginClearAll(), MarginSetStyle(), MarginSetStyles(), and MarginSetText().

◆ MarginSetStyle()

void Document::MarginSetStyle ( Sci::Line  line,
int  style 
)

◆ MarginSetStyles()

void Document::MarginSetStyles ( Sci::Line  line,
const unsigned char *  styles 
)

◆ MarginSetText()

void Document::MarginSetText ( Sci::Line  line,
const char *  text 
)

◆ MarginStyledText()

◆ MarkerHandleFromLine()

int Document::MarkerHandleFromLine ( Sci::Line  line,
int  which 
) const
noexcept

Definition at line 391 of file Document.cxx.

References line.

Referenced by Scintilla::Editor::WndProc().

◆ MarkerNext()

Sci::Line Document::MarkerNext ( Sci::Line  lineStart,
int  mask 
) const
noexcept

Definition at line 329 of file Document.cxx.

Referenced by Scintilla::Editor::WndProc().

◆ MarkerNumberFromLine()

int Document::MarkerNumberFromLine ( Sci::Line  line,
int  which 
) const
noexcept

Definition at line 387 of file Document.cxx.

References line.

Referenced by Scintilla::Editor::WndProc().

◆ Markers()

LineMarkers * Document::Markers ( ) const
privatenoexcept

Definition at line 199 of file Document.cxx.

References ldMarkers, and perLineData.

Referenced by AddMark(), AddMarkSet(), DeleteAllMarks(), DeleteMark(), and DeleteMarkFromHandle().

◆ MatchesWordOptions()

bool Document::MatchesWordOptions ( bool  word,
bool  wordStart,
Sci::Position  pos,
Sci::Position  length 
) const

Definition at line 1966 of file Document.cxx.

References IsWordAt(), IsWordStartAt(), pos, and Scintilla::word.

Referenced by FindText().

◆ ModifiedAt()

void Document::ModifiedAt ( Sci::Position  pos)
noexcept

◆ MovePositionOutsideChar()

◆ NextCharacter()

bool Document::NextCharacter ( Sci::Position pos,
int  moveDir 
) const
noexcept

Definition at line 842 of file Document.cxx.

References pos.

Referenced by FindText().

◆ NextPosition()

◆ NextWordEnd()

Sci::Position Document::NextWordEnd ( Sci::Position  pos,
int  delta 
) const

Find the end of the next word in either a forward (delta >= 0) or backwards direction (delta < 0).

This is looking for a transition between character classes although there is also some additional movement to transit white space. Used by cursor movement by word commands.

Definition at line 1881 of file Document.cxx.

References Scintilla::CharClassify::ccSpace, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, Scintilla::Document::CharacterExtracted::widthBytes, and WordCharacterClass().

Referenced by Scintilla::Editor::DelWordOrLine(), and Scintilla::Editor::HorizontalMove().

◆ NextWordStart()

Sci::Position Document::NextWordStart ( Sci::Position  pos,
int  delta 
) const

Find the start of the next word in either a forward (delta >= 0) or backwards direction (delta < 0).

This is looking for a transition between character classes although there is also some additional movement to transit white space. Used by cursor movement by word commands.

Definition at line 1837 of file Document.cxx.

References Scintilla::CharClassify::ccSpace, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, Scintilla::Document::CharacterExtracted::widthBytes, and WordCharacterClass().

Referenced by Scintilla::Editor::DelWordOrLine(), and Scintilla::Editor::HorizontalMove().

◆ NotifyModified()

◆ NotifyModifyAttempt()

void Document::NotifyModifyAttempt ( )
private

Definition at line 2468 of file Document.cxx.

References watchers.

Referenced by CheckReadOnly().

◆ NotifySavePoint()

void Document::NotifySavePoint ( bool  atSavePoint)
private

Definition at line 2474 of file Document.cxx.

References watchers.

Referenced by DeleteChars(), InsertString(), Redo(), SetSavePoint(), TentativeUndo(), and Undo().

◆ operator=() [1/2]

void Scintilla::Document::operator= ( const Document )
delete

◆ operator=() [2/2]

Document & Scintilla::Document::operator= ( Document &&  )
delete

◆ Options()

int Document::Options ( ) const
noexcept

◆ ParaDown()

Sci::Position Document::ParaDown ( Sci::Position  pos) const

◆ ParaUp()

Sci::Position Document::ParaUp ( Sci::Position  pos) const

Definition at line 1709 of file Document.cxx.

References IsWhiteLine(), line, LineStart(), pos, and SciLineFromPosition().

Referenced by Scintilla::Editor::ParaUpOrDown().

◆ RangePointer()

const char * Scintilla::Document::RangePointer ( Sci::Position  position,
Sci::Position  rangeLength 
)
inlinenoexcept

Definition at line 370 of file Document.h.

References position, and Scintilla::CellBuffer::RangePointer().

Referenced by Scintilla::Editor::WndProc().

◆ Redo()

◆ Release()

int Document::Release ( )
overridevirtual

◆ ReleaseLineCharacterIndex()

void Document::ReleaseLineCharacterIndex ( int  lineCharacterIndex)

◆ RemoveLine()

void Document::RemoveLine ( Sci::Line  line)
overridevirtual

Implements Scintilla::PerLine.

Definition at line 192 of file Document.cxx.

References line, and perLineData.

◆ RemoveWatcher()

bool Document::RemoveWatcher ( DocWatcher watcher,
void *  userData 
)

Definition at line 2458 of file Document.cxx.

References watchers.

Referenced by Scintilla::Editor::SetDocPointer(), and Scintilla::Editor::~Editor().

◆ SafeSegment()

int Document::SafeSegment ( const char *  text,
int  length,
int  lengthSegment 
) const
noexcept

◆ SciLineFromPosition()

Sci::Line Document::SciLineFromPosition ( Sci::Position  pos) const
noexcept

Definition at line 441 of file Document.cxx.

References pos.

Referenced by Scintilla::Editor::CheckModificationForWrap(), Scintilla::Editor::CopySelectionRange(), Scintilla::Editor::DelCharBack(), Scintilla::EditView::DisplayFromPosition(), Scintilla::Editor::Duplicate(), EnsureStyledTo(), Scintilla::Editor::FoldLine(), Scintilla::EditView::FormatRange(), GetColumn(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::KeyCommand(), Scintilla::Editor::LineReverse(), Scintilla::Editor::LineSelection(), Scintilla::Editor::LinesSplit(), Scintilla::Editor::LineTranspose(), Scintilla::EditView::LocationFromPosition(), Scintilla::Editor::MovedCaret(), Scintilla::Editor::MovePositionSoVisible(), Scintilla::Editor::MoveSelectedLines(), Scintilla::Editor::NeedShown(), Scintilla::Editor::NotifyMarginClick(), Scintilla::Editor::NotifyModified(), Scintilla::ScintillaBase::NotifyStyleToNeeded(), Scintilla::Editor::PageMove(), Scintilla::MarginView::PaintMargin(), Scintilla::EditView::PaintText(), ParaDown(), ParaUp(), Scintilla::Editor::ParaUpOrDown(), Scintilla::Editor::PasteRectangular(), Scintilla::Editor::PositionAfterMaxStyling(), Scintilla::Editor::PositionUpOrDown(), Scintilla::Editor::RealizeVirtualSpace(), Scintilla::Editor::RectangleFromRange(), Scintilla::EditView::RetrieveLineLayout(), Scintilla::Editor::SetEmptySelection(), Scintilla::Editor::SetRectangularRange(), Scintilla::Editor::SetSelection(), Scintilla::EditView::StartEndDisplayLine(), StyleToAdjustingLineDuration(), VCHomePosition(), Scintilla::Editor::VerticalCentreCaret(), and Scintilla::Editor::WndProc().

◆ SetCaseFolder()

◆ SetCharacterCategoryOptimization()

void Document::SetCharacterCategoryOptimization ( int  countCharacters)

Definition at line 2199 of file Document.cxx.

References charMap, and Scintilla::CharacterCategoryMap::Optimize().

Referenced by Scintilla::Editor::WndProc().

◆ SetCharClasses()

void Document::SetCharClasses ( const unsigned char *  chars,
CharClassify::cc  newCharClass 
)

Definition at line 2191 of file Document.cxx.

References charClass, chars, and Scintilla::CharClassify::SetCharClasses().

Referenced by Scintilla::Editor::WndProc().

◆ SetDBCSCodePage()

◆ SetDefaultCharClasses()

void Document::SetDefaultCharClasses ( bool  includeWordClass)

◆ SetErrorStatus()

void Document::SetErrorStatus ( int  status)
overridevirtual

Implements Scintilla::IDocument.

Definition at line 430 of file Document.cxx.

References watchers.

◆ SetLevel()

◆ SetLexInterface()

void Document::SetLexInterface ( std::unique_ptr< LexInterface pLexInterface)
noexcept

Definition at line 2292 of file Document.cxx.

◆ SetLineEndTypesAllowed()

bool Document::SetLineEndTypesAllowed ( int  lineEndBitSet_)

◆ SetLineIndentation()

◆ SetLineState()

int Document::SetLineState ( Sci_Position  line,
int  state 
)
overridevirtual

◆ SetReadOnly()

void Scintilla::Document::SetReadOnly ( bool  set)
inline

Definition at line 383 of file Document.h.

References set, and Scintilla::CellBuffer::SetReadOnly().

Referenced by Scintilla::Editor::WndProc().

◆ SetSavePoint()

void Document::SetSavePoint ( )

Definition at line 259 of file Document.cxx.

References cb, NotifySavePoint(), and Scintilla::CellBuffer::SetSavePoint().

Referenced by Scintilla::Editor::WndProc().

◆ SetStyleFor()

bool Document::SetStyleFor ( Sci_Position  length,
char  style 
)
overridevirtual

◆ SetStyles()

bool Document::SetStyles ( Sci_Position  length,
const char *  styles 
)
overridevirtual

◆ SetUndoCollection()

bool Scintilla::Document::SetUndoCollection ( bool  collectUndo)
inline

Definition at line 354 of file Document.h.

References Scintilla::CellBuffer::SetUndoCollection().

Referenced by Scintilla::Editor::WndProc().

◆ StartStyling()

void Document::StartStyling ( Sci_Position  position,
char  mask 
)
overridevirtual

◆ States()

LineState * Document::States ( ) const
privatenoexcept

Definition at line 207 of file Document.cxx.

References ldState, and perLineData.

Referenced by GetLineState(), GetMaxLineState(), and SetLineState().

◆ StyleAt()

◆ StyleIndexAt()

int Scintilla::Document::StyleIndexAt ( Sci_Position  position) const
inlinenoexcept

◆ StyleToAdjustingLineDuration()

◆ SubstituteByPosition()

const char * Document::SubstituteByPosition ( const char *  text,
Sci::Position length 
)

Definition at line 2164 of file Document.cxx.

References regex, and text.

Referenced by Scintilla::Editor::GetTag(), and Scintilla::Editor::ReplaceTarget().

◆ TentativeActive()

bool Scintilla::Document::TentativeActive ( ) const
inlinenoexcept

◆ TentativeCommit()

void Scintilla::Document::TentativeCommit ( )
inline

Definition at line 365 of file Document.h.

References Scintilla::CellBuffer::TentativeCommit().

◆ TentativeStart()

void Scintilla::Document::TentativeStart ( )
inline

◆ TentativeUndo()

◆ TransformLineEnds()

std::string Document::TransformLineEnds ( const char *  s,
size_t  len,
int  eolModeWanted 
)
static

◆ Undo()

◆ VCHomePosition()

◆ Version()

int SCI_METHOD Scintilla::Document::Version ( ) const
inlineoverridevirtual

Implements Scintilla::IDocument.

Definition at line 311 of file Document.h.

References Scintilla::dvLineEnd.

◆ WordCharacterClass()

◆ WordPartLeft()

◆ WordPartRight()

Member Data Documentation

◆ actualIndentInChars

int Scintilla::Document::actualIndentInChars

Definition at line 280 of file Document.h.

Referenced by Document(), and Scintilla::Editor::WndProc().

◆ backspaceUnindents

bool Scintilla::Document::backspaceUnindents

◆ cb

◆ charClass

CharClassify Scintilla::Document::charClass
private

◆ charMap

CharacterCategoryMap Scintilla::Document::charMap
private

◆ dbcsCodePage

◆ decorations

◆ durationStyleOneLine

ActionDuration Scintilla::Document::durationStyleOneLine

◆ endStyled

Sci::Position Scintilla::Document::endStyled
private

Definition at line 235 of file Document.h.

Referenced by Document(), SetStyleFor(), SetStyles(), and StartStyling().

◆ enteredModification

int Scintilla::Document::enteredModification
private

Definition at line 237 of file Document.h.

Referenced by DeleteChars(), Document(), InsertString(), Redo(), TentativeUndo(), and Undo().

◆ enteredReadOnlyCount

int Scintilla::Document::enteredReadOnlyCount
private

Definition at line 239 of file Document.h.

Referenced by CheckReadOnly(), and Document().

◆ enteredStyling

int Scintilla::Document::enteredStyling
private

Definition at line 238 of file Document.h.

Referenced by Document(), EnsureStyledTo(), SetStyleFor(), and SetStyles().

◆ eolMode

◆ indentInChars

int Scintilla::Document::indentInChars

Definition at line 279 of file Document.h.

Referenced by Document(), and Scintilla::Editor::WndProc().

◆ insertion

std::string Scintilla::Document::insertion
private

Definition at line 242 of file Document.h.

Referenced by ChangeInsertion(), and InsertString().

◆ insertionSet

bool Scintilla::Document::insertionSet
private

Definition at line 241 of file Document.h.

Referenced by ChangeInsertion(), Document(), and InsertString().

◆ lineEndBitSet

int Scintilla::Document::lineEndBitSet

Definition at line 277 of file Document.h.

Referenced by Document(), SetDBCSCodePage(), and SetLineEndTypesAllowed().

◆ matchesValid

bool Scintilla::Document::matchesValid
private

Definition at line 256 of file Document.h.

Referenced by Document().

◆ pcf

std::unique_ptr<CaseFolder> Scintilla::Document::pcf
private

Definition at line 234 of file Document.h.

Referenced by FindText(), and HasCaseFolder().

◆ perLineData

std::unique_ptr<PerLine> Scintilla::Document::perLineData[ldSize]
private

◆ pli

std::unique_ptr<LexInterface> Scintilla::Document::pli
private

Definition at line 258 of file Document.h.

Referenced by EnsureStyledTo(), GetLexInterface(), and LineEndTypesSupported().

◆ refCount

int Scintilla::Document::refCount
private

Definition at line 230 of file Document.h.

Referenced by AddRef(), Document(), and Release().

◆ regex

std::unique_ptr<RegexSearchBase> Scintilla::Document::regex
private

Definition at line 257 of file Document.h.

Referenced by FindText(), and SubstituteByPosition().

◆ styleClock

int Scintilla::Document::styleClock
private

Definition at line 236 of file Document.h.

Referenced by Document(), and IncrementStyleClock().

◆ tabInChars

◆ tabIndents

bool Scintilla::Document::tabIndents

Definition at line 282 of file Document.h.

Referenced by Document(), Scintilla::Editor::Indent(), and Scintilla::Editor::WndProc().

◆ useTabs

bool Scintilla::Document::useTabs

◆ watchers

std::vector<WatcherWithUserData> Scintilla::Document::watchers
private

The documentation for this class was generated from the following files: