Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address PR feedback
  • Loading branch information
stephentoub committed Dec 7, 2022
commit 08913108ce3009444ee76bff4f9ccb96ec6465b7
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ public static Color ConvertFromString(string strValue, CultureInfo culture)
}
}

// Nope. Parse the RGBA from the text.
// We should now have a number of parsed integer values.
// We support 1, 3, or 4 arguments:
//
// 1 -- full ARGB encoded
// 3 -- RGB
// 4 -- ARGB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3523,7 +3523,7 @@ private static int SplitCore(
rangeCount++;
}

// Reset to be just passed the separator, and loop around to go again.
// Reset to be just past the separator, and loop around to go again.
startInclusive = untrimmedEndEclusive + separatorLength;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,8 @@ private static string GetLocalizedNameByMuiNativeResource(string resource)
//
ReadOnlySpan<char> resourceSpan = resource;
Span<Range> resources = stackalloc Range[3];
int numResources = resourceSpan.Split(resources, ',');
if (numResources != 2)
resources = resources.Slice(0, resourceSpan.Split(resources, ','));
if (resources.Length != 2)
{
return string.Empty;
}
Expand Down