31 references to WordParserOptions
Microsoft.CodeAnalysis.Analyzers (31)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\UriExtensions.cs (1)
67
var parser = new WordParser(symbol.Name,
WordParserOptions
.SplitCompoundWords);
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (27)
54
private 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.
76
public 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.
99
public WordParser(string text,
WordParserOptions
options, char prefix)
101
if (options is <
WordParserOptions
.None or > (
WordParserOptions
.IgnoreMnemonicsIndicators |
WordParserOptions
.SplitCompoundWords))
103
throw 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.
136
internal 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.
163
internal 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.
202
public 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.
236
internal 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 (&) embedded within words.
26
/// Indicates that <see cref="WordParser.Parse(string,
WordParserOptions
)"/> should split compound words.