ELinks 0.18.0
search Struct Reference

A searchable character on the document canvas. More...

#include <document.h>

Data Fields

int x
 
int y
 
signed int n
 
unicode_val_T c
 

Detailed Description

A searchable character on the document canvas.

struct document.search is an array of struct search, initialised by get_src, q.v. The elements of the array roughly correspond to the document canvas, document.data; each element corresponds to a regular character, a run of one or more control characters, or the end of a line on the canvas.

If an instance of struct search corresponds to a regular character, then that character is stored in c and n is equal to 1. If an instance of struct search corresponds to a run of control characters, then a space character ' ' is stored in c and n is equal to to the length of the run. If an instance of struct search corresponds to the end of a line, then a space is stored in c and n is equal to 0.

Field Documentation

◆ c

unicode_val_T search::c

◆ n

signed int search::n

◆ x

int search::x

◆ y

int search::y

The documentation for this struct was generated from the following file: