File: extract.h

package info (click to toggle)
foot 1.26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,692 kB
  • sloc: ansic: 41,627; python: 499; sh: 181; makefile: 18
file content (21 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <stddef.h>
#include <stdbool.h>
#include <uchar.h>

#include "terminal.h"

struct extraction_context;

struct extraction_context *extract_begin(
    enum selection_kind kind, bool strip_trailing_empty);

bool extract_one(
    const struct terminal *term, const struct row *row, const struct cell *cell,
    int col, void *context);

bool extract_finish(
    struct extraction_context *context, char **text, size_t *len);
bool extract_finish_wide(
    struct extraction_context *context, char32_t **text, size_t *len);