edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
edbee::TextScope Class Reference

This class defines a full text-scope. A full textscope is textscope with one ore more scoped-elements. More...

#include <textdocumentscopes.h>

+ Collaboration diagram for edbee::TextScope:

Public Member Functions

const QString name ()
 This method returns the name of this scope.
 
int atomCount ()
 returns the number of atom items
 
TextScopeAtomId atomAt (int idx) const
 This method returns the atom at the given index.
 
bool startsWith (TextScope *scope)
 Checks if the current scope starts with the given scope wild-card atoms will always match.
 
int rindexOf (TextScope *scope)
 This method returns the 'index' of the given full-scope. This is a kind of substring search.
 

Friends

class TextScopeManager
 

Detailed Description

This class defines a full text-scope. A full textscope is textscope with one ore more scoped-elements.

Member Function Documentation

◆ atomAt()

TextScopeAtomId edbee::TextScope::atomAt ( int idx) const

This method returns the atom at the given index.

◆ atomCount()

int edbee::TextScope::atomCount ( )

returns the number of atom items

◆ name()

const QString edbee::TextScope::name ( )

This method returns the name of this scope.

◆ rindexOf()

int edbee::TextScope::rindexOf ( TextScope * scope)

This method returns the 'index' of the given full-scope. This is a kind of substring search.

  • wildcard atoms will always match
Parameters
scopethe scope to search
Returns
-1 if not found else the index where the scope is found

◆ startsWith()

bool edbee::TextScope::startsWith ( TextScope * scope)

Checks if the current scope starts with the given scope wild-card atoms will always match.

Parameters
scopethe scope to check

Friends And Related Symbol Documentation

◆ TextScopeManager

friend class TextScopeManager
friend

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