The string helper was born to help me keep a library of useful extensions to strings. I am constantly writing methods across different projects that i again replicate when i move on to the next one so i thought i should create a library.
The wrap method takes a string and wraps into an ienumerable of strings each string is wraped to a certain length and will always go back the the last space to ensure that all words are maintined where possible.
Repeats a specified string for a specified amount of times.
Allows you to create a random string with certain formats at a given length.
Set of extension methods for strings which relate to triming content
Retrieves a string of text with the common text removed from the start until the first difference.
Retrieves a string of text with the common text removed from the end until the first difference.
Retrieves a string of text with the common text removed from the start and end. Both side stopping on the first difference.
Set of extension methods for strings which relate to sub stringing content
Retrieves a string of the common text of two strings from start to end until the first difference.
Retrieves a string of the common text of two strings from end to begin until the first difference.
Set of extension methods for strings which relate to counting content
Determines the common length of two strings from start to end until the first difference.
Determines the common length of two strings from end to begin until the first difference.
Come conribute would love to hear you ideas Contribute
Got an issue here are my guidelines for reporting it.
This work is licensed under a MIT License
This repository contains the Open Source Code of Conduct