Class StringWithNoEscape
Ranges with multi-character start and end tokens (e.g. /* */
)
Implements
Inherited Members
Namespace: FluentMigrator.Runner.BatchParser.RangeSearchers
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class StringWithNoEscape : IRangeSearcher
Remarks
Escaping is not supported.
Constructors
StringWithNoEscape(string, bool)
Initializes a new instance of the StringWithNoEscape class.
Declaration
public StringWithNoEscape(string startAndEndCode, bool isComment = false)
Parameters
Type | Name | Description |
---|---|---|
string | startAndEndCode | The start- and end code string |
bool | isComment | Is this range a comment? |
StringWithNoEscape(string, string, bool)
Initializes a new instance of the StringWithNoEscape class.
Declaration
public StringWithNoEscape(string startCode, string endCode, bool isComment = false)
Parameters
Type | Name | Description |
---|---|---|
string | startCode | The start code |
string | endCode | The end code |
bool | isComment | Is this range a comment? |
Properties
EndCodeLength
Gets the length of the end code
Declaration
public int EndCodeLength { get; }
Property Value
Type | Description |
---|---|
int |
IsComment
Is this range a comment?
Declaration
public bool IsComment { get; }
Property Value
Type | Description |
---|---|
bool |
StartCodeLength
Gets the length of the start code
Declaration
public int StartCodeLength { get; }
Property Value
Type | Description |
---|---|
int |
Methods
FindEndCode(ILineReader)
Search for an end code
Declaration
public EndCodeSearchResult FindEndCode(ILineReader reader)
Parameters
Type | Name | Description |
---|---|---|
ILineReader | reader | The reader where the end code is searched |
Returns
Type | Description |
---|---|
EndCodeSearchResult |
|
FindStartCode(ILineReader)
Gets the index into the reader
where the start code was found
Declaration
public int FindStartCode(ILineReader reader)
Parameters
Type | Name | Description |
---|---|---|
ILineReader | reader | The reader where the start code is searched |
Returns
Type | Description |
---|---|
int |
|