31 references to WordParserOptions
Microsoft.CodeAnalysis.AnalyzerUtilities (31)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\UriExtensions.cs (1)
67var parser = new WordParser(symbol.Name, WordParserOptions.SplitCompoundWords);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (27)
54private readonly WordParserOptions _options; 68/// One or more of the <see cref="WordParserOptions"/> specifying parsing and delimiting options. 74/// <paramref name="options"/> is not one or more of the <see cref="WordParserOptions"/> values. 76public WordParser(string text, WordParserOptions options) : this(text, options, NullChar) 87/// One or more of the <see cref="WordParserOptions"/> specifying parsing and delimiting options. 97/// <paramref name="options"/> is not one or more of the <see cref="WordParserOptions"/> values. 99public WordParser(string text, WordParserOptions options, char prefix) 101if (options is < WordParserOptions.None or > (WordParserOptions.IgnoreMnemonicsIndicators | WordParserOptions.SplitCompoundWords)) 103throw new ArgumentException($"'{(int)options}' is invalid for enum type '{nameof(WordParserOptions)}'", nameof(options)); 113(_options & WordParserOptions.IgnoreMnemonicsIndicators) == WordParserOptions.IgnoreMnemonicsIndicators; 116(_options & WordParserOptions.SplitCompoundWords) == WordParserOptions.SplitCompoundWords; 125/// One or more of the <see cref="WordParserOptions"/> specifying parsing and delimiting options. 134/// <paramref name="options"/> is not one or more of the <see cref="WordParserOptions"/> values. 136internal static Collection<string> Parse(string text, WordParserOptions options) 148/// One or more of the <see cref="WordParserOptions"/> specifying parsing and delimiting options. 161/// <paramref name="options"/> is not one or more of the <see cref="WordParserOptions"/> values. 163internal static Collection<string> Parse(string text, WordParserOptions options, char prefix) 184/// One or more of the <see cref="WordParserOptions"/> specifying parsing and delimiting options. 200/// <paramref name="options"/> is not one or more of the <see cref="WordParserOptions"/> values. 202public static bool ContainsWord(string text, WordParserOptions options, ImmutableArray<string> words) 214/// One or more of the <see cref="WordParserOptions"/> specifying parsing and delimiting options. 234/// <paramref name="options"/> is not one or more of the <see cref="WordParserOptions"/> values. 236internal static bool ContainsWord(string text, WordParserOptions options, char prefix, ImmutableArray<string> words)
src\RoslynAnalyzers\Utilities\Compiler\WordParserOptions.cs (3)
10/// Defines the word parsing and delimiting options for use with <see cref="WordParser.Parse(string,WordParserOptions)"/>. 21/// Indicates that <see cref="WordParser.Parse(string,WordParserOptions)"/> should ignore the mnemonic indicator characters (&amp;) embedded within words. 26/// Indicates that <see cref="WordParser.Parse(string,WordParserOptions)"/> should split compound words.