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 Namespace Reference

Styling buffer using one element for each run rather than using a filled buffer. More...

Classes

class  Accessor
 
class  Action
 Actions are used to store all the information required to perform one undo/redo step. More...
 
class  ActionDuration
 The ActionDuration class stores the average time taken for some action such as styling or wrapping a line. More...
 
class  AutoComplete
 
class  AutoLineLayout
 Convenience class to ensure LineLayout objects are always disposed. More...
 
class  AutoSurface
 A smart pointer class to ensure Surfaces are set up and deleted correctly. More...
 
class  BreakFinder
 
class  CallTip
 
class  Caret
 
struct  CaretPolicies
 
struct  CaretPolicy
 
class  CaseFolder
 
class  CaseFolderTable
 
class  CaseFolderUnicode
 
class  Catalogue
 
class  CatalogueModules
 
class  CellBuffer
 Holder for an expandable array of characters that supports undo and line markers. More...
 
class  CharacterCategoryMap
 
class  CharacterIndexer
 
class  CharacterSet
 
class  CharClassify
 
struct  Chunk
 
class  ColourAlpha
 Holds an RGBA colour. More...
 
class  ColourDesired
 
class  ColourOptional
 
class  ColourStop
 Holds an element of a gradient with an RGBA colour and a relative position. More...
 
class  Converter
 Encapsulate g_iconv safely. More...
 
struct  CountWidths
 
class  DefaultLexer
 
class  DocModification
 To optimise processing of document modifications by DocWatchers, a hint is passed indicating the scope of the change. More...
 
class  Document
 
class  DocWatcher
 A class that wants to receive notifications from a Document must be derived from DocWatcher and implement the notification methods. More...
 
class  DynamicLibrary
 Dynamic Library (DLL/SO/...) loading. More...
 
struct  EdgeProperties
 
class  EditModel
 
class  Editor
 
class  EditView
 EditView draws the main text area. More...
 
class  ElapsedPeriod
 
struct  FillResult
 
class  Font
 
class  FontAlias
 
struct  FontMeasurements
 
struct  FontParameters
 Font management. More...
 
class  FontRealised
 
struct  FontSpecification
 
struct  ForeBackColours
 
class  GObjectWatcher
 
class  HighlightDelimiter
 
class  ICaseConverter
 
class  IContractionState
 
class  IDecoration
 
class  IDecorationList
 
class  Idler
 
class  IDocument
 
class  IDocumentWithLineEnd
 
class  ILexer
 
class  ILexerWithIdentity
 
class  ILexerWithMetaData
 
class  ILexerWithSubStyles
 
class  ILineVector
 
class  IListBoxDelegate
 
class  Indicator
 
struct  IntegerRectangle
 
class  KeyMap
 
class  KeyModifiers
 
class  KeyToCommand
 
class  LexAccessor
 
class  LexerBase
 
class  LexerModule
 A LexerModule is responsible for lexing and folding a particular language. More...
 
class  LexerNoExceptions
 
class  LexerSimple
 
struct  LexicalClass
 
class  LexInterface
 
class  LineAnnotation
 
class  LineLayout
 
class  LineLayoutCache
 
class  LineLevels
 
class  LineMarker
 
class  LineMarkers
 
class  LineState
 
class  LineTabstops
 
class  ListBox
 
struct  ListBoxEvent
 Listbox management. More...
 
class  MarginStyle
 
class  MarginView
 MarginView draws the margins. More...
 
struct  MarkerHandleNumber
 This holds the marker identifier and the marker type to display. More...
 
class  MarkerHandleSet
 A marker handle set contains any number of MarkerHandleNumbers. More...
 
class  Menu
 Menu management. More...
 
class  OptionSet
 
class  Partitioning
 Divide an interval into multiple partitions. More...
 
class  PerLine
 
class  Platform
 Platform class used to retrieve system wide parameters such as double click speed and chrome colour. More...
 
class  Point
 A geometric point class. More...
 
class  PointDocument
 A point in document space. More...
 
class  PositionCache
 
class  PositionCacheEntry
 
class  PRectangle
 A geometric rectangle class. More...
 
struct  PrintParameters
 
class  PropSetSimple
 
class  Range
 The range class represents a range of text in a document. More...
 
struct  RegexError
 
class  RegexSearchBase
 Interface class for regular expression searching. More...
 
class  Representation
 
class  RESearch
 
class  RGBAImage
 A translucent image stored as a sequence of RGBA bytes. More...
 
class  RGBAImageSet
 A collection of RGBAImage pixmaps indexed by integer id. More...
 
class  RunStyles
 
class  ScintillaBase
 
class  ScintillaGTK
 
class  ScintillaGTKAccessible
 
class  Selection
 
class  SelectionPosition
 
struct  SelectionRange
 
struct  SelectionSegment
 
class  SelectionText
 Hold a piece of text selected for copying or dragging, along with encoding and selection format information. More...
 
class  SparseState
 
class  SparseVector
 
class  SpecialRepresentations
 
class  SplitVector
 
class  SplitVectorWithRangeAdd
 A split vector of integers with a method for adding a value to all elements in a range. More...
 
class  Style
 
struct  StyleAndColour
 
class  StyleContext
 
struct  StyledText
 
class  SubStyles
 
class  Surface
 A surface abstracts a place to draw. More...
 
class  SurfaceImpl
 
struct  TextSegment
 
class  Timer
 
class  UndoGroup
 
class  UndoHistory
 
class  UniqueStringSet
 
class  ViewStyle
 
class  Window
 Class to hide the details of window manipulation. More...
 
class  WordClassifier
 
class  WordList
 
class  WorkNeeded
 When platform has a way to generate an event before painting, accumulate needed styling range and other work items in WorkNeeded to avoid unnecessary work inside paint handler. More...
 
struct  WrapPending
 
class  XPM
 Hold a pixmap in XPM format. More...
 

Typedefs

typedef float XYPOSITION
 
typedef double XYACCUMULATOR
 
typedef void * FontID
 
typedef void * SurfaceID
 
typedef void * WindowID
 
typedef void * MenuID
 
typedef void * TickerID
 
typedef void * Function
 
typedef void * IdlerID
 
typedef bool(* PFNIsCommentLeader) (Accessor &styler, Sci_Position pos, Sci_Position len)
 
typedef void(* LexerFunction) (Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler)
 
typedef ILexer *(* LexerFactoryFunction) ()
 
typedef void(* DrawTabArrowFn) (Surface *surface, PRectangle rcTab, int ymid)
 
typedef void(* DrawLineMarkerFn) (Surface *surface, PRectangle &rcWhole, Font &fontForCharacter, int tFold, int marginStyle, const void *lineMarker)
 
typedef void(* DrawWrapMarkerFn) (Surface *surface, PRectangle rcPlace, bool isEndMarker, ColourDesired wrapColour)
 
typedef std::vector< int > TabstopList
 
typedef std::map< unsigned int, RepresentationMapRepresentation
 
using UniqueString = std::unique_ptr< const char[]>
 
typedef std::map< FontSpecification, std::unique_ptr< FontRealised > > FontMap
 

Enumerations

enum  { dvOriginal =0 , dvLineEnd =1 }
 
enum  { lvOriginal =0 , lvSubStyles =1 , lvMetaData =2 , lvIdentity =3 }
 
enum  { wsSpace =1 , wsTab =2 , wsSpaceTab =4 , wsInconsistent =8 }
 
enum  CharacterCategory {
  ccLu , ccLl , ccLt , ccLm ,
  ccLo , ccMn , ccMc , ccMe ,
  ccNd , ccNl , ccNo , ccPc ,
  ccPd , ccPs , ccPe , ccPi ,
  ccPf , ccPo , ccSm , ccSc ,
  ccSk , ccSo , ccZs , ccZl ,
  ccZp , ccCc , ccCf , ccCs ,
  ccCo , ccCn
}
 
enum class  EncodingType { eightBit , unicode , dbcs }
 
enum  CaseConversion { CaseConversionFold , CaseConversionUpper , CaseConversionLower }
 
enum  actionType { insertAction , removeAction , startAction , containerAction }
 
enum class  EncodingFamily { eightBit , unicode , dbcs }
 
enum  DrawPhase {
  drawBack = 0x1 , drawIndicatorsBack = 0x2 , drawText = 0x4 , drawIndentationGuides = 0x8 ,
  drawIndicatorsFore = 0x10 , drawSelectionTranslucent = 0x20 , drawLineTranslucent = 0x40 , drawFoldLines = 0x80 ,
  drawCarets = 0x100 , drawAll = 0x1FF
}
 The view may be drawn in separate phases. More...
 
enum  PointEnd { peDefault = 0x0 , peLineEnd = 0x1 , peSubLineEnd = 0x2 }
 
enum  { UTF8MaskWidth =0x7 , UTF8MaskInvalid =0x8 }
 
enum  { SURROGATE_LEAD_FIRST = 0xD800 }
 
enum  { SURROGATE_LEAD_LAST = 0xDBFF }
 
enum  { SURROGATE_TRAIL_FIRST = 0xDC00 }
 
enum  { SURROGATE_TRAIL_LAST = 0xDFFF }
 
enum  { SUPPLEMENTAL_PLANE_FIRST = 0x10000 }
 
enum  IndentView { ivNone , ivReal , ivLookForward , ivLookBoth }
 
enum  WhiteSpaceVisibility { wsInvisible =0 , wsVisibleAlways =1 , wsVisibleAfterIndent =2 , wsVisibleOnlyInIndent =3 }
 
enum  TabDrawMode { tdLongArrow =0 , tdStrikeOut =1 }
 
enum class  WrapMode { none , word , character , whitespace }
 

Functions

std::string ConvertText (const char *s, size_t len, const char *charSetDest, const char *charSetSource, bool transliterations, bool silent)
 
CharacterCategory CategoriseCharacter (int character)
 
bool IsIdStart (int character)
 
bool IsIdContinue (int character)
 
bool IsXidStart (int character)
 
bool IsXidContinue (int character)
 
int CompareCaseInsensitive (const char *a, const char *b) noexcept
 
int CompareNCaseInsensitive (const char *a, const char *b, size_t len) noexcept
 
constexpr bool IsASpace (int ch) noexcept
 
constexpr bool IsASpaceOrTab (int ch) noexcept
 
constexpr bool IsADigit (int ch) noexcept
 
bool IsADigit (int ch, int base) noexcept
 
constexpr bool IsASCII (int ch) noexcept
 
constexpr bool IsLowerCase (int ch) noexcept
 
constexpr bool IsUpperCase (int ch) noexcept
 
constexpr bool IsUpperOrLowerCase (int ch) noexcept
 
constexpr bool IsAlphaNumeric (int ch) noexcept
 
constexpr bool isspacechar (int ch) noexcept
 Check if a character is a space. More...
 
constexpr bool iswordchar (int ch) noexcept
 
constexpr bool iswordstart (int ch) noexcept
 
bool isoperator (int ch) noexcept
 
template<typename T >
MakeUpperCase (T ch) noexcept
 
template<typename T >
MakeLowerCase (T ch) noexcept
 
int Maximum (int a, int b) noexcept
 
template<typename T , size_t count>
void StringCopy (T(&dest)[count], const T *source)
 
ICaseConverterConverterFor (enum CaseConversion conversion)
 
const char * CaseConvert (int character, enum CaseConversion conversion)
 
size_t CaseConvertString (char *converted, size_t sizeConverted, const char *mixed, size_t lenMixed, enum CaseConversion conversion)
 
std::string CaseConvertString (const std::string &s, enum CaseConversion conversion)
 
std::unique_ptr< IContractionStateContractionStateCreate (bool largeDocument)
 
bool DBCSIsLeadByte (int codePage, char ch) noexcept
 
constexpr bool IsDBCSCodePage (int codePage) noexcept
 
std::unique_ptr< IDecorationDecorationCreate (bool largeDocument, int indicator)
 
std::unique_ptr< IDecorationListDecorationListCreate (bool largeDocument)
 
RegexSearchBaseCreateRegexSearch (CharClassify *charClassTable)
 Factory function for RegexSearchBase. More...
 
constexpr int LevelNumber (int level) noexcept
 
bool ValidStyledText (const ViewStyle &vs, size_t styleOffset, const StyledText &st) noexcept
 
static int WidthStyledText (Surface *surface, const ViewStyle &vs, int styleOffset, const char *text, const unsigned char *styles, size_t len)
 
int WidestLineWidth (Surface *surface, const ViewStyle &vs, int styleOffset, const StyledText &st)
 
void DrawTextNoClipPhase (Surface *surface, PRectangle rc, const Style &style, XYPOSITION ybase, const char *s, int len, DrawPhase phase)
 
void DrawStyledText (Surface *surface, const ViewStyle &vs, int styleOffset, PRectangle rcText, const StyledText &st, size_t start, size_t length, DrawPhase phase)
 
void ExternalLexerLoad (const char *path)
 
void DrawWrapMarker (Surface *surface, PRectangle rcPlace, bool isEndMarker, ColourDesired wrapColour)
 
static int SubstituteMarkerIfEmpty (int markerCheck, int markerDefault, const ViewStyle &vs) noexcept
 
constexpr bool IsEOLChar (int ch) noexcept
 
constexpr bool IsSpaceOrTab (int ch) noexcept
 
size_t UTF8Length (const wchar_t *uptr, size_t tlen) noexcept
 
void UTF8FromUTF16 (const wchar_t *uptr, size_t tlen, char *putf, size_t len) noexcept
 
void UTF8FromUTF32Character (int uch, char *putf) noexcept
 
size_t UTF16Length (const char *s, size_t len) noexcept
 
constexpr unsigned char TrailByteValue (unsigned char c)
 
size_t UTF16FromUTF8 (const char *s, size_t len, wchar_t *tbuf, size_t tlen)
 
size_t UTF32Length (const char *s, size_t len) noexcept
 
size_t UTF32FromUTF8 (const char *s, size_t len, unsigned int *tbuf, size_t tlen)
 
std::wstring WStringFromUTF8 (const char *s, size_t len)
 
unsigned int UTF16FromUTF32Character (unsigned int val, wchar_t *tbuf) noexcept
 
int UTF8Classify (const unsigned char *us, size_t len) noexcept
 
int UTF8DrawBytes (const unsigned char *us, int len) noexcept
 
bool UTF8IsValid (const char *s, size_t len) noexcept
 
std::string FixInvalidUTF8 (const std::string &text)
 
int UnicodeFromUTF8 (const unsigned char *us) noexcept
 
constexpr bool UTF8IsTrailByte (unsigned char ch) noexcept
 
constexpr bool UTF8IsAscii (int ch) noexcept
 
bool UTF8IsSeparator (const unsigned char *us) noexcept
 
bool UTF8IsNEL (const unsigned char *us) noexcept
 
constexpr bool UTF8IsMultibyteLineEnd (unsigned char ch0, unsigned char ch1, unsigned char ch2) noexcept
 
constexpr unsigned int UTF16CharLength (wchar_t uch) noexcept
 
constexpr unsigned int UTF16LengthFromUTF8ByteCount (unsigned int byteCount) noexcept
 
UniqueString UniqueStringCopy (const char *text)
 Equivalent to strdup but produces a std::unique_ptr<const char[]> allocation to go into collections. More...
 
constexpr bool IsNullOrEmpty (const char *text) noexcept
 

Variables

const GIConv iconvhBad = (GIConv)(-1)
 
const gsize sizeFailure = static_cast<gsize>(-1)
 
constexpr const float componentMaximum = 255.0f
 Holds an RGB colour with 8 bits for each component. More...
 
constexpr size_t maxExpansionCaseConversion = 3
 
const unsigned char UTF8BytesOfLead [256]
 
constexpr int UTF8MaxBytes = 4
 
constexpr int unicodeReplacementChar = 0xFFFD
 
constexpr int UTF8SeparatorLength = 3
 
constexpr int UTF8NELLength = 2
 

Detailed Description

Styling buffer using one element for each run rather than using a filled buffer.

Typedef Documentation

◆ DrawLineMarkerFn

typedef void(* Scintilla::DrawLineMarkerFn) (Surface *surface, PRectangle &rcWhole, Font &fontForCharacter, int tFold, int marginStyle, const void *lineMarker)

Definition at line 16 of file LineMarker.h.

◆ DrawTabArrowFn

typedef void(* Scintilla::DrawTabArrowFn) (Surface *surface, PRectangle rcTab, int ymid)

Definition at line 43 of file EditView.h.

◆ DrawWrapMarkerFn

typedef void(* Scintilla::DrawWrapMarkerFn) (Surface *surface, PRectangle rcPlace, bool isEndMarker, ColourDesired wrapColour)

Definition at line 15 of file MarginView.h.

◆ FontID

typedef void* Scintilla::FontID

Definition at line 87 of file Platform.h.

◆ FontMap

typedef std::map<FontSpecification, std::unique_ptr<FontRealised> > Scintilla::FontMap

Definition at line 49 of file ViewStyle.h.

◆ Function

typedef void* Scintilla::Function

Definition at line 92 of file Platform.h.

◆ IdlerID

typedef void* Scintilla::IdlerID

Definition at line 93 of file Platform.h.

◆ LexerFactoryFunction

typedef ILexer *(* Scintilla::LexerFactoryFunction) ()

Definition at line 19 of file LexerModule.h.

◆ LexerFunction

typedef void(* Scintilla::LexerFunction) (Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler)

Definition at line 17 of file LexerModule.h.

◆ MapRepresentation

typedef std::map<unsigned int, Representation> Scintilla::MapRepresentation

Definition at line 169 of file PositionCache.h.

◆ MenuID

typedef void* Scintilla::MenuID

Definition at line 90 of file Platform.h.

◆ PFNIsCommentLeader

typedef bool(* Scintilla::PFNIsCommentLeader) (Accessor &styler, Sci_Position pos, Sci_Position len)

Definition at line 19 of file Accessor.h.

◆ SurfaceID

typedef void* Scintilla::SurfaceID

Definition at line 88 of file Platform.h.

◆ TabstopList

typedef std::vector<int> Scintilla::TabstopList

Definition at line 147 of file PerLine.h.

◆ TickerID

typedef void* Scintilla::TickerID

Definition at line 91 of file Platform.h.

◆ UniqueString

using Scintilla::UniqueString = typedef std::unique_ptr<const char[]>

Definition at line 22 of file UniqueString.h.

◆ WindowID

typedef void* Scintilla::WindowID

Definition at line 89 of file Platform.h.

◆ XYACCUMULATOR

typedef double Scintilla::XYACCUMULATOR

Definition at line 82 of file Platform.h.

◆ XYPOSITION

typedef float Scintilla::XYPOSITION

Definition at line 81 of file Platform.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
dvOriginal 
dvLineEnd 

Definition at line 15 of file ILexer.h.

◆ anonymous enum

anonymous enum
Enumerator
lvOriginal 
lvSubStyles 
lvMetaData 
lvIdentity 

Definition at line 49 of file ILexer.h.

◆ anonymous enum

anonymous enum
Enumerator
wsSpace 
wsTab 
wsSpaceTab 
wsInconsistent 

Definition at line 13 of file Accessor.h.

◆ anonymous enum

anonymous enum
Enumerator
UTF8MaskWidth 
UTF8MaskInvalid 

Definition at line 54 of file UniConversion.h.

◆ anonymous enum

anonymous enum
Enumerator
SURROGATE_LEAD_FIRST 

Definition at line 81 of file UniConversion.h.

◆ anonymous enum

anonymous enum
Enumerator
SURROGATE_LEAD_LAST 

Definition at line 82 of file UniConversion.h.

◆ anonymous enum

anonymous enum
Enumerator
SURROGATE_TRAIL_FIRST 

Definition at line 83 of file UniConversion.h.

◆ anonymous enum

anonymous enum
Enumerator
SURROGATE_TRAIL_LAST 

Definition at line 84 of file UniConversion.h.

◆ anonymous enum

anonymous enum
Enumerator
SUPPLEMENTAL_PLANE_FIRST 

Definition at line 85 of file UniConversion.h.

◆ actionType

Enumerator
insertAction 
removeAction 
startAction 
containerAction 

Definition at line 28 of file CellBuffer.h.

◆ CaseConversion

Enumerator
CaseConversionFold 
CaseConversionUpper 
CaseConversionLower 

Definition at line 15 of file CaseConvert.h.

◆ CharacterCategory

Enumerator
ccLu 
ccLl 
ccLt 
ccLm 
ccLo 
ccMn 
ccMc 
ccMe 
ccNd 
ccNl 
ccNo 
ccPc 
ccPd 
ccPs 
ccPe 
ccPi 
ccPf 
ccPo 
ccSm 
ccSc 
ccSk 
ccSo 
ccZs 
ccZl 
ccZp 
ccCc 
ccCf 
ccCs 
ccCo 
ccCn 

Definition at line 13 of file CharacterCategory.h.

◆ DrawPhase

The view may be drawn in separate phases.

Enumerator
drawBack 
drawIndicatorsBack 
drawText 
drawIndentationGuides 
drawIndicatorsFore 
drawSelectionTranslucent 
drawLineTranslucent 
drawFoldLines 
drawCarets 
drawAll 

Definition at line 23 of file EditView.h.

◆ EncodingFamily

enum class Scintilla::EncodingFamily
strong
Enumerator
eightBit 
unicode 
dbcs 

Definition at line 21 of file Document.h.

◆ EncodingType

enum class Scintilla::EncodingType
strong
Enumerator
eightBit 
unicode 
dbcs 

Definition at line 13 of file LexAccessor.h.

◆ IndentView

Enumerator
ivNone 
ivReal 
ivLookForward 
ivLookBoth 

Definition at line 43 of file ViewStyle.h.

◆ PointEnd

Enumerator
peDefault 
peLineEnd 
peSubLineEnd 

Definition at line 41 of file PositionCache.h.

◆ TabDrawMode

Enumerator
tdLongArrow 
tdStrikeOut 

Definition at line 47 of file ViewStyle.h.

◆ WhiteSpaceVisibility

Enumerator
wsInvisible 
wsVisibleAlways 
wsVisibleAfterIndent 
wsVisibleOnlyInIndent 

Definition at line 45 of file ViewStyle.h.

◆ WrapMode

enum class Scintilla::WrapMode
strong
Enumerator
none 
word 
character 
whitespace 

Definition at line 51 of file ViewStyle.h.

Function Documentation

◆ CaseConvert()

const char * Scintilla::CaseConvert ( int  character,
enum CaseConversion  conversion 
)

Definition at line 804 of file CaseConvert.cxx.

References character.

◆ CaseConvertString() [1/2]

size_t Scintilla::CaseConvertString ( char *  converted,
size_t  sizeConverted,
const char *  mixed,
size_t  lenMixed,
enum CaseConversion  conversion 
)

Definition at line 811 of file CaseConvert.cxx.

Referenced by CaseConvertString(), and Scintilla::ScintillaGTK::CaseMapString().

◆ CaseConvertString() [2/2]

std::string Scintilla::CaseConvertString ( const std::string &  s,
enum CaseConversion  conversion 
)

Definition at line 818 of file CaseConvert.cxx.

References CaseConvertString(), and maxExpansionCaseConversion.

◆ CategoriseCharacter()

◆ CompareCaseInsensitive()

int Scintilla::CompareCaseInsensitive ( const char *  a,
const char *  b 
)
noexcept

Definition at line 18 of file CharacterSet.cxx.

References MakeUpperCase().

Referenced by calculateFoldCmake(), classifyWordCmake(), ColouriseBatchDoc(), and NsisCmp().

◆ CompareNCaseInsensitive()

int Scintilla::CompareNCaseInsensitive ( const char *  a,
const char *  b,
size_t  len 
)
noexcept

Definition at line 33 of file CharacterSet.cxx.

References MakeUpperCase().

Referenced by Sorter::operator()(), and Scintilla::AutoComplete::Select().

◆ ContractionStateCreate()

std::unique_ptr< IContractionState > Scintilla::ContractionStateCreate ( bool  largeDocument)

◆ ConverterFor()

ICaseConverter * Scintilla::ConverterFor ( enum CaseConversion  conversion)

Definition at line 797 of file CaseConvert.cxx.

Referenced by Scintilla::CaseFolderUnicode::CaseFolderUnicode().

◆ ConvertText()

◆ CreateRegexSearch()

RegexSearchBase * Scintilla::CreateRegexSearch ( CharClassify charClassTable)

Factory function for RegexSearchBase.

Definition at line 3308 of file Document.cxx.

Referenced by Scintilla::Document::FindText().

◆ DBCSIsLeadByte()

bool Scintilla::DBCSIsLeadByte ( int  codePage,
char  ch 
)
noexcept

Definition at line 14 of file DBCS.cxx.

◆ DecorationCreate()

std::unique_ptr< IDecoration > Scintilla::DecorationCreate ( bool  largeDocument,
int  indicator 
)

Definition at line 301 of file Decoration.cxx.

◆ DecorationListCreate()

std::unique_ptr< IDecorationList > Scintilla::DecorationListCreate ( bool  largeDocument)

Definition at line 308 of file Decoration.cxx.

Referenced by Scintilla::Document::Document().

◆ DrawStyledText()

◆ DrawTextNoClipPhase()

void Scintilla::DrawTextNoClipPhase ( Surface surface,
PRectangle  rc,
const Style style,
XYPOSITION  ybase,
const char *  s,
int  len,
DrawPhase  phase 
)

◆ DrawWrapMarker()

◆ ExternalLexerLoad()

void Scintilla::ExternalLexerLoad ( const char *  path)

Definition at line 217 of file ExternalLexer.cxx.

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

◆ FixInvalidUTF8()

std::string Scintilla::FixInvalidUTF8 ( const std::string &  text)

Definition at line 372 of file UniConversion.cxx.

References text, UTF8Classify(), UTF8MaskInvalid, and UTF8MaskWidth.

◆ IsADigit() [1/2]

◆ IsADigit() [2/2]

bool Scintilla::IsADigit ( int  ch,
int  base 
)
inlinenoexcept

Definition at line 123 of file CharacterSet.h.

◆ IsAlphaNumeric()

constexpr bool Scintilla::IsAlphaNumeric ( int  ch)
constexprnoexcept

◆ IsASCII()

◆ IsASpace()

◆ IsASpaceOrTab()

◆ IsDBCSCodePage()

constexpr bool Scintilla::IsDBCSCodePage ( int  codePage)
constexprnoexcept

Definition at line 13 of file DBCS.h.

◆ IsEOLChar()

constexpr bool Scintilla::IsEOLChar ( int  ch)
inlineconstexprnoexcept

Definition at line 13 of file PositionCache.h.

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

◆ IsIdContinue()

bool Scintilla::IsIdContinue ( int  character)

Definition at line 3990 of file CharacterCategory.cxx.

References CategoriseCharacter(), ccLl, ccLm, ccLo, ccLt, ccLu, ccMc, ccMn, ccNd, ccNl, ccPc, and character.

Referenced by IsXidContinue().

◆ IsIdStart()

bool Scintilla::IsIdStart ( int  character)

Definition at line 3975 of file CharacterCategory.cxx.

References CategoriseCharacter(), ccLl, ccLm, ccLo, ccLt, ccLu, ccNl, and character.

Referenced by IsXidStart().

◆ IsLowerCase()

constexpr bool Scintilla::IsLowerCase ( int  ch)
constexprnoexcept

◆ IsNullOrEmpty()

constexpr bool Scintilla::IsNullOrEmpty ( const char *  text)
constexprnoexcept

Definition at line 18 of file UniqueString.h.

References text.

Referenced by Scintilla::EditModel::SetDefaultFoldDisplayText().

◆ isoperator()

◆ isspacechar()

◆ IsSpaceOrTab()

constexpr bool Scintilla::IsSpaceOrTab ( int  ch)
inlineconstexprnoexcept

◆ IsUpperCase()

constexpr bool Scintilla::IsUpperCase ( int  ch)
constexprnoexcept

◆ IsUpperOrLowerCase()

constexpr bool Scintilla::IsUpperOrLowerCase ( int  ch)
constexprnoexcept

Definition at line 145 of file CharacterSet.h.

References IsLowerCase(), and IsUpperCase().

◆ iswordchar()

constexpr bool Scintilla::iswordchar ( int  ch)
constexprnoexcept

Definition at line 164 of file CharacterSet.h.

References IsAlphaNumeric().

Referenced by LexerSQL::Fold(), FoldFortranDoc(), FoldLuaDoc(), and FoldNoBoxVHDLDoc().

◆ iswordstart()

constexpr bool Scintilla::iswordstart ( int  ch)
constexprnoexcept

Definition at line 168 of file CharacterSet.h.

References IsAlphaNumeric().

Referenced by ColouriseRbDoc().

◆ IsXidContinue()

bool Scintilla::IsXidContinue ( int  character)

Definition at line 4013 of file CharacterCategory.cxx.

References character, and IsIdContinue().

◆ IsXidStart()

bool Scintilla::IsXidStart ( int  character)

Definition at line 4004 of file CharacterCategory.cxx.

References character, and IsIdStart().

◆ LevelNumber()

◆ MakeLowerCase()

template<typename T >
T Scintilla::MakeLowerCase ( ch)
inlinenoexcept

◆ MakeUpperCase()

template<typename T >
T Scintilla::MakeUpperCase ( ch)
inlinenoexcept

◆ Maximum()

int Scintilla::Maximum ( int  a,
int  b 
)
inlinenoexcept

Definition at line 70 of file LexerModule.h.

Referenced by LexerHaskell::Fold(), and FoldYAMLDoc().

◆ StringCopy()

template<typename T , size_t count>
void Scintilla::StringCopy ( T(&)  dest[count],
const T *  source 
)

Definition at line 19 of file StringCopy.h.

References count.

◆ SubstituteMarkerIfEmpty()

static int Scintilla::SubstituteMarkerIfEmpty ( int  markerCheck,
int  markerDefault,
const ViewStyle vs 
)
staticnoexcept

Definition at line 174 of file MarginView.cxx.

References SC_MARK_EMPTY.

Referenced by Scintilla::MarginView::PaintMargin().

◆ TrailByteValue()

constexpr unsigned char Scintilla::TrailByteValue ( unsigned char  c)
constexpr

Definition at line 100 of file UniConversion.cxx.

Referenced by UTF16FromUTF8(), and UTF32FromUTF8().

◆ UnicodeFromUTF8()

int Scintilla::UnicodeFromUTF8 ( const unsigned char *  us)
inlinenoexcept

◆ UniqueStringCopy()

UniqueString Scintilla::UniqueStringCopy ( const char *  text)

Equivalent to strdup but produces a std::unique_ptr<const char[]> allocation to go into collections.

Definition at line 19 of file UniqueString.cxx.

References text.

Referenced by Scintilla::UniqueStringSet::Save(), and Scintilla::EditModel::SetDefaultFoldDisplayText().

◆ UTF16CharLength()

constexpr unsigned int Scintilla::UTF16CharLength ( wchar_t  uch)
inlineconstexprnoexcept

Definition at line 87 of file UniConversion.h.

References SURROGATE_LEAD_FIRST, and SURROGATE_LEAD_LAST.

◆ UTF16FromUTF32Character()

unsigned int Scintilla::UTF16FromUTF32Character ( unsigned int  val,
wchar_t *  tbuf 
)
noexcept

◆ UTF16FromUTF8()

size_t Scintilla::UTF16FromUTF8 ( const char *  s,
size_t  len,
wchar_t *  tbuf,
size_t  tlen 
)

◆ UTF16Length()

size_t Scintilla::UTF16Length ( const char *  s,
size_t  len 
)
noexcept

Definition at line 88 of file UniConversion.cxx.

References UTF16LengthFromUTF8ByteCount(), and UTF8BytesOfLead.

Referenced by WStringFromUTF8().

◆ UTF16LengthFromUTF8ByteCount()

constexpr unsigned int Scintilla::UTF16LengthFromUTF8ByteCount ( unsigned int  byteCount)
inlineconstexprnoexcept

Definition at line 91 of file UniConversion.h.

Referenced by UTF16FromUTF8(), and UTF16Length().

◆ UTF32FromUTF8()

size_t Scintilla::UTF32FromUTF8 ( const char *  s,
size_t  len,
unsigned int *  tbuf,
size_t  tlen 
)

Definition at line 176 of file UniConversion.cxx.

References TrailByteValue(), and UTF8BytesOfLead.

Referenced by Scintilla::Editor::InsertCharacter(), and WStringFromUTF8().

◆ UTF32Length()

size_t Scintilla::UTF32Length ( const char *  s,
size_t  len 
)
noexcept

Definition at line 165 of file UniConversion.cxx.

References UTF8BytesOfLead.

Referenced by WStringFromUTF8().

◆ UTF8Classify()

◆ UTF8DrawBytes()

int Scintilla::UTF8DrawBytes ( const unsigned char *  us,
int  len 
)
noexcept

Definition at line 350 of file UniConversion.cxx.

References UTF8Classify(), UTF8MaskInvalid, and UTF8MaskWidth.

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

◆ UTF8FromUTF16()

void Scintilla::UTF8FromUTF16 ( const wchar_t *  uptr,
size_t  tlen,
char *  putf,
size_t  len 
)
noexcept

Definition at line 39 of file UniConversion.cxx.

References SURROGATE_LEAD_FIRST, and SURROGATE_TRAIL_LAST.

◆ UTF8FromUTF32Character()

void Scintilla::UTF8FromUTF32Character ( int  uch,
char *  putf 
)
noexcept

Definition at line 68 of file UniConversion.cxx.

◆ UTF8IsAscii()

◆ UTF8IsMultibyteLineEnd()

constexpr bool Scintilla::UTF8IsMultibyteLineEnd ( unsigned char  ch0,
unsigned char  ch1,
unsigned char  ch2 
)
constexprnoexcept

◆ UTF8IsNEL()

bool Scintilla::UTF8IsNEL ( const unsigned char *  us)
inlinenoexcept

◆ UTF8IsSeparator()

bool Scintilla::UTF8IsSeparator ( const unsigned char *  us)
inlinenoexcept

◆ UTF8IsTrailByte()

◆ UTF8IsValid()

bool Scintilla::UTF8IsValid ( const char *  s,
size_t  len 
)
noexcept

◆ UTF8Length()

size_t Scintilla::UTF8Length ( const wchar_t *  uptr,
size_t  tlen 
)
noexcept

Definition at line 19 of file UniConversion.cxx.

References SURROGATE_LEAD_FIRST, and SURROGATE_TRAIL_LAST.

◆ ValidStyledText()

bool Scintilla::ValidStyledText ( const ViewStyle vs,
size_t  styleOffset,
const StyledText st 
)
noexcept

◆ WidestLineWidth()

◆ WidthStyledText()

static int Scintilla::WidthStyledText ( Surface surface,
const ViewStyle vs,
int  styleOffset,
const char *  text,
const unsigned char *  styles,
size_t  len 
)
static

Definition at line 82 of file EditView.cxx.

References Scintilla::ViewStyle::styles, text, and Scintilla::Surface::WidthText().

Referenced by WidestLineWidth().

◆ WStringFromUTF8()

std::wstring Scintilla::WStringFromUTF8 ( const char *  s,
size_t  len 
)

Definition at line 229 of file UniConversion.cxx.

References UTF16FromUTF8(), UTF16Length(), UTF32FromUTF8(), and UTF32Length().

Variable Documentation

◆ componentMaximum

constexpr const float Scintilla::componentMaximum = 255.0f
constexpr

◆ iconvhBad

const GIConv Scintilla::iconvhBad = (GIConv)(-1)

◆ maxExpansionCaseConversion

constexpr size_t Scintilla::maxExpansionCaseConversion = 3
constexpr

Definition at line 34 of file CaseConvert.h.

Referenced by CaseConvertString(), and Scintilla::ScintillaGTK::CaseMapString().

◆ sizeFailure

const gsize Scintilla::sizeFailure = static_cast<gsize>(-1)

Definition at line 12 of file Converter.h.

Referenced by Scintilla::Converter::Convert(), and ConvertText().

◆ unicodeReplacementChar

constexpr int Scintilla::unicodeReplacementChar = 0xFFFD
constexpr

◆ UTF8BytesOfLead

const unsigned char Scintilla::UTF8BytesOfLead
Initial value:
= {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
}

Definition at line 254 of file UniConversion.cxx.

Referenced by Scintilla::Document::CharacterAfter(), Scintilla::Document::ExtractCharacter(), Scintilla::Document::FindText(), Scintilla::Document::GetCharacterAndWidth(), Scintilla::Document::InGoodUTF8(), Scintilla::Document::LenChar(), Scintilla::SurfaceImpl::MeasureWidths(), Scintilla::Document::NextPosition(), Scintilla::Document::SafeSegment(), UnicodeFromUTF8(), UTF16FromUTF8(), UTF16Length(), UTF32FromUTF8(), UTF32Length(), and UTF8Classify().

◆ UTF8MaxBytes

◆ UTF8NELLength

constexpr int Scintilla::UTF8NELLength = 2
constexpr

Definition at line 69 of file UniConversion.h.

Referenced by Scintilla::Document::LineEnd().

◆ UTF8SeparatorLength

constexpr int Scintilla::UTF8SeparatorLength = 3
constexpr