NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
mbtable.h
Go to the documentation of this file.
1
23#ifndef MUTT_CONFIG_MBTABLE_H
24#define MUTT_CONFIG_MBTABLE_H
25
26#include <stdbool.h>
27
35struct MbTable
36{
37 char *orig_str;
38 int len;
39 char **chars;
41};
42
43bool mbtable_equal (const struct MbTable *a, const struct MbTable *b);
44void mbtable_free (struct MbTable **ptr);
45const char * mbtable_get_nth_wchar(const struct MbTable *table, int index);
46struct MbTable *mbtable_parse (const char *str);
47
48#endif /* MUTT_CONFIG_MBTABLE_H */
bool mbtable_equal(const struct MbTable *a, const struct MbTable *b)
Compare two MbTables.
Definition: mbtable.c:51
struct MbTable * mbtable_parse(const char *str)
Parse a multibyte string into a table.
Definition: mbtable.c:66
const char * mbtable_get_nth_wchar(const struct MbTable *table, int index)
Extract one char from a multi-byte table.
Definition: mbtable.c:331
void mbtable_free(struct MbTable **ptr)
Free an MbTable object.
Definition: mbtable.c:308
Multibyte character table.
Definition: mbtable.h:36
char * orig_str
Original string used to generate this object.
Definition: mbtable.h:37
int len
Number of characters.
Definition: mbtable.h:38
char ** chars
The array of multibyte character strings.
Definition: mbtable.h:39
char * segmented_str
Each chars entry points inside this string.
Definition: mbtable.h:40