Nevron Open Vision Documentation
Nevron.Nov Namespace / NStringParser Class / ReadToCloseChar Method
The index at which the token starts.
The index at which the token ends (i.e. the index of the char before close char).


In This Topic
    ReadToCloseChar Method
    In This Topic

    Reads to the given close char, regarding other open and close chars as nested scopes. For example the following string will be read as a single token and not only to the first closing brace:

    {

    p.test { font-family:verdana,sans-serif;font-size:14px; }

    }

    Syntax
    'Declaration
     
    
    Protected Function ReadToCloseChar( _
       ByVal openChar As System.Char, _
       ByVal closeChar As System.Char, _
       ByRef startIndex As System.Integer, _
       ByRef endIndex As System.Integer _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NStringParser
    Dim openChar As System.Char
    Dim closeChar As System.Char
    Dim startIndex As System.Integer
    Dim endIndex As System.Integer
    Dim value As System.Boolean
     
    value = instance.ReadToCloseChar(openChar, closeChar, startIndex, endIndex)
    protected System.bool ReadToCloseChar( 
       System.char openChar,
       System.char closeChar,
       out System.int startIndex,
       out System.int endIndex
    )

    Parameters

    openChar
    closeChar
    startIndex
    The index at which the token starts.
    endIndex
    The index at which the token ends (i.e. the index of the char before close char).
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also