Type representing a multibyte character table. More...
#include "config.h"
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include "mutt/lib.h"
#include "mbtable.h"
#include "set.h"
#include "types.h"
Go to the source code of this file.
Functions | |
struct MbTable * | mbtable_parse (const char *s) |
Parse a multibyte string into a table. More... | |
static void | mbtable_destroy (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef) |
Destroy an MbTable object - Implements ConfigSetType::destroy() -. More... | |
static int | mbtable_string_set (const struct ConfigSet *cs, void *var, struct ConfigDef *cdef, const char *value, struct Buffer *err) |
Set an MbTable by string - Implements ConfigSetType::string_set() -. More... | |
static int | mbtable_string_get (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, struct Buffer *result) |
Get a MbTable as a string - Implements ConfigSetType::string_get() -. More... | |
static struct MbTable * | mbtable_dup (struct MbTable *table) |
Create a copy of an MbTable object. More... | |
static int | mbtable_native_set (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
Set an MbTable config item by MbTable object - Implements ConfigSetType::native_set() -. More... | |
static intptr_t | mbtable_native_get (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, struct Buffer *err) |
Get an MbTable object from a MbTable config item - Implements ConfigSetType::native_get() -. More... | |
static int | mbtable_reset (const struct ConfigSet *cs, void *var, const struct ConfigDef *cdef, struct Buffer *err) |
Reset an MbTable to its initial value - Implements ConfigSetType::reset() -. More... | |
void | mbtable_free (struct MbTable **table) |
Free an MbTable object. More... | |
Variables | |
const struct ConfigSetType | CstMbtable |
Config type representing a multi-byte table. More... | |
Type representing a multibyte character table.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file mbtable.c.
struct MbTable * mbtable_parse | ( | const char * | s | ) |
Parse a multibyte string into a table.
s | String of multibyte characters |
ptr | New MbTable object |
Definition at line 49 of file mbtable.c.
Create a copy of an MbTable object.
table | MbTable to duplicate |
ptr | New MbTable object |
Definition at line 184 of file mbtable.c.
void mbtable_free | ( | struct MbTable ** | table | ) |
Free an MbTable object.
[out] | table | MbTable to free |
Definition at line 280 of file mbtable.c.
const struct ConfigSetType CstMbtable |
Config type representing a multi-byte table.