C# Class SILUBS.SharedScrUtils.TextTokenSubstring

Class that represents a sub-string of one or more consecutive source tokens
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
AddToken ( ITextToken token ) : void

Adds a token.

TextTokenSubstring ( ITextToken token, int offset, int length ) : System

Initializes a new instance of the TextTokenSubstring class with a single source token.

TextTokenSubstring ( ITextToken token, int offset, int length, string msg ) : System

Initializes a new instance of the TextTokenSubstring class with a single source token.

TextTokenSubstring ( TextTokenSubstring tts, string msg ) : System

Initializes a new instance of the TextTokenSubstring class based on another TextTokenSubstring, but having a different Message.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

operator ( ) : TextTokenSubstring

Implements the operator ++.

Method Details

AddToken() public method

Adds a token.
public AddToken ( ITextToken token ) : void
token ITextToken
return void

TextTokenSubstring() public method

Initializes a new instance of the TextTokenSubstring class with a single source token.
public TextTokenSubstring ( ITextToken token, int offset, int length ) : System
token ITextToken The token.
offset int The offset.
length int The length.
return System

TextTokenSubstring() public method

Initializes a new instance of the TextTokenSubstring class with a single source token.
public TextTokenSubstring ( ITextToken token, int offset, int length, string msg ) : System
token ITextToken The token.
offset int The offset.
length int The length.
msg string The error message.
return System

TextTokenSubstring() public method

Initializes a new instance of the TextTokenSubstring class based on another TextTokenSubstring, but having a different Message.
public TextTokenSubstring ( TextTokenSubstring tts, string msg ) : System
tts TextTokenSubstring The instance to copy from.
msg string The message.
return System

ToString() public method

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
return string

operator() public static method

Implements the operator ++.
public static operator ( ) : TextTokenSubstring
return TextTokenSubstring