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