Skip to content

samdvlpr/StringHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is StringHelper

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.

Current Functionality

Wrap

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.

Repeat

Repeats a specified string for a specified amount of times.

Random String

Allows you to create a random string with certain formats at a given length.

Trim

Set of extension methods for strings which relate to triming content

TrimStartToDifference

Retrieves a string of text with the common text removed from the start until the first difference.

TrimEndToDifference

Retrieves a string of text with the common text removed from the end until the first difference.

TrimToDifference

Retrieves a string of text with the common text removed from the start and end. Both side stopping on the first difference.

SubString

Set of extension methods for strings which relate to sub stringing content

SubStringStartToDifference

Retrieves a string of the common text of two strings from start to end until the first difference.

SubStringEndToDifference

Retrieves a string of the common text of two strings from end to begin until the first difference.

Count

Set of extension methods for strings which relate to counting content

CountStartToDifference

Determines the common length of two strings from start to end until the first difference.

CountEndToDifference

Determines the common length of two strings from end to begin until the first difference.

Contribute

Come conribute would love to hear you ideas Contribute

Issues

Got an issue here are my guidelines for reporting it.

License

This work is licensed under a MIT License

Code of Conduct

This repository contains the Open Source Code of Conduct

About

.Net Helper Extension for strings

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages