Method FindCommandMatches
FindCommandMatches(string)
Finds all dictation command matches in the text for highlighting purposes.
public static IReadOnlyList<CommandMatch> FindCommandMatches(string text)
Parameters
textstringThe text to search for commands.
Returns
- IReadOnlyList<CommandMatch>
A read-only collection of CommandMatch instances representing each matched command's position and length in the source text. Matches are sorted by start position and do not overlap.