Search Results for

    Show / Hide Table of Contents

    Class CharWithEscapeByDuplication

    Utility class that handles single-character ranges (e.g. 'text') where the end characters might be duplicated to escape it.

    Inheritance
    object
    CharWithEscapeByDuplication
    MySqlIdentifier
    SqlServerIdentifier
    SqlString
    Implements
    IRangeSearcher
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.BatchParser.RangeSearchers
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public class CharWithEscapeByDuplication : IRangeSearcher

    Constructors

    CharWithEscapeByDuplication(char, bool)

    Initializes a new instance of the CharWithEscapeByDuplication class.

    Declaration
    public CharWithEscapeByDuplication(char startAndEndChar, bool isComment = false)
    Parameters
    Type Name Description
    char startAndEndChar

    The character used for start and end

    bool isComment

    Is this a comment

    CharWithEscapeByDuplication(char, char, bool)

    Initializes a new instance of the CharWithEscapeByDuplication class.

    Declaration
    public CharWithEscapeByDuplication(char startChar, char endChar, bool isComment = false)
    Parameters
    Type Name Description
    char startChar

    The start character

    char endChar

    The end character

    bool isComment

    Is this 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

    null when the end code couldn't be found (or a nested start code)

    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

    -1 when the start code couldn't be found

    Implements

    IRangeSearcher
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.