Pure.Primitives.String.Operations
1.7.0
dotnet add package Pure.Primitives.String.Operations --version 1.7.0
NuGet\Install-Package Pure.Primitives.String.Operations -Version 1.7.0
<PackageReference Include="Pure.Primitives.String.Operations" Version="1.7.0" />
<PackageVersion Include="Pure.Primitives.String.Operations" Version="1.7.0" />
<PackageReference Include="Pure.Primitives.String.Operations" />
paket add Pure.Primitives.String.Operations --version 1.7.0
#r "nuget: Pure.Primitives.String.Operations, 1.7.0"
#:package Pure.Primitives.String.Operations@1.7.0
#addin nuget:?package=Pure.Primitives.String.Operations&version=1.7.0
#tool nuget:?package=Pure.Primitives.String.Operations&version=1.7.0
Pure.Primitives.String.Operations
String operations for Pure IString primitives — composable, immutable value objects for string manipulation and comparison.
Overview
Pure.Primitives.String.Operations provides sealed record types that perform concatenation, joining, slicing, trimming, encoding, measuring, and comparison operations over IString values. All types return IString, IBool, or INumber<int>, keeping results composable within the Pure type system.
Types
String-returning (IString)
| Type | Description |
|---|---|
ConcatenatedString |
Concatenates a sequence of IString values |
WhitespaceJoinedString |
Joins strings with a space separator |
CommaJoinedString |
Joins strings with a comma separator |
SemicolonJoinedString |
Joins strings with a semicolon separator |
ColonJoinedString |
Joins strings with a colon separator |
WrappedString |
Wraps a string with prefix and suffix delimiters |
Substring |
Returns a slice of an IString |
HexString |
Encodes a byte sequence as a hex IString |
TrimmedString |
Removes leading and trailing whitespace |
TextBefore |
Part before the first occurrence of a separator (ordinal) |
TextAfter |
Part after the first occurrence of a separator (ordinal) |
TextBeforeLast |
Part before the last occurrence of a separator (ordinal) |
TextAfterLast |
Part after the last occurrence of a separator (ordinal) |
TextWithoutPrefix |
Removes a prefix the text must start with (ordinal) |
TextBefore, TextAfter, TextBeforeLast, and TextAfterLast throw ArgumentException when the separator is absent; an empty result (separator at the start or end) is valid. TextWithoutPrefix throws ArgumentException when the text does not start with the prefix.
Number-returning (INumber<int>)
| Type | Description |
|---|---|
TextLength |
Number of characters in an IString |
Condition-returning (IBool)
| Type | True when |
|---|---|
EqualCondition |
All supplied IString values are equal |
NotEqualCondition |
Not all supplied IString values are equal |
EmptyTextCondition |
All supplied IString values are empty |
BlankTextCondition |
All supplied IString values are empty or whitespace-only |
TextContainingWhitespaceCondition |
All supplied IString values contain a whitespace character |
AsciiWordCharactersCondition |
All supplied IString values consist only of ASCII letters, digits, and _ (an empty value qualifies) |
StartsWithCondition |
The text starts with the prefix (ordinal) |
TextLongerThanCondition |
The text has more characters than the limit |
TextContainingAnyCharCondition |
The text contains at least one of the given characters |
Conditions taking a set of values throw ArgumentException when no values are supplied.
Dependencies
Pure.Primitives.Abstractions—IString,IBool, andINumber<T>interfaces
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Pure.Primitives (>= 3.7.0)
-
net7.0
- Pure.Primitives (>= 3.7.0)
-
net8.0
- Pure.Primitives (>= 3.7.0)
-
net9.0
- Pure.Primitives (>= 3.7.0)
NuGet packages (12)
Showing the top 5 NuGet packages that depend on Pure.Primitives.String.Operations:
| Package | Downloads |
|---|---|
|
Pure.RelationalSchema.Self.Storage.Projection
Package Description |
|
|
Pure.RelationalSchema.Storage.PostgreSQL.Querying
Package Description |
|
|
Pure.RelationalSchema.Storage.PostgreSQL.Insertion
Package Description |
|
|
PureQL.CSharp.Model.Samples
Package Description |
|
|
Pure.RelationalSchema.Storage.PostgreSQL.Creation
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.0 | 708 | 10/22/2026 |
| 1.6.0 | 278 | 10/22/2026 |
| 1.5.1 | 2,385 | 6/25/2026 |
| 1.5.0 | 1,161 | 5/20/2026 |
| 1.4.1 | 2,304 | 11/23/2025 |
| 1.4.0 | 536 | 11/18/2025 |
| 1.3.0 | 814 | 11/11/2025 |
| 1.2.0 | 868 | 11/4/2025 |
| 1.1.0 | 487 | 11/1/2025 |
| 1.0.0 | 206 | 11/1/2025 |
| 0.3.0 | 2,206 | 9/5/2025 |
| 0.2.2 | 900 | 7/8/2025 |
| 0.2.1 | 297 | 6/7/2025 |
| 0.2.0 | 251 | 5/29/2025 |
| 0.1.0 | 250 | 5/28/2025 |