mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
spelling: locals in src/Microsoft.PowerShell.GraphicalHost
This commit is contained in:
@@ -248,12 +248,12 @@ namespace Microsoft.Management.UI.Internal
|
||||
/// Splits the string adding indentation before each line
|
||||
/// </summary>
|
||||
/// <param name="str">string to add indentation to</param>
|
||||
/// <param name="numberOfIdents">number of indentations</param>
|
||||
/// <param name="numberOfIndents">number of indentations</param>
|
||||
/// <returns>the string indented</returns>
|
||||
private static string AddIndent(string str, int numberOfIdents)
|
||||
private static string AddIndent(string str, int numberOfIndents)
|
||||
{
|
||||
StringBuilder indent = new StringBuilder();
|
||||
indent.Append(' ', numberOfIdents * HelpParagraphBuilder.IndentSize);
|
||||
indent.Append(' ', numberOfIndents * HelpParagraphBuilder.IndentSize);
|
||||
return HelpParagraphBuilder.AddIndent(str, indent.ToString());
|
||||
}
|
||||
|
||||
@@ -421,22 +421,22 @@ namespace Microsoft.Management.UI.Internal
|
||||
parameterNameOptionalCloseBrace = "]";
|
||||
}
|
||||
|
||||
string paramterPrefix = String.Format(
|
||||
string parameterPrefix = String.Format(
|
||||
CultureInfo.CurrentCulture,
|
||||
"{0}{1}-",
|
||||
parameterOptionalOpenBrace,
|
||||
parameterNameOptionalOpenBrace);
|
||||
|
||||
this.AddText(paramterPrefix, false);
|
||||
this.AddText(parameterPrefix, false);
|
||||
this.AddText(parameterName, true);
|
||||
|
||||
string paramterSuffix = String.Format(
|
||||
string parameterSuffix = String.Format(
|
||||
CultureInfo.CurrentCulture,
|
||||
"{0} {1}{2} ",
|
||||
parameterNameOptionalCloseBrace,
|
||||
parameterType,
|
||||
parameterOptionalCloseBrace);
|
||||
this.AddText(paramterSuffix, false);
|
||||
this.AddText(parameterSuffix, false);
|
||||
}
|
||||
|
||||
string commonParametersText = String.Format(
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
/// <summary>
|
||||
/// The text spans that should be highlighted
|
||||
/// </summary>
|
||||
private List<TextSpan> highlighedSpans;
|
||||
private List<TextSpan> highlightedSpans;
|
||||
|
||||
/// <summary>
|
||||
/// The text displayed
|
||||
@@ -56,7 +56,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
|
||||
this.paragraph = paragraph;
|
||||
this.boldSpans = new List<TextSpan>();
|
||||
this.highlighedSpans = new List<TextSpan>();
|
||||
this.highlightedSpans = new List<TextSpan>();
|
||||
this.textBuilder = new StringBuilder();
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
/// </summary>
|
||||
internal int HighlightCount
|
||||
{
|
||||
get { return this.highlighedSpans.Count; }
|
||||
get { return this.highlightedSpans.Count; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -100,7 +100,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
int currentBoldIndex = 0;
|
||||
TextSpan? currentBoldSpan = this.boldSpans.Count == 0 ? (TextSpan?)null : this.boldSpans[0];
|
||||
int currentHighlightedIndex = 0;
|
||||
TextSpan? currentHighlightedSpan = this.highlighedSpans.Count == 0 ? (TextSpan?)null : this.highlighedSpans[0];
|
||||
TextSpan? currentHighlightedSpan = this.highlightedSpans.Count == 0 ? (TextSpan?)null : this.highlightedSpans[0];
|
||||
|
||||
bool currentBold = false;
|
||||
bool currentHighlighted = false;
|
||||
@@ -115,7 +115,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
ParagraphBuilder.MoveSpanToPosition(ref currentBoldIndex, ref currentBoldSpan, i, this.boldSpans);
|
||||
newBold = currentBoldSpan == null ? false : currentBoldSpan.Value.Contains(i);
|
||||
|
||||
ParagraphBuilder.MoveSpanToPosition(ref currentHighlightedIndex, ref currentHighlightedSpan, i, this.highlighedSpans);
|
||||
ParagraphBuilder.MoveSpanToPosition(ref currentHighlightedIndex, ref currentHighlightedSpan, i, this.highlightedSpans);
|
||||
newHighlighted = currentHighlightedSpan == null ? false : currentHighlightedSpan.Value.Contains(i);
|
||||
|
||||
if (newBold != currentBold || newHighlighted != currentHighlighted)
|
||||
@@ -142,7 +142,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
/// <param name="wholeWord">true if we should search whole word only</param>
|
||||
internal void HighlightAllInstancesOf(string search, bool caseSensitive, bool wholeWord)
|
||||
{
|
||||
this.highlighedSpans.Clear();
|
||||
this.highlightedSpans.Clear();
|
||||
|
||||
if (search == null || search.Trim().Length == 0)
|
||||
{
|
||||
@@ -216,7 +216,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
internal void ResetAllText()
|
||||
{
|
||||
this.boldSpans.Clear();
|
||||
this.highlighedSpans.Clear();
|
||||
this.highlightedSpans.Clear();
|
||||
this.textBuilder.Clear();
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@ namespace Microsoft.Management.UI.Internal
|
||||
throw new ArgumentOutOfRangeException("length");
|
||||
}
|
||||
|
||||
this.highlighedSpans.Add(new TextSpan(start, length));
|
||||
this.highlightedSpans.Add(new TextSpan(start, length));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
|
||||
/// <summary>
|
||||
/// Field used for the CommonParameters parameter.
|
||||
/// </summary>
|
||||
private ParameterSetViewModel comonParameters;
|
||||
private ParameterSetViewModel commonParameters;
|
||||
|
||||
/// <summary>
|
||||
/// The ShowCommandCommandInfo this model is based on
|
||||
@@ -239,7 +239,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
|
||||
/// </summary>
|
||||
public ParameterSetViewModel CommonParameters
|
||||
{
|
||||
get { return this.comonParameters; }
|
||||
get { return this.commonParameters; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -537,7 +537,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
|
||||
}
|
||||
|
||||
List<ParameterViewModel> commonParametersList = commonParametersTable.Values.ToList<ParameterViewModel>();
|
||||
returnValue.comonParameters = new ParameterSetViewModel(String.Empty, commonParametersList);
|
||||
returnValue.commonParameters = new ParameterSetViewModel(String.Empty, commonParametersList);
|
||||
|
||||
returnValue.parameterSets.Sort(returnValue.Compare);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user