Rizin
unix-like reverse engineering framework and cli tools
rz_ebcdic.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 Billow <billow.fun@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef RZ_EBCDIC_H
5 #define RZ_EBCDIC_H
6 
7 #include "rz_utf8.h"
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 // ASCII<->EBCDIC conversion
16 
19 
22 
25 
28 
29 // Unicode <-> EBCDIC conversion
32 
35 
38 
41 
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 #endif
lzma_index * src
Definition: index.h:567
#define RZ_API
uint8_t ut8
Definition: lh5801.h:11
char * dst
Definition: lz4.h:724
RZ_API int rz_str_ebcdic_uk_from_unicode(RZ_NONNULL RZ_OUT ut8 *dst, const RzRune src)
Convert an unicode RzRune into an ebcdic_uk char.
Definition: ebcdic.c:570
RZ_API int rz_str_ebcdic_es_from_ascii(RZ_NONNULL RZ_OUT ut8 *dst, const ut8 src)
Convert an ascii char into an ebcdic char.
Definition: ebcdic.c:681
RZ_API int rz_str_ibm037_to_unicode(const ut8 src, RZ_NONNULL RZ_OUT RzRune *dst)
Convert an ibm037 char into an unicode RzRune.
Definition: ebcdic.c:457
RZ_API int rz_str_ebcdic_us_from_ascii(RZ_NONNULL RZ_OUT ut8 *dst, const ut8 src)
Convert an ascii char into an ebcdic_us char.
Definition: ebcdic.c:635
RZ_API int rz_str_ebcdic_uk_to_ascii(const ut8 src, RZ_NONNULL RZ_OUT ut8 *dst)
Convert an ebcdic_uk char into an ascii char.
Definition: ebcdic.c:580
RZ_API int rz_str_ibm037_from_ascii(RZ_NONNULL RZ_OUT ut8 *dst, const ut8 src)
Convert an ascii char into an ibm037 char.
Definition: ebcdic.c:500
RZ_API int rz_str_ebcdic_es_from_unicode(RZ_NONNULL RZ_OUT ut8 *dst, const RzRune src)
Convert an unicode RzRune into an ebcdic_es char.
Definition: ebcdic.c:657
RZ_API int rz_str_ibm290_to_unicode(const ut8 src, RZ_NONNULL RZ_OUT RzRune *dst)
Convert an ibm290 char into an unicode RzRune.
Definition: ebcdic.c:516
RZ_API int rz_str_ebcdic_us_to_ascii(const ut8 src, RZ_NONNULL RZ_OUT ut8 *dst)
Convert an ebcdic_us char into an ascii char.
Definition: ebcdic.c:624
RZ_API int rz_str_ebcdic_es_to_unicode(const ut8 src, RZ_NONNULL RZ_OUT RzRune *dst)
Convert an ebcdic_es char into an unicode RzRune.
Definition: ebcdic.c:650
RZ_API int rz_str_ebcdic_us_to_unicode(const ut8 src, RZ_NONNULL RZ_OUT RzRune *dst)
Convert an ebcdic_us char into an unicode RzRune.
Definition: ebcdic.c:607
RZ_API int rz_str_ibm290_from_ascii(RZ_NONNULL RZ_OUT ut8 *dst, const ut8 src)
Convert an ascii char into an ibm290 char.
Definition: ebcdic.c:547
RZ_API int rz_str_ebcdic_uk_from_ascii(RZ_NONNULL RZ_OUT ut8 *dst, const ut8 src)
Convert an ascii char into an ebcdic_uk char.
Definition: ebcdic.c:591
RZ_API int rz_str_ebcdic_uk_to_unicode(const ut8 src, RZ_NONNULL RZ_OUT RzRune *dst)
Convert an ebcdic_uk char into an unicode RzRune.
Definition: ebcdic.c:563
RZ_API int rz_str_ibm037_from_unicode(RZ_NONNULL RZ_OUT ut8 *dst, const RzRune src)
Convert an unicode RzRune into an ibm037 char.
Definition: ebcdic.c:469
RZ_API int rz_str_ibm290_to_ascii(const ut8 src, RZ_NONNULL RZ_OUT ut8 *dst)
Convert an ibm290 char into an ascii char.
Definition: ebcdic.c:536
RZ_API int rz_str_ibm037_to_ascii(const ut8 src, RZ_NONNULL RZ_OUT ut8 *dst)
Convert an ibm037 char into an ascii char.
Definition: ebcdic.c:484
RZ_API int rz_str_ebcdic_us_from_unicode(RZ_NONNULL RZ_OUT ut8 *dst, const RzRune src)
Convert an unicode RzRune into an ebcdic_us char.
Definition: ebcdic.c:614
RZ_API int rz_str_ebcdic_es_to_ascii(const ut8 src, RZ_NONNULL RZ_OUT ut8 *dst)
Convert an ebcdic_es char into an ascii char.
Definition: ebcdic.c:670
RZ_API int rz_str_ibm290_from_unicode(RZ_NONNULL RZ_OUT ut8 *dst, const RzRune src)
Convert an unicode RzRune into an ibm290 char.
Definition: ebcdic.c:523
#define RZ_OUT
Definition: rz_types.h:51
#define RZ_NONNULL
Definition: rz_types.h:64
ut32 RzRune
Definition: rz_utf8.h:13