Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from uurha/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
uurha committed Dec 18, 2022
1 parent 7ff6dd9 commit 2b502db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Runtime/Extension/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ public static string FirstCharToUpper(this string input)
return input.First().ToString().ToUpper() + input.Substring(1);
}
}

/// <summary>
/// Fast Equals based on CompareOrdinal string comparetion
/// </summary>
/// <param name="left"></param>
/// <param name="right"></param>
/// <returns></returns>
public static bool FastEquals(this string left, string right)
{
return string.CompareOrdinal(left, right) == 0;
}

public static string PrettyMemberName(this MemberInfo input)
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.uurha.betterextensions",
"displayName": "Better Extensions",
"version": "0.1.3",
"version": "0.1.4",
"unity": "2018.3",
"description": "Unity extensions, serialize extension, async extension, string extension and UI extensions",
"author": {
Expand Down

0 comments on commit 2b502db

Please sign in to comment.