Awesome
eppz.Extensions
part of Unity.Library.eppz
String_Extensions
-
Some string utility for the everyday.
RemoveLastWord()
- Removes the last word (the last remaining part after the last space occured) of the string. Like,
"A multi-worded sentence.".RemoveLastWord()
gives you"A multi-worded"
.
- Removes the last word (the last remaining part after the last space occured) of the string. Like,
IsNullOrWhiteSpace()
andIsNullOrEmptyOrWhiteSpace()
- Adds
String.IsNullOrWhiteSpace()
string extensions that is only introduced in .NET 4. See test cases inEditor/Test/String.cs
for more.
- Adds
Reverse()
- Reverse a string using
System.Array.Reverse()
.
- Reverse a string using
MD5()
- Create and MD5 hash string (!) using
System.Security.Cryptography.MD5
andSystem.Text.StringBuilder
.
- Create and MD5 hash string (!) using
RemoveWhitespace()
- Remove every white space character from string (space, tabs, new lines, etc.) using
System.StringSplitOptions.RemoveEmptyEntries
.
- Remove every white space character from string (space, tabs, new lines, etc.) using
License
Licensed under the MIT license.