https://github.com/geri-borbas/unity.library.eppz.extensions
String extensions for the everyday.
https://github.com/geri-borbas/unity.library.eppz.extensions
Last synced: 3 months ago
JSON representation
String extensions for the everyday.
- Host: GitHub
- URL: https://github.com/geri-borbas/unity.library.eppz.extensions
- Owner: Geri-Borbas
- Created: 2017-06-15T20:37:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T15:26:46.000Z (about 7 years ago)
- Last Synced: 2024-11-16T22:28:44.667Z (5 months ago)
- Language: C#
- Size: 147 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# eppz.Extensions [](https://travis-ci.org/eppz/Unity.Test.eppz)
> part of [**Unity.Library.eppz**](https://github.com/eppz/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"`.
+ `IsNullOrWhiteSpace()` and `IsNullOrEmptyOrWhiteSpace()`
+ Adds `String.IsNullOrWhiteSpace()` string extensions that is only introduced in .NET 4. See test cases in [`Editor/Test/String.cs`](Editor/Test/String.cs) for more.
+ `Reverse()`
+ Reverse a string using `System.Array.Reverse()`.
+ `MD5()`
+ Create and MD5 hash string (!) using `System.Security.Cryptography.MD5` and `System.Text.StringBuilder`.
+ `RemoveWhitespace()`
+ Remove every white space character from string (space, tabs, new lines, etc.) using `System.StringSplitOptions.RemoveEmptyEntries`.## License
> Licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).