Skip to content

Commit 5bf4265

Browse files
authored
Merge pull request #3420 from windows-toolkit/moreSpelling
fix some spelling
2 parents ff7f24d + b74ed36 commit 5bf4265

File tree

69 files changed

+310
-312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+310
-312
lines changed

Microsoft.Toolkit.Parsers/Markdown/Inlines/EmojiInline.EmojiCodes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Toolkit.Parsers.Markdown.Inlines
1212
public partial class EmojiInline
1313
{
1414
// Codes taken from https://gist.github.com/rxaviers/7360908
15-
// Ignoring not implented symbols in Segoe UI Emoji font (e.g. :bowtie:)
15+
// Ignoring not implemented symbols in Segoe UI Emoji font (e.g. :bowtie:)
1616
private static readonly Dictionary<string, int> _emojiCodesDictionary = new Dictionary<string, int>
1717
{
1818
{ "smile", 0x1f604 },

Microsoft.Toolkit.Parsers/Markdown/Inlines/HyperlinkInline.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ internal static InlineParseResult ParseEmailAddress(string markdown, int minStar
325325
// reddit (for example: '$' and '!').
326326

327327
// Special characters as per https://en.wikipedia.org/wiki/Email_address#Local-part allowed
328-
char[] allowedchars = new char[] { '!', '#', '$', '%', '&', '\'', '*', '+', '-', '/', '=', '?', '^', '_', '`', '{', '|', '}', '~' };
328+
char[] allowedChars = { '!', '#', '$', '%', '&', '\'', '*', '+', '-', '/', '=', '?', '^', '_', '`', '{', '|', '}', '~' };
329329

330330
int start = tripPos;
331331
while (start > minStart)
@@ -334,7 +334,7 @@ internal static InlineParseResult ParseEmailAddress(string markdown, int minStar
334334
if ((c < 'a' || c > 'z') &&
335335
(c < 'A' || c > 'Z') &&
336336
(c < '0' || c > '9') &&
337-
!allowedchars.Contains(c))
337+
!allowedChars.Contains(c))
338338
{
339339
break;
340340
}

Microsoft.Toolkit.Parsers/Markdown/Inlines/ImageInline.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ internal static InlineParseResult Parse(string markdown, int start, int end)
118118

119119
if (pos < end && markdown[pos] == '[')
120120
{
121-
int refstart = pos;
121+
int refStart = pos;
122122

123123
// Find the reference ']' character
124124
while (pos < end)
@@ -131,7 +131,7 @@ internal static InlineParseResult Parse(string markdown, int start, int end)
131131
pos++;
132132
}
133133

134-
reference = markdown.Substring(refstart + 1, pos - refstart - 1);
134+
reference = markdown.Substring(refStart + 1, pos - refStart - 1);
135135
}
136136
else if (pos < end && markdown[pos] == '(')
137137
{
@@ -156,10 +156,10 @@ internal static InlineParseResult Parse(string markdown, int start, int end)
156156
if (imageDimensionsPos > 0)
157157
{
158158
// trying to find 'x' which separates image width and height
159-
var dimensionsSepatorPos = markdown.IndexOf("x", imageDimensionsPos + 2, pos - imageDimensionsPos - 1, StringComparison.Ordinal);
159+
var dimensionsSeparatorPos = markdown.IndexOf("x", imageDimensionsPos + 2, pos - imageDimensionsPos - 1, StringComparison.Ordinal);
160160

161161
// didn't find separator, trying to parse value as imageWidth
162-
if (dimensionsSepatorPos == -1)
162+
if (dimensionsSeparatorPos == -1)
163163
{
164164
var imageWidthStr = markdown.Substring(imageDimensionsPos + 2, pos - imageDimensionsPos - 2);
165165

Microsoft.Toolkit.Parsers/Markdown/Inlines/TextRunInline.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ internal static TextRunInline Parse(string markdown, int start, int end)
354354
continue;
355355
}
356356

357-
// Okay, we have an entity, but is it one we recognise?
357+
// Okay, we have an entity, but is it one we recognize?
358358
string entityName = markdown.Substring(sequenceStartIndex + 1, semicolonIndex - (sequenceStartIndex + 1));
359359

360-
// Unrecognised entity.
360+
// Unrecognized entity.
361361
if (_entities.ContainsKey(entityName) == false)
362362
{
363363
continue;

Microsoft.Toolkit.Parsers/Markdown/MarkdownDocument.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ internal static List<MarkdownBlock> Parse(string markdown, int start, int end, i
101101
var paragraphText = new StringBuilder();
102102

103103
// These are needed to parse underline-style header blocks.
104-
int previousRealtStartOfLine = start;
104+
int previousRealStartOfLine = start;
105105
int previousStartOfLine = start;
106106
int previousEndOfLine = start;
107107

@@ -160,18 +160,18 @@ internal static List<MarkdownBlock> Parse(string markdown, int start, int end, i
160160
else
161161
{
162162
int lastIndentation = 0;
163-
string lastline = null;
163+
string lastLine = null;
164164

165165
// Determines how many Quote levels were in the last line.
166166
if (realStartOfLine > 0)
167167
{
168-
lastline = markdown.Substring(previousRealtStartOfLine, previousEndOfLine - previousRealtStartOfLine);
169-
lastIndentation = lastline.Count(c => c == '>');
168+
lastLine = markdown.Substring(previousRealStartOfLine, previousEndOfLine - previousRealStartOfLine);
169+
lastIndentation = lastLine.Count(c => c == '>');
170170
}
171171

172172
var currentEndOfLine = Common.FindNextSingleNewLine(markdown, nonSpacePos, end, out _);
173-
var currentline = markdown.Substring(realStartOfLine, currentEndOfLine - realStartOfLine);
174-
var currentIndentation = currentline.Count(c => c == '>');
173+
var currentLine = markdown.Substring(realStartOfLine, currentEndOfLine - realStartOfLine);
174+
var currentIndentation = currentLine.Count(c => c == '>');
175175
var firstChar = markdown[realStartOfLine];
176176

177177
// This is a quote that doesn't start with a Quote marker, but carries on from the last line.
@@ -364,7 +364,7 @@ internal static List<MarkdownBlock> Parse(string markdown, int start, int end, i
364364
}
365365

366366
// Repeat.
367-
previousRealtStartOfLine = realStartOfLine;
367+
previousRealStartOfLine = realStartOfLine;
368368
previousStartOfLine = startOfLine;
369369
previousEndOfLine = endOfLine;
370370
startOfLine = startOfNextLine;

Microsoft.Toolkit.Parsers/Rss/AtomParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public override IEnumerable<RssSchema> LoadFeed(XDocument doc)
3737
}
3838

3939
/// <summary>
40-
/// Retieves strong type for passed item.
40+
/// Retrieves strong type for passed item.
4141
/// </summary>
4242
/// <param name="item">XElement to parse.</param>
4343
/// <returns>Strong typed object.</returns>

Microsoft.Toolkit.Parsers/Rss/RssHelper.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ internal static class RssHelper
2323
private const string ImagePattern = @"<img.*?src=[\""'](.+?)[\""'].*?>";
2424

2525
/// <summary>
26-
/// String for regular xpression for hyperlink pattern.
26+
/// String for regular expression for hyperlink pattern.
2727
/// </summary>
28-
private const string HiperlinkPattern = @"<a\s+(?:[^>]*?\s+)?href=""([^ ""]*)""";
28+
private const string HyperlinkPattern = @"<a\s+(?:[^>]*?\s+)?href=""([^ ""]*)""";
2929

3030
/// <summary>
3131
/// String for regular expression for height pattern.
@@ -45,7 +45,7 @@ internal static class RssHelper
4545
/// <summary>
4646
/// Regular expression for hyperlink pattern.
4747
/// </summary>
48-
private static readonly Regex RegexLinks = new Regex(HiperlinkPattern, RegexOptions.IgnoreCase);
48+
private static readonly Regex RegexLinks = new Regex(HyperlinkPattern, RegexOptions.IgnoreCase);
4949

5050
/// <summary>
5151
/// Regular expression for height pattern.
@@ -82,7 +82,7 @@ public static string SanitizeString(this string text)
8282
}
8383

8484
/// <summary>
85-
/// Get item date from xelement and element name.
85+
/// Get item date from <see cref="XElement"/> and element name.
8686
/// </summary>
8787
/// <param name="item">XElement item.</param>
8888
/// <param name="elementName">Name of element.</param>
@@ -93,7 +93,7 @@ public static DateTime GetSafeElementDate(this XElement item, string elementName
9393
}
9494

9595
/// <summary>
96-
/// Get item date from xelement, element name and namespace.
96+
/// Get item date from <see cref="XElement"/>, element name and <see cref="XNamespace"/>.
9797
/// </summary>
9898
/// <param name="item">XElement item.</param>
9999
/// <param name="elementName">Name of element.</param>
@@ -117,7 +117,7 @@ public static DateTime GetSafeElementDate(this XElement item, string elementName
117117
}
118118

119119
/// <summary>
120-
/// Get item string value for xelement and element name.
120+
/// Get item string value for <see cref="XElement"/> and element name.
121121
/// </summary>
122122
/// <param name="item">XElement item.</param>
123123
/// <param name="elementName">Name of element.</param>
@@ -133,7 +133,7 @@ public static string GetSafeElementString(this XElement item, string elementName
133133
}
134134

135135
/// <summary>
136-
/// Get item string values for xelement and element name.
136+
/// Get item string values for <see cref="XElement"/> and element name.
137137
/// </summary>
138138
/// <param name="item">XElement item.</param>
139139
/// <param name="elementName">Name of the element.</param>
@@ -144,9 +144,9 @@ public static IEnumerable<string> GetSafeElementsString(this XElement item, stri
144144
}
145145

146146
/// <summary>
147-
/// Get item string values for xelement, element name and namespace.
147+
/// Get item string values for <see cref="XElement"/>, element name and namespace.
148148
/// </summary>
149-
/// <param name="item">XELement item.</param>
149+
/// <param name="item">XElement item.</param>
150150
/// <param name="elementName">Name of element.</param>
151151
/// <param name="xNamespace">XNamespace namespace.</param>
152152
/// <returns>Safe list of string values.</returns>
@@ -163,7 +163,7 @@ public static IEnumerable<string> GetSafeElementsString(this XElement item, stri
163163
}
164164

165165
/// <summary>
166-
/// Get item string value for xelement, element name and namespace.
166+
/// Get item string value for <see cref="XElement"/>, element name and namespace.
167167
/// </summary>
168168
/// <param name="item">XElement item.</param>
169169
/// <param name="elementName">Name of element.</param>
@@ -387,7 +387,7 @@ private static IEnumerable<string> GetImagesInHTMLString(string htmlString)
387387
{ "AT", new[] { "+0200", "Azores" } },
388388
{ "AWDT", new[] { "-0900", "Australian West Daylight" } },
389389
{ "AWST", new[] { "-0800", "Australian West Standard" } },
390-
{ "BAT", new[] { "-0300", "Bhagdad" } },
390+
{ "BAT", new[] { "-0300", "Baghdad" } },
391391
{ "BDST", new[] { "-0200", "British Double Summer" } },
392392
{ "BET", new[] { "+1100", "Bering Standard" } },
393393
{ "BST", new[] { "+0300", "Brazil Standard" } },
@@ -413,8 +413,8 @@ private static IEnumerable<string> GetImagesInHTMLString(string htmlString)
413413
{ "GST", new[] { "-1000", "Guam Standard" } },
414414
{ "HDT", new[] { "+0900", "Hawaii Daylight" } },
415415
{ "HST", new[] { "+1000", "Hawaii Standard" } },
416-
{ "IDLE", new[] { "-1200", "Internation Date Line East" } },
417-
{ "IDLW", new[] { "+1200", "Internation Date Line West" } },
416+
{ "IDLE", new[] { "-1200", "International Date Line East" } },
417+
{ "IDLW", new[] { "+1200", "International Date Line West" } },
418418
{ "IST", new[] { "-0530", "Indian Standard" } },
419419
{ "IT", new[] { "-0330", "Iran" } },
420420
{ "JST", new[] { "-0900", "Japan Standard" } },

Microsoft.Toolkit.Services/Exceptions/ParserNullException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public ParserNullException(string message)
3333
/// Initializes a new instance of the <see cref="ParserNullException"/> class.
3434
/// Constructor with additional message and inner exception.
3535
/// </summary>
36-
/// <param name="message">Additonal message.</param>
36+
/// <param name="message">Additional message.</param>
3737
/// <param name="innerException">Reference to inner exception.</param>
3838
public ParserNullException(string message, Exception innerException)
3939
: base(message, innerException)

Microsoft.Toolkit.Services/Exceptions/RequestFailedException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public RequestFailedException()
2424
/// Initializes a new instance of the <see cref="RequestFailedException"/> class.
2525
/// Constructor with additional message.
2626
/// </summary>
27-
/// <param name="message">Additional messsage.</param>
27+
/// <param name="message">Additional message.</param>
2828
public RequestFailedException(string message)
2929
: base(message)
3030
{

Microsoft.Toolkit.Services/PlatformSpecific/NETFramework/NetFrameworkAuthenticationBroker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Task<AuthenticationResult> Authenticate(Uri requestUri, Uri callbackUri)
1717
int numberForms = ApplicationForm.OpenForms.Count;
1818
if (numberForms > 0)
1919
{
20-
return AutenticateForm(requestUri, callbackUri);
20+
return this.AuthenticateForm(requestUri, callbackUri);
2121
}
2222
else if (Application.Current != null)
2323
{
@@ -45,7 +45,7 @@ public async Task<AuthenticationResult> AuthenticateWindow(Uri requestUri, Uri c
4545
return await taskCompletionSource.Task;
4646
}
4747

48-
public async Task<AuthenticationResult> AutenticateForm(Uri requestUri, Uri callbackUri)
48+
public async Task<AuthenticationResult> AuthenticateForm(Uri requestUri, Uri callbackUri)
4949
{
5050
PopupForm popupForm;
5151
var taskCompletionSource = new TaskCompletionSource<AuthenticationResult>();

0 commit comments

Comments
 (0)