TsadriuUtilities.String
1.1.2
See the version list below for details.
dotnet add package TsadriuUtilities.String --version 1.1.2
NuGet\Install-Package TsadriuUtilities.String -Version 1.1.2
<PackageReference Include="TsadriuUtilities.String" Version="1.1.2" />
paket add TsadriuUtilities.String --version 1.1.2
#r "nuget: TsadriuUtilities.String, 1.1.2"
// Install TsadriuUtilities.String as a Cake Addin #addin nuget:?package=TsadriuUtilities.String&version=1.1.2 // Install TsadriuUtilities.String as a Cake Tool #tool nuget:?package=TsadriuUtilities.String&version=1.1.2
TsadriuUtilities.String
A small package that helps on manipulating and managing string types.
TsadriuUtilities.String is a small library that helps on manipulating and managing string types.
> Features <
StringHelper:
- GetBetween(string text, string start, string end, StringComparison comparison, bool startEndIncluded) + 1 overload:
- Retrieves the substring between two specified strings within the given text, using the specified string comparison rules.
- GetBetweenReverse(string text, string start, string end, StringComparison comparison, bool startEndIncluded) + 1 overload:
- Searches through the text, using the start as the start tag and then searches the text backwards until the end tag is found or until it reaches the end of the text.
- GetManyBetween(string text, string start, string end, StringComparison comparison, bool startEndIncluded) + 1 overload:
- Retrieves multiple substrings from the specified text that are located between the specified start and end strings.
- IsEmpty(string value):
- Determines whether the specified string is empty, null or consists only of white-space characters.
- IsNotEmpty(string value):
- Determines whether the specified string is not empty, not null and contains at least one non-white-space character.
- RemoveMany(string value, params string[] valuesToRemove):
- Replaces multiple occurrences of strings specified in valuesToRemove with string.Empty in the value string.
- TextCount(string value, string valueToCount):
- Counts the number of occurrences of a specified valueToCount within the value string.
- ContainsAll(string text, StringComparison comparison, param string[] values) + 1 overload:
- Checks whether a string contains all specified values, using the specified string comparison.
- ContainsAny(string text, StringComparison comparison, param string[] values) + 1 overload:
- Checks whether a string contains any of the specified values, using the specified string comparison.
- SplitBy(string value, StringSplitByEnum splitByEnum, bool keepSeparator, string? separator):
- Splits the specified value string based on the specified splitByEnum.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. |
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on TsadriuUtilities.String:
Package | Downloads |
---|---|
TsadriuUtilities.Csv
TsadriuUtilities.Csv is a library that helps on dealing with **CSV** files, to make it easier and save a little bit of time. |
|
TsadriuUtilities.Excel
A small package that helps on parsing Excel (XLSX) files. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Fixed an issue where the GetBetween method was not returning an empty string when one of the tags were not found.
Fixed an issue where the method GetManyBetween would throw an exception when "\n", "\r" and such white-space characters were used. Now it only throws an exception when either one of the tags is empty "" or null.