The Psyche Project
Public Member Functions | List of all members
psy::TextSpan Class Reference

The TextSpan class. More...

#include <TextSpan.h>

Public Member Functions

 TextSpan (unsigned int start, unsigned int end)
 
unsigned int start () const
 
unsigned int end () const
 

Detailed Description

The TextSpan class.

An abstraction representation of an immutable span of text.

Attention
The memory under which a piece of text is stored is unknown to this class; it is reponsibility of the user to employ this abstraction in consistent manner.
Note
This API is inspired by that of Microsoft.CodeAnalysis.Text.TextSpan from Roslyn, the .NET Compiler Platform.

Member Function Documentation

◆ end()

unsigned int psy::TextSpan::end ( ) const
inline

The end of this span.

◆ start()

unsigned int psy::TextSpan::start ( ) const
inline

The start of this span.


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