Information about each line of a file being diffed.
More...
#include "util.h"
|
| uint64_t | h |
| | Hash of the line.
|
| unsigned int | iHash |
| | An array of fsl_dline elements serves two purposes.
|
| unsigned short | indent |
| | Index of first non-space char.
|
| unsigned int | iNext |
| | 1+(Index of next line with same the same hash)
|
| unsigned short | n |
| | Number of bytes of z which belong to this line.
|
| unsigned short | nw |
| | Number of bytes without leading/trailing space.
|
| const char * | z |
| | The text of the line.
|
Information about each line of a file being diffed.
This type is only in the public API for use by the fsl_dibu interface, specifically for use with fsl_dline_change_spans(). It is not otherwise intended for public use. None of its members are considered even remotely public except for this->z and this->n.
Definition at line 4023 of file util.h.
Hash of the line.
Lower X bits are the length.
Definition at line 4037 of file util.h.
◆ iHash
| unsigned int fsl_dline::iHash |
An array of fsl_dline elements serves two purposes.
The fields above are one per line of input text. But each entry is also a bucket in a hash table, as follows:
Definition at line 4045 of file util.h.
◆ indent
| unsigned short fsl_dline::indent |
Index of first non-space char.
Definition at line 4033 of file util.h.
◆ iNext
| unsigned int fsl_dline::iNext |
1+(Index of next line with same the same hash)
Definition at line 4039 of file util.h.
| unsigned short fsl_dline::n |
Number of bytes of z which belong to this line.
Definition at line 4030 of file util.h.
◆ nw
| unsigned short fsl_dline::nw |
Number of bytes without leading/trailing space.
Definition at line 4035 of file util.h.
The text of the line.
Owned by higher-level code. Not necessarily NUL-terminated: this->n holds its length.
Definition at line 4028 of file util.h.
The documentation for this struct was generated from the following file: