Prose.Text
ReferencesRepresents a string with alternating textual and numeric fragments. This makes mixed number/text comparisons much faster and more reliable.
Properties
Fragments
#Enumerate over all fragments in this text, returning either a string, or the numeric value.
Methods
Comparer
#Create an IComparer<T> for Prose.Text.
Parameters:
| comparison (StringComparison) | Text fragment comparison to use. |
CompareTo
#Compare two alphanumeric strings.
Parameters:
| other (Prose.Text) | Other string. |
| comparison (StringComparison) | Comparison for the string fragments. |
Create
#Create a Prose.Text from a sequence of textual and numeric fragments.
Parameters:
| fragments (params object[]) | A sequence of fragments. Either strings, doubles, integers, big integers, vectors or points. |
Parse
#Parse a string and extract the alphabetic and numeric parts.
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Prose.Text | + | Prose.Text | Prose.Text | Append one numeric string to another. |
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | string | Prose.Text | Auto convert a string into a Prose.Text. | |