Previous
|
Up
|
Next
|
Sorting Primitives |
Primitives and EEL Subroutines |
Comparing Primitives |
Epsilon User's Manual and Reference >
Primitives and EEL Subroutines >
Buffer Primitives >
Other Formatting Functions
right_align_columns(char *pat)
The right_align_columns( ) subroutine locates all lines containing a
match for the regular expression pattern pat . It notes the ending column
of each match. (It assumes that pat occurs no more than one per line.)
Then, if some matches end at an earlier column than others, it adds
indentation before each match as needed, so all matches will end at the same
column.
columnize_buffer_text(int buf, int width, int margin)
The columnize_buffer_text( ) subroutine takes the lines in the
buffer buf and reformats them into columns. It leaves a margin
between columns of margin spaces, and chooses the number of
columns so that the resulting buffer is at most width characters
wide (unless an original line in the buffer is already wider than
width ).
do_buffer_to_hex(char *b, char transp[256], ?int flags)
The do_buffer_to_hex( ) primitive writes a hex view of the
current buffer to the buffer b , creating or emptying it first. It
ignores any narrowing in the original buffer. It uses the 256
character transp array to help construct the last column of the
hex view; each character from the buffer will be replaced by the
character at that offset in the transp array. If the buffer
contains Unicode characters with codes higher than 255, they'll appear
as-is.
If a buffer might contain Unicode characters, the primitive uses a
display format that leaves room for 16 bits per character; otherwise
it uses a format with room for 8 bits per character. The optional
flags argument, if 1 , forces 8 bits per character. If any
character in the buffer doesn't fit in 8 bits, only its lower 8 bits
will be shown in the hex listing.
Previous
|
Up
|
Next
|
Sorting Primitives |
Primitives and EEL Subroutines |
Comparing Primitives |
Copyright (C) 1984, 2020 by Lugaru Software Ltd. All rights reserved.
|