/*
Copyright (C) 2016-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/
/*
WARNING: This file was generated by the dkct program (see
http://dktools.sourceforge.net/ for details).
Changes you make here will be lost if dkct is run again!
You should modify the original source and run dkct on it.
Original source: dk4rec25.ctr
*/
#ifndef DK4REC25_H_INCLUDED
/** Avoid multiple inclusions. */
#define DK4REC25_H_INCLUDED 1
#line 9 "dk4rec25.ctr"
/** @file dk4rec25.h Conversion from dkChar to other character
widths.
*/
#ifdef __cplusplus
extern "C" {
#endif
/** Recode a dkChar string to any encoding.
@param dstb Destination buffer.
@param szdstb Size of dstb (number of elements).
The element size depends on the destination encoding.
@param de Destination encoding.
@param src Source string.
@param se Source encoding, only used if dkChar is 8 bits wide.
@param erp Error report, may be NULL.
Error codes:
- DK4_E_INVALID_ARGUMENTS
if src or dstb is NULL or szdstb is 0,
- DK4_E_BUFFER_TOO_SMALL
if dstb is too small,
- DK4_E_SYNTAX
with the number of successfully recoded characters in nelem if a
non-recodable character was found.
*/
int
dk4recode_dk_to_any(
void *dstb, size_t szdstb, int de, const dkChar *src, int se, dk4_er_t *erp
);
#ifdef __cplusplus
}
#endif
#endif