Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/filipe11402/futils-strings
String Formatting Extensions
https://github.com/filipe11402/futils-strings
dotnet strings strings-manipulation
Last synced: 4 days ago
JSON representation
String Formatting Extensions
- Host: GitHub
- URL: https://github.com/filipe11402/futils-strings
- Owner: filipe11402
- Created: 2022-02-08T22:57:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-21T14:36:43.000Z (over 2 years ago)
- Last Synced: 2023-03-09T05:41:14.301Z (almost 2 years ago)
- Topics: dotnet, strings, strings-manipulation
- Language: C#
- Homepage: https://www.nuget.org/packages/FUtils.Strings/
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# String Formatting Library
Format your strings using these Extension Methods
---
## Documentation
#### .NET CLI
```
dotnet add package FUtils.Strings
```#### Nuget
```
Install-Package FUtils.Strings
```#### String Extensions
**ToPascalCase()**
```cs
var myStringNonPascalCase = "hello-there";// returns HelloThere
var myPascalCaseString = myStringNonPascalCase.ToPascalCase();
```**CapitalizeFirstLetter()**
```cs
var myNonCapitalizedString = "hellomate";// returns Hellomate
var capitalizedString = myNonCapitalizedString.CapitalizeFirstLetter();
```**RemoveWhiteSpaces()**
```cs
var myWhiteSpaceString = "hello my friend";// returns hellomate
var noWhiteSpacesString = myWhiteSpaceString.RemoveWhiteSpaces();
```#### Exceptions
**ArgumentNullException**
Throws ArgumentNullException With the message ``` ValueCannotBeNull ```
```cs
var string = ""; //also if string " " or nullstring.RemoveWhiteSpaces();
string.CapitalizeFirstLetter();
string.RemoveWhiteSpaces();
```