edbee - Qt Editor Library
Public Member Functions | Friends | List of all members
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. More...
 
int atomCount ()
 returns the number of atom items More...
 
TextScopeAtomId atomAt (int idx) const
 This method returns the atom at the given index. More...
 
bool startsWith (TextScope *scope)
 Checks if the current scope starts with the given scope wild-card atoms will always match. More...
 
int rindexOf (TextScope *scope)
 This method returns the 'index' of the given full-scope. This is a kind of substring search. More...
 

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 Function Documentation

◆ TextScopeManager

friend class TextScopeManager
friend

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