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; }
}
protected System.bool ReadToCloseChar(
System.char ,
System.char ,
out System.int ,
out System.int
)
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).
Return Value
True if there are more chars to read or false if the parser has reached its end position.
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)