AsciiGlobalStructureAnalysisGetTabbedWordBounds Method |
Gets the tabbed position for the start and end of all words in a line, assuming a certain tab width.
Namespace: Altaxo.Serialization.AsciiAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic List<int> GetTabbedWordBounds(
string sLine,
List<int> stringPositions,
int tabSize
)
Parameters
- sLine String
- The line to analyze.
- stringPositions ListInt32
- The start and end positions of the words in the original string.
- tabSize Int32
- The tab width to use when converting string positions into tabbed positions.
Return Value
ListInt32List of positions of the word starts and ends (ends=next position after the word). The list therefore always has
an even number of members. If there is a word, the list starts always with the start position of the word, followed by the position of the first character after this word.
See Also