aboutsummaryrefslogtreecommitdiff
path: root/text-objects.h
blob: de8dcfb3ca9bab4bff8b5f840285a8a458e7f4f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef TEXT_OBJECTS_H
#define TEXT_OBJECTS_H

#include <stddef.h>
#include "text.h"

/* word which happens to be at pos, includes trailing white spaces. if at pos happens to
 * be a whitespace include all neighbouring leading whitespaces and the following word. */
Filerange text_object_word(Text*, size_t pos);
Filerange text_object_word_boundry(Text*, size_t pos, int (*isboundry)(int));
Filerange text_object_char(Text*, size_t pos, char c);
Filerange text_object_sentence(Text*, size_t pos);
Filerange text_object_paragraph(Text*, size_t pos);

#endif