Skip to content

Commit

Permalink
Added ToLowerAt(s) (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Aug 30, 2023
1 parent a29eb91 commit a9ac640
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions PeyrSharp.Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ public static string DecryptAes(this string encrypted, string key)
/// <returns>The input string with the first letter uppercased.</returns>
public static string ToUpperAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToUpper(s[0]) + s[1..];

/// <summary>
/// Uppercases the first letter of a string.
/// </summary>
/// <param name="s">The string to capitalize.</param>
/// <returns>The input string with the first letter uppercased.</returns>
public static string ToLowerAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToLower(s[0]) + s[1..];

/// <summary>
/// Reverses a <see cref="string"/>.
/// </summary>
Expand Down

0 comments on commit a9ac640

Please sign in to comment.