DewStrings 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DewStrings --version 2.2.0
NuGet\Install-Package DewStrings -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DewStrings" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DewStrings --version 2.2.0
#r "nuget: DewStrings, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DewStrings as a Cake Addin
#addin nuget:?package=DewStrings&version=2.2.0

// Install DewStrings as a Cake Tool
#tool nuget:?package=DewStrings&version=2.2.0

DewStrings

An extension for the string class in .net

Methods

  • Capitalize : Capitalize the string
  • CapitalizeAllWords : Capitalize all the words into a string (separated by spaces)
  • IsValidEmail : Check if the string is a valid mail
  • IsNullOrEmpty : Check if the string is null or empty
  • ConcatWithChar : Concat the current string with another, using a specified character
  • ConcatWithChar : Concat the current string with other strings, using a specified character
  • ConcatWithoutChar : Concat the current string with another without a character
  • ConcatWithoutChar : Concat the current string with other strings without a character
  • RemoveLastCharacter : Remove the last character
  • RemoveFirstCharacter : Remove the first character
  • RemoveCharacterAt : Remove character at position x
  • RandomString : Get a random string generated from the current (same length)
  • RemoveChar : Remove all occurences of a character from the string
  • HasSubstring : Check if the string has a substring (case sensitive)
  • HasSubstringInsensitive : Check if the string has a substring (case insensitive)
  • ToStream : Convert string to stream
  • ToBytes : Convert string to bytes array
  • ToEncodedUrl : Encode the url
  • ToDecodedUrl : Decode the url
  • IsValidHttpUrl : Check if the string is a valid HTTP Url
  • ToInt: Return the string like an int (default value args)
  • ToLong: Return the string like an long (default value args)
  • ToDouble: Return the string like an double (default value args)
  • ToFloat: Return the string like an float (default value args)
  • WordCount : Count the word in a string
  • RemoveDuplicateSpaces : Remove duplicated spaces and tabs
  • ToEmptyIfNull : Return the empty string (to prevent NullRefernceException)
  • GetFileExtension : Return the file extension for a path
  • CountCharacters : Return the number of characters into the string
  • IsMatch : Quick match for regexp
  • IsNumber : Quick check if string is a valid number
  • IsAlphanumeric : Quick check if string is alphanumeric
  • IsAlphabetic : Quick check if string is alphabetic
  • EllipsisEnd : Add the ellipsis if the string has length > maxLength
  • Formatted : Return the string formatted with the arguments
  • Specular : Return the specular string
  • GetDictionary : Return a dictionary from a string with structure var{valueSeparator}val{separator}var1{valueSeparator}val1{separator}... (ex. a query string)
  • AddSlashes : Add slashes to \,',"
  • IsPalindrome : return true if the string is a palindrome
  • Compact : Compat the string in the passed lenght.
  • Alternative : Return an alternative text if string is empty
Note: This is a class estension

You can use it with dot notation from a string,

var myString = "pippo".Capitalize();
//now myString is "Pippo"
var today = "today is  a great day and i'm here!".RemoveDuplicateSpaces().CapitalizeAllWords();
//now today is "Today Is A Great Day And I'm Here!"

NuGet

You can find it on nuget with the name DewStrings

About

Andrea Vincenzo Abbondanza

Help me to grow up, if you want

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on DewStrings:

Package Downloads
DewMySQLClient

A client for mysql for .net standard, using mysql connector

DewBadgeMiddleware

A middleware for authentication with badge for asp net core

DewTypes

A set of types for .net standard

DewXamarinLocalization

A localization object to use with xamarin forms on shared project

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.4.1 1,828 12/17/2018
2.3.0 7,658 3/3/2018
2.2.1 5,471 12/20/2017
2.2.0 1,024 11/19/2017
2.1.2 1,054 10/30/2017
2.1.0 1,011 9/15/2017
2.0.0 7,279 8/22/2017
1.7.0 1,067 7/16/2017
1.6.0 955 7/7/2017
1.5.0 996 7/5/2017
1.4.1 956 6/26/2017
1.3.0 965 6/25/2017
1.2.0 962 6/25/2017
1.1.2 955 6/25/2017
1.1.1 981 6/25/2017
1.0.0 965 6/24/2017

Namespace refactor