| |
offstotabcol, tabcoltooffs
Format:
offstotabcol (line, offset) |
Purpose:
Convert an offset from the start of a line to a column position in a
line, assuming a tab width of eight.
The line parameter must be a string,
the offset parameter must be an integer.
The line string may contain newlines. Legal
offsets for the offset parameter range from zero to len(line). tabcoltooffs() is the inverse
function of offstotabcol().
Return Values:
Return an integer which denotes the column position for the offset.
Example:
input: | resulting output:
| <? offstotabcol ("foo\\nbar\\tbaz", 9)> | 9 |
Format:
tabcoltooffs (line, column) |
Purpose:
Convert a column position in a line to a byte offset from the start of
the line, assuming a tab width of eight.
The line parameter must be a string,
the offset parameter must be an integer.
Return Values:
Return an integer which denotes the largest offset
whose on-screen column position is less than or equal to column.
Return null if column is less than zero or behind the end of line.
Example:
input: | resulting output:
| <? tabcoltooffs ("foo\\tbar", 5)> | 5 |
This page was dynamically generated by the
web application development tool RADpage
of H.E.I.
H.E.I. provides support, tools, and services like
Webdesign in Mannheimm,
the HTML/CSS 3D WebGL Animation Library taccgl,
3D Webdesign, and
3D Product Configurator
(3D Produkt Konfigurator in German).
Selected blog articles :
3D Objects on HTML pages,
CSS Transition Visibility, and
CSS Transition Display.
© 1996-2025 H.E.I. All Rights Reserved.
|