Click or drag to resize

IntegerTextFromWords(IEnumerableString, Boolean, Int32, IComparerChar) Method

Generates an integer text from words (= a collection of strings). The algorithm determines the lexicographical order of all elements in all lists and then maps each unique element to an integer value, with increasing values in the lexicographical order of the elements.

Namespace: Altaxo.Collections.Text
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IntegerText FromWords(
	IEnumerable<string> words,
	bool withSeparators,
	int padding,
	IComparer<char>? customComparer
)

Parameters

words  IEnumerableString
The list of individual words.
withSeparators  Boolean
If set to true, the converted text will contain the concenated 'words', separated by special separator elements. If set to false, the converted text will contain the concenated 'words' without separator elements.
padding  Int32
Number of additional elements reserved in the allocated Text array. This is neccessary for some algorithms. The additional elements will contain zero values.
customComparer  IComparerChar
Provides a custom comparer. If you don't want to provide an own comparer, leave this argument null.

Return Value

IntegerText
The integer text data, which holds the text converted to an integer alphabet.
See Also