SequenceReader<T>.TryAdvanceToAny Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches for any of a number of specified delimiters and optionally advances past the first one to be found.
public bool TryAdvanceToAny (ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true);
public bool TryAdvanceToAny (scoped ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true);
member this.TryAdvanceToAny : ReadOnlySpan<'T (requires 'T : struct)> * bool -> bool
Public Function TryAdvanceToAny (delimiters As ReadOnlySpan(Of T), Optional advancePastDelimiter As Boolean = true) As Boolean
Parameters
- delimiters
- ReadOnlySpan<T>
The delimiters to search for.
- advancePastDelimiter
- Boolean
true
to move past the first instance of any of the given delimiters
; false
to not move past the delimiter.
Returns
true
if any of the given delimiters
was found; otherwise, false
.
Applies to
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.