Skip to content

Commit

Permalink
chore: code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Aug 23, 2024
1 parent c7366de commit ee77408
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,17 +460,17 @@ public static CharacterType GetCharacterType(char character)
/// <param name="delim">String on which to perform the split operation.</param>
/// <param name="maxIterations">Maximum number of times to perform a <code>getline</code> loop.</param>
/// <returns>A vector of pieces from the source string, separated by delimiter</returns>
static string[] Split(string source, char delim, int maxIterations = 25)
private static string[] Split(string source, char delim, int maxIterations = 25)
{
return source.Split(new[] { delim }, maxIterations);
return source.Split([delim], maxIterations);
}

/// <summary>
/// Helper function to remove bracket qualifier from the end of a display name if present.
/// </summary>
/// <param name="source">String on which to perform the operation.</param>
/// <returns>A string with the content within brackets removed.</returns>
static void StripTrailingBrackets(ref string source)
private static void StripTrailingBrackets(ref string source)
{
// Guidance from the world readiness team is that text within a final set of brackets
// can be removed for the purposes of calculating initials. ex. John Smith (OSG)
Expand Down Expand Up @@ -504,7 +504,7 @@ static void StripTrailingBrackets(ref string source)
/// </summary>
/// <param name="str">String from which to extract the character.</param>
/// <returns>A wstring which represents a given character.</returns>
static string GetFirstFullCharacter(string str)
private static string GetFirstFullCharacter(string str)
{
// Index should begin at the first desireable character.
int start = 0;
Expand Down

0 comments on commit ee77408

Please sign in to comment.