NeoMutt  2022-04-29-145-g9b6a0e
Teaching an old dog new tricks
DOXYGEN
mbtable.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_CONFIG_MBTABLE_H
24 #define MUTT_CONFIG_MBTABLE_H
25 
33 struct MbTable
34 {
35  char *orig_str;
36  int len;
37  char **chars;
38  char *segmented_str;
39 };
40 
41 void mbtable_free (struct MbTable **table);
42 struct MbTable *mbtable_parse(const char *str);
43 
44 #endif /* MUTT_CONFIG_MBTABLE_H */
struct MbTable * mbtable_parse(const char *str)
Parse a multibyte string into a table.
Definition: mbtable.c:49
void mbtable_free(struct MbTable **table)
Free an MbTable object.
Definition: mbtable.c:280
Multibyte character table.
Definition: mbtable.h:34
char * orig_str
Original string used to generate this object.
Definition: mbtable.h:35
int len
Number of characters.
Definition: mbtable.h:36
char ** chars
The array of multibyte character strings.
Definition: mbtable.h:37
char * segmented_str
Each chars entry points inside this string.
Definition: mbtable.h:38