Parasol Framework
  • Gallery
  • API
  • Wiki
  • GitHub
    • Audio
    • Core
    • Display
    • Fluid
    • Font
    • Network
    • Vector
    • Audio
    • Sound
    • File
    • MetaClass
    • Module
    • StorageDevice
    • Task
    • Thread
    • Time
    • Compression
    • Config
    • Script
    • XML
    • Controller
    • BlurFX
    • ColourFX
    • CompositeFX
    • ConvolveFX
    • DisplacementFX
    • FilterEffect
    • FloodFX
    • ImageFX
    • LightingFX
    • MergeFX
    • MorphologyFX
    • OffsetFX
    • RemapFX
    • SourceFX
    • TurbulenceFX
    • WaveFunctionFX
    • Scintilla
    • ScintillaSearch
    • Bitmap
    • Clipboard
    • Display
    • Document
    • Font
    • Picture
    • Pointer
    • Surface
    • SVG
    • ClientSocket
    • HTTP
    • NetSocket
    • Proxy
    • Vector
    • VectorClip
    • VectorColour
    • VectorEllipse
    • VectorFilter
    • VectorGradient
    • VectorGroup
    • VectorImage
    • VectorPath
    • VectorPattern
    • VectorPolygon
    • VectorRectangle
    • VectorScene
    • VectorShape
    • VectorSpiral
    • VectorText
    • VectorTransition
    • VectorViewport
    • VectorWave

ScintillaSearch Class

Provides search functionality for use on Scintilla objects.

Structure

The ScintillaSearch class consists of the following fields:

Access
NameTypeComment
  EndINTEnd of the current/most recent selection
  FlagsSTFOptional flags.

Optional flags that affect the search process are specified here.

NameDescription
STF::BACKWARDSSearch backwards.
STF::CASECase sensitive search.
STF::EXPRESSIONSearch text is a regular expression.
STF::MOVE_CURSORThe cursor is moved to the discovered string. If not set, the string is auto-selected.
STF::SCAN_SELECTIONLimit search to within the user's current selection.
STF::WRAPWrap search at the end of the document.
  Scintilla*ScintillaTargets a Scintilla object for searching.

A Scintilla object must be targeted in this field in order to perform the search process.

  StartINTStart of the current/most recent selection
  TextCSTRINGThe string sequence to search for.

This field defines the string sequence that will be searched for when calling either Find(), Next() or Prev().

Methods

The following methods are currently supported:

FindSearches for a specific text string.
ERR ss::Find(OBJECTPTR Object, INT * Pos, STF Flags)
ParameterDescription
PosThe position to start searching from. Set to -1 to start from the cursor position. This parameter is updated with the byte position of the discovered string sequence.
FlagsOptional flags.

Call Find to initiate a string search within the targeted Scintilla object. The method will scan for the first instance of the Text string sequence and return its position in Pos. The Flags parameter defines special options that affect the search process.

To find subsequent string matches, call one of either the Next() or Prev() methods.

NextContinues a text search.
ERR ss::Next(OBJECTPTR Object, INT * Pos)
ParameterDescription
PosThe byte-position of the discovered string sequence is returned here.

Use Next to continue a search after calling the Find() method. If a string sequence matching that of Text is discovered, its byte position will be returned in the Pos parameter. If a new match is not discovered then ERR::Search is returned to indicate an end to the search.

PrevContinues a text search in reverse.
ERR ss::Prev(OBJECTPTR Object, INT * Pos)
ParameterDescription
PosThe byte-position of the discovered string is returned here.

The Prev() method operates under the same circumstances as Next(), except that the search will be in reverse. Please refer to Next() for further information.

ScintillaSearch class documentation © Paul Manias © 2005-2025

STF Type

Scintilla search flags.

NameDescription
STF::BACKWARDSSearch backwards.
STF::CASECase sensitive search.
STF::EXPRESSIONSearch text is a regular expression.
STF::MOVE_CURSORThe cursor is moved to the discovered string. If not set, the string is auto-selected.
STF::SCAN_SELECTIONLimit search to within the user's current selection.
STF::WRAPWrap search at the end of the document.
ScintillaSearch module documentation © Paul Manias © 2005-2025