diff --git a/libiconv/arm64-v8a/include/iconv.h b/libiconv/arm64-v8a/include/iconv.h
new file mode 100644
index 00000000..a844d4ca
--- /dev/null
+++ b/libiconv/arm64-v8a/include/iconv.h
@@ -0,0 +1,241 @@
+/* Copyright (C) 1999-2022 Free Software Foundation, Inc.
+ This file is part of the GNU LIBICONV Library.
+
+ The GNU LIBICONV Library is free software; you can redistribute it
+ and/or modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either version 2.1
+ of the License, or (at your option) any later version.
+
+ The GNU LIBICONV Library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU LIBICONV Library; see the file COPYING.LIB.
+ If not, see . */
+
+/* When installed, this file is called "iconv.h". */
+
+#ifndef _LIBICONV_H
+#define _LIBICONV_H
+
+#define _LIBICONV_VERSION 0x0111 /* version number: (major<<8) + minor */
+extern int _libiconv_version; /* Likewise */
+
+/* We would like to #include any system header file which could define
+ iconv_t, 1. in order to eliminate the risk that the user gets compilation
+ errors because some other system header file includes /usr/include/iconv.h
+ which defines iconv_t or declares iconv after this file, 2. when compiling
+ for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
+ binary compatible code.
+ But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
+ has been installed in /usr/local/include, there is no way any more to
+ include the original /usr/include/iconv.h. We simply have to get away
+ without it.
+ Ad 1. The risk that a system header file does
+ #include "iconv.h" or #include_next "iconv.h"
+ is small. They all do #include .
+ Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
+ has to be a scalar type because (iconv_t)(-1) is a possible return value
+ from iconv_open().) */
+
+/* Define iconv_t ourselves. */
+#undef iconv_t
+#define iconv_t libiconv_t
+typedef void* iconv_t;
+
+/* Get size_t declaration.
+ Get wchar_t declaration if it exists. */
+#include
+
+/* Get errno declaration and values. */
+#include
+/* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like BSD/OS,
+ have EILSEQ in a different header. On these systems, define EILSEQ
+ ourselves. */
+#ifndef EILSEQ
+#define EILSEQ
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’. */
+#ifndef LIBICONV_PLUG
+#define iconv_open libiconv_open
+#endif
+extern iconv_t iconv_open (const char* tocode, const char* fromcode);
+
+/* Converts, using conversion descriptor ‘cd’, at most ‘*inbytesleft’ bytes
+ starting at ‘*inbuf’, writing at most ‘*outbytesleft’ bytes starting at
+ ‘*outbuf’.
+ Decrements ‘*inbytesleft’ and increments ‘*inbuf’ by the same amount.
+ Decrements ‘*outbytesleft’ and increments ‘*outbuf’ by the same amount. */
+#ifndef LIBICONV_PLUG
+#define iconv libiconv
+#endif
+extern size_t iconv (iconv_t cd, char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
+
+/* Frees resources allocated for conversion descriptor ‘cd’. */
+#ifndef LIBICONV_PLUG
+#define iconv_close libiconv_close
+#endif
+extern int iconv_close (iconv_t cd);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifndef LIBICONV_PLUG
+
+/* Nonstandard extensions. */
+
+#if 1
+#if 0
+/* Tru64 with Desktop Toolkit C has a bug: must be included before
+ .
+ BSD/OS 4.0.1 has a bug: , and must be
+ included before . */
+#include
+#include
+#include
+#endif
+#include
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* A type that holds all memory needed by a conversion descriptor.
+ A pointer to such an object can be used as an iconv_t. */
+typedef struct {
+ void* dummy1[28];
+#if 1
+ mbstate_t dummy2;
+#endif
+} iconv_allocation_t;
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’ into preallocated memory. Returns an error indicator
+ (0 or -1 with errno set). */
+#define iconv_open_into libiconv_open_into
+extern int iconv_open_into (const char* tocode, const char* fromcode,
+ iconv_allocation_t* resultp);
+
+/* Control of attributes. */
+#define iconvctl libiconvctl
+extern int iconvctl (iconv_t cd, int request, void* argument);
+
+/* Hook performed after every successful conversion of a Unicode character. */
+typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
+/* Hook performed after every successful conversion of a wide character. */
+typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
+/* Set of hooks. */
+struct iconv_hooks {
+ iconv_unicode_char_hook uc_hook;
+ iconv_wide_char_hook wc_hook;
+ void* data;
+};
+
+/* Fallback function. Invoked when a small number of bytes could not be
+ converted to a Unicode character. This function should process all
+ bytes from inbuf and may produce replacement Unicode characters by calling
+ the write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_mb_to_uc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const unsigned int *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a Unicode character could not be converted
+ to the target encoding. This function should process the character and
+ may produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_uc_to_mb_fallback)
+ (unsigned int code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#if 1
+/* Fallback function. Invoked when a number of bytes could not be converted to
+ a wide character. This function should process all bytes from inbuf and may
+ produce replacement wide characters by calling the write_replacement
+ callback repeatedly. */
+typedef void (*iconv_wchar_mb_to_wc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const wchar_t *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a wide character could not be converted to
+ the target encoding. This function should process the character and may
+ produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_wchar_wc_to_mb_fallback)
+ (wchar_t code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#else
+/* If the wchar_t type does not exist, these two fallback functions are never
+ invoked. Their argument list therefore does not matter. */
+typedef void (*iconv_wchar_mb_to_wc_fallback) ();
+typedef void (*iconv_wchar_wc_to_mb_fallback) ();
+#endif
+/* Set of fallbacks. */
+struct iconv_fallbacks {
+ iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
+ iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
+ iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
+ iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
+ void* data;
+};
+
+/* Requests for iconvctl. */
+#define ICONV_TRIVIALP 0 /* int *argument */
+#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
+#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
+#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
+#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
+#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
+#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
+
+/* Listing of locale independent encodings. */
+#define iconvlist libiconvlist
+extern void iconvlist (int (*do_one) (unsigned int namescount,
+ const char * const * names,
+ void* data),
+ void* data);
+
+/* Canonicalize an encoding name.
+ The result is either a canonical encoding name, or name itself. */
+extern const char * iconv_canonicalize (const char * name);
+
+/* Support for relocatable packages. */
+
+/* Sets the original and the current installation prefix of the package.
+ Relocation simply replaces a pathname starting with the original prefix
+ by the corresponding pathname with the current prefix instead. Both
+ prefixes should be directory names without trailing slash (i.e. use ""
+ instead of "/"). */
+extern void libiconv_set_relocation_prefix (const char *orig_prefix,
+ const char *curr_prefix);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
+#endif /* _LIBICONV_H */
diff --git a/libiconv/arm64-v8a/lib/libiconv.a b/libiconv/arm64-v8a/lib/libiconv.a
new file mode 100644
index 00000000..77d10bc9
Binary files /dev/null and b/libiconv/arm64-v8a/lib/libiconv.a differ
diff --git a/libiconv/armeabi-v7a/include/iconv.h b/libiconv/armeabi-v7a/include/iconv.h
new file mode 100644
index 00000000..a844d4ca
--- /dev/null
+++ b/libiconv/armeabi-v7a/include/iconv.h
@@ -0,0 +1,241 @@
+/* Copyright (C) 1999-2022 Free Software Foundation, Inc.
+ This file is part of the GNU LIBICONV Library.
+
+ The GNU LIBICONV Library is free software; you can redistribute it
+ and/or modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either version 2.1
+ of the License, or (at your option) any later version.
+
+ The GNU LIBICONV Library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU LIBICONV Library; see the file COPYING.LIB.
+ If not, see . */
+
+/* When installed, this file is called "iconv.h". */
+
+#ifndef _LIBICONV_H
+#define _LIBICONV_H
+
+#define _LIBICONV_VERSION 0x0111 /* version number: (major<<8) + minor */
+extern int _libiconv_version; /* Likewise */
+
+/* We would like to #include any system header file which could define
+ iconv_t, 1. in order to eliminate the risk that the user gets compilation
+ errors because some other system header file includes /usr/include/iconv.h
+ which defines iconv_t or declares iconv after this file, 2. when compiling
+ for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
+ binary compatible code.
+ But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
+ has been installed in /usr/local/include, there is no way any more to
+ include the original /usr/include/iconv.h. We simply have to get away
+ without it.
+ Ad 1. The risk that a system header file does
+ #include "iconv.h" or #include_next "iconv.h"
+ is small. They all do #include .
+ Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
+ has to be a scalar type because (iconv_t)(-1) is a possible return value
+ from iconv_open().) */
+
+/* Define iconv_t ourselves. */
+#undef iconv_t
+#define iconv_t libiconv_t
+typedef void* iconv_t;
+
+/* Get size_t declaration.
+ Get wchar_t declaration if it exists. */
+#include
+
+/* Get errno declaration and values. */
+#include
+/* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like BSD/OS,
+ have EILSEQ in a different header. On these systems, define EILSEQ
+ ourselves. */
+#ifndef EILSEQ
+#define EILSEQ
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’. */
+#ifndef LIBICONV_PLUG
+#define iconv_open libiconv_open
+#endif
+extern iconv_t iconv_open (const char* tocode, const char* fromcode);
+
+/* Converts, using conversion descriptor ‘cd’, at most ‘*inbytesleft’ bytes
+ starting at ‘*inbuf’, writing at most ‘*outbytesleft’ bytes starting at
+ ‘*outbuf’.
+ Decrements ‘*inbytesleft’ and increments ‘*inbuf’ by the same amount.
+ Decrements ‘*outbytesleft’ and increments ‘*outbuf’ by the same amount. */
+#ifndef LIBICONV_PLUG
+#define iconv libiconv
+#endif
+extern size_t iconv (iconv_t cd, char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
+
+/* Frees resources allocated for conversion descriptor ‘cd’. */
+#ifndef LIBICONV_PLUG
+#define iconv_close libiconv_close
+#endif
+extern int iconv_close (iconv_t cd);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifndef LIBICONV_PLUG
+
+/* Nonstandard extensions. */
+
+#if 1
+#if 0
+/* Tru64 with Desktop Toolkit C has a bug: must be included before
+ .
+ BSD/OS 4.0.1 has a bug: , and must be
+ included before . */
+#include
+#include
+#include
+#endif
+#include
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* A type that holds all memory needed by a conversion descriptor.
+ A pointer to such an object can be used as an iconv_t. */
+typedef struct {
+ void* dummy1[28];
+#if 1
+ mbstate_t dummy2;
+#endif
+} iconv_allocation_t;
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’ into preallocated memory. Returns an error indicator
+ (0 or -1 with errno set). */
+#define iconv_open_into libiconv_open_into
+extern int iconv_open_into (const char* tocode, const char* fromcode,
+ iconv_allocation_t* resultp);
+
+/* Control of attributes. */
+#define iconvctl libiconvctl
+extern int iconvctl (iconv_t cd, int request, void* argument);
+
+/* Hook performed after every successful conversion of a Unicode character. */
+typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
+/* Hook performed after every successful conversion of a wide character. */
+typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
+/* Set of hooks. */
+struct iconv_hooks {
+ iconv_unicode_char_hook uc_hook;
+ iconv_wide_char_hook wc_hook;
+ void* data;
+};
+
+/* Fallback function. Invoked when a small number of bytes could not be
+ converted to a Unicode character. This function should process all
+ bytes from inbuf and may produce replacement Unicode characters by calling
+ the write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_mb_to_uc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const unsigned int *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a Unicode character could not be converted
+ to the target encoding. This function should process the character and
+ may produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_uc_to_mb_fallback)
+ (unsigned int code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#if 1
+/* Fallback function. Invoked when a number of bytes could not be converted to
+ a wide character. This function should process all bytes from inbuf and may
+ produce replacement wide characters by calling the write_replacement
+ callback repeatedly. */
+typedef void (*iconv_wchar_mb_to_wc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const wchar_t *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a wide character could not be converted to
+ the target encoding. This function should process the character and may
+ produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_wchar_wc_to_mb_fallback)
+ (wchar_t code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#else
+/* If the wchar_t type does not exist, these two fallback functions are never
+ invoked. Their argument list therefore does not matter. */
+typedef void (*iconv_wchar_mb_to_wc_fallback) ();
+typedef void (*iconv_wchar_wc_to_mb_fallback) ();
+#endif
+/* Set of fallbacks. */
+struct iconv_fallbacks {
+ iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
+ iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
+ iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
+ iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
+ void* data;
+};
+
+/* Requests for iconvctl. */
+#define ICONV_TRIVIALP 0 /* int *argument */
+#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
+#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
+#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
+#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
+#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
+#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
+
+/* Listing of locale independent encodings. */
+#define iconvlist libiconvlist
+extern void iconvlist (int (*do_one) (unsigned int namescount,
+ const char * const * names,
+ void* data),
+ void* data);
+
+/* Canonicalize an encoding name.
+ The result is either a canonical encoding name, or name itself. */
+extern const char * iconv_canonicalize (const char * name);
+
+/* Support for relocatable packages. */
+
+/* Sets the original and the current installation prefix of the package.
+ Relocation simply replaces a pathname starting with the original prefix
+ by the corresponding pathname with the current prefix instead. Both
+ prefixes should be directory names without trailing slash (i.e. use ""
+ instead of "/"). */
+extern void libiconv_set_relocation_prefix (const char *orig_prefix,
+ const char *curr_prefix);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
+#endif /* _LIBICONV_H */
diff --git a/libiconv/armeabi-v7a/lib/libiconv.a b/libiconv/armeabi-v7a/lib/libiconv.a
new file mode 100644
index 00000000..5c0fb6da
Binary files /dev/null and b/libiconv/armeabi-v7a/lib/libiconv.a differ
diff --git a/libiconv/x86/include/iconv.h b/libiconv/x86/include/iconv.h
new file mode 100644
index 00000000..a844d4ca
--- /dev/null
+++ b/libiconv/x86/include/iconv.h
@@ -0,0 +1,241 @@
+/* Copyright (C) 1999-2022 Free Software Foundation, Inc.
+ This file is part of the GNU LIBICONV Library.
+
+ The GNU LIBICONV Library is free software; you can redistribute it
+ and/or modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either version 2.1
+ of the License, or (at your option) any later version.
+
+ The GNU LIBICONV Library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU LIBICONV Library; see the file COPYING.LIB.
+ If not, see . */
+
+/* When installed, this file is called "iconv.h". */
+
+#ifndef _LIBICONV_H
+#define _LIBICONV_H
+
+#define _LIBICONV_VERSION 0x0111 /* version number: (major<<8) + minor */
+extern int _libiconv_version; /* Likewise */
+
+/* We would like to #include any system header file which could define
+ iconv_t, 1. in order to eliminate the risk that the user gets compilation
+ errors because some other system header file includes /usr/include/iconv.h
+ which defines iconv_t or declares iconv after this file, 2. when compiling
+ for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
+ binary compatible code.
+ But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
+ has been installed in /usr/local/include, there is no way any more to
+ include the original /usr/include/iconv.h. We simply have to get away
+ without it.
+ Ad 1. The risk that a system header file does
+ #include "iconv.h" or #include_next "iconv.h"
+ is small. They all do #include .
+ Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
+ has to be a scalar type because (iconv_t)(-1) is a possible return value
+ from iconv_open().) */
+
+/* Define iconv_t ourselves. */
+#undef iconv_t
+#define iconv_t libiconv_t
+typedef void* iconv_t;
+
+/* Get size_t declaration.
+ Get wchar_t declaration if it exists. */
+#include
+
+/* Get errno declaration and values. */
+#include
+/* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like BSD/OS,
+ have EILSEQ in a different header. On these systems, define EILSEQ
+ ourselves. */
+#ifndef EILSEQ
+#define EILSEQ
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’. */
+#ifndef LIBICONV_PLUG
+#define iconv_open libiconv_open
+#endif
+extern iconv_t iconv_open (const char* tocode, const char* fromcode);
+
+/* Converts, using conversion descriptor ‘cd’, at most ‘*inbytesleft’ bytes
+ starting at ‘*inbuf’, writing at most ‘*outbytesleft’ bytes starting at
+ ‘*outbuf’.
+ Decrements ‘*inbytesleft’ and increments ‘*inbuf’ by the same amount.
+ Decrements ‘*outbytesleft’ and increments ‘*outbuf’ by the same amount. */
+#ifndef LIBICONV_PLUG
+#define iconv libiconv
+#endif
+extern size_t iconv (iconv_t cd, char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
+
+/* Frees resources allocated for conversion descriptor ‘cd’. */
+#ifndef LIBICONV_PLUG
+#define iconv_close libiconv_close
+#endif
+extern int iconv_close (iconv_t cd);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifndef LIBICONV_PLUG
+
+/* Nonstandard extensions. */
+
+#if 1
+#if 0
+/* Tru64 with Desktop Toolkit C has a bug: must be included before
+ .
+ BSD/OS 4.0.1 has a bug: , and must be
+ included before . */
+#include
+#include
+#include
+#endif
+#include
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* A type that holds all memory needed by a conversion descriptor.
+ A pointer to such an object can be used as an iconv_t. */
+typedef struct {
+ void* dummy1[28];
+#if 1
+ mbstate_t dummy2;
+#endif
+} iconv_allocation_t;
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’ into preallocated memory. Returns an error indicator
+ (0 or -1 with errno set). */
+#define iconv_open_into libiconv_open_into
+extern int iconv_open_into (const char* tocode, const char* fromcode,
+ iconv_allocation_t* resultp);
+
+/* Control of attributes. */
+#define iconvctl libiconvctl
+extern int iconvctl (iconv_t cd, int request, void* argument);
+
+/* Hook performed after every successful conversion of a Unicode character. */
+typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
+/* Hook performed after every successful conversion of a wide character. */
+typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
+/* Set of hooks. */
+struct iconv_hooks {
+ iconv_unicode_char_hook uc_hook;
+ iconv_wide_char_hook wc_hook;
+ void* data;
+};
+
+/* Fallback function. Invoked when a small number of bytes could not be
+ converted to a Unicode character. This function should process all
+ bytes from inbuf and may produce replacement Unicode characters by calling
+ the write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_mb_to_uc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const unsigned int *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a Unicode character could not be converted
+ to the target encoding. This function should process the character and
+ may produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_uc_to_mb_fallback)
+ (unsigned int code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#if 1
+/* Fallback function. Invoked when a number of bytes could not be converted to
+ a wide character. This function should process all bytes from inbuf and may
+ produce replacement wide characters by calling the write_replacement
+ callback repeatedly. */
+typedef void (*iconv_wchar_mb_to_wc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const wchar_t *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a wide character could not be converted to
+ the target encoding. This function should process the character and may
+ produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_wchar_wc_to_mb_fallback)
+ (wchar_t code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#else
+/* If the wchar_t type does not exist, these two fallback functions are never
+ invoked. Their argument list therefore does not matter. */
+typedef void (*iconv_wchar_mb_to_wc_fallback) ();
+typedef void (*iconv_wchar_wc_to_mb_fallback) ();
+#endif
+/* Set of fallbacks. */
+struct iconv_fallbacks {
+ iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
+ iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
+ iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
+ iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
+ void* data;
+};
+
+/* Requests for iconvctl. */
+#define ICONV_TRIVIALP 0 /* int *argument */
+#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
+#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
+#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
+#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
+#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
+#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
+
+/* Listing of locale independent encodings. */
+#define iconvlist libiconvlist
+extern void iconvlist (int (*do_one) (unsigned int namescount,
+ const char * const * names,
+ void* data),
+ void* data);
+
+/* Canonicalize an encoding name.
+ The result is either a canonical encoding name, or name itself. */
+extern const char * iconv_canonicalize (const char * name);
+
+/* Support for relocatable packages. */
+
+/* Sets the original and the current installation prefix of the package.
+ Relocation simply replaces a pathname starting with the original prefix
+ by the corresponding pathname with the current prefix instead. Both
+ prefixes should be directory names without trailing slash (i.e. use ""
+ instead of "/"). */
+extern void libiconv_set_relocation_prefix (const char *orig_prefix,
+ const char *curr_prefix);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
+#endif /* _LIBICONV_H */
diff --git a/libiconv/x86/lib/libiconv.a b/libiconv/x86/lib/libiconv.a
new file mode 100644
index 00000000..6fc0f131
Binary files /dev/null and b/libiconv/x86/lib/libiconv.a differ
diff --git a/libiconv/x86_64/include/iconv.h b/libiconv/x86_64/include/iconv.h
new file mode 100644
index 00000000..a844d4ca
--- /dev/null
+++ b/libiconv/x86_64/include/iconv.h
@@ -0,0 +1,241 @@
+/* Copyright (C) 1999-2022 Free Software Foundation, Inc.
+ This file is part of the GNU LIBICONV Library.
+
+ The GNU LIBICONV Library is free software; you can redistribute it
+ and/or modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either version 2.1
+ of the License, or (at your option) any later version.
+
+ The GNU LIBICONV Library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU LIBICONV Library; see the file COPYING.LIB.
+ If not, see . */
+
+/* When installed, this file is called "iconv.h". */
+
+#ifndef _LIBICONV_H
+#define _LIBICONV_H
+
+#define _LIBICONV_VERSION 0x0111 /* version number: (major<<8) + minor */
+extern int _libiconv_version; /* Likewise */
+
+/* We would like to #include any system header file which could define
+ iconv_t, 1. in order to eliminate the risk that the user gets compilation
+ errors because some other system header file includes /usr/include/iconv.h
+ which defines iconv_t or declares iconv after this file, 2. when compiling
+ for LIBICONV_PLUG, we need the proper iconv_t type in order to produce
+ binary compatible code.
+ But gcc's #include_next is not portable. Thus, once libiconv's iconv.h
+ has been installed in /usr/local/include, there is no way any more to
+ include the original /usr/include/iconv.h. We simply have to get away
+ without it.
+ Ad 1. The risk that a system header file does
+ #include "iconv.h" or #include_next "iconv.h"
+ is small. They all do #include .
+ Ad 2. The iconv_t type is a pointer type in all cases I have seen. (It
+ has to be a scalar type because (iconv_t)(-1) is a possible return value
+ from iconv_open().) */
+
+/* Define iconv_t ourselves. */
+#undef iconv_t
+#define iconv_t libiconv_t
+typedef void* iconv_t;
+
+/* Get size_t declaration.
+ Get wchar_t declaration if it exists. */
+#include
+
+/* Get errno declaration and values. */
+#include
+/* Some systems, like SunOS 4, don't have EILSEQ. Some systems, like BSD/OS,
+ have EILSEQ in a different header. On these systems, define EILSEQ
+ ourselves. */
+#ifndef EILSEQ
+#define EILSEQ
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’. */
+#ifndef LIBICONV_PLUG
+#define iconv_open libiconv_open
+#endif
+extern iconv_t iconv_open (const char* tocode, const char* fromcode);
+
+/* Converts, using conversion descriptor ‘cd’, at most ‘*inbytesleft’ bytes
+ starting at ‘*inbuf’, writing at most ‘*outbytesleft’ bytes starting at
+ ‘*outbuf’.
+ Decrements ‘*inbytesleft’ and increments ‘*inbuf’ by the same amount.
+ Decrements ‘*outbytesleft’ and increments ‘*outbuf’ by the same amount. */
+#ifndef LIBICONV_PLUG
+#define iconv libiconv
+#endif
+extern size_t iconv (iconv_t cd, char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
+
+/* Frees resources allocated for conversion descriptor ‘cd’. */
+#ifndef LIBICONV_PLUG
+#define iconv_close libiconv_close
+#endif
+extern int iconv_close (iconv_t cd);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifndef LIBICONV_PLUG
+
+/* Nonstandard extensions. */
+
+#if 1
+#if 0
+/* Tru64 with Desktop Toolkit C has a bug: must be included before
+ .
+ BSD/OS 4.0.1 has a bug: , and must be
+ included before . */
+#include
+#include
+#include
+#endif
+#include
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* A type that holds all memory needed by a conversion descriptor.
+ A pointer to such an object can be used as an iconv_t. */
+typedef struct {
+ void* dummy1[28];
+#if 1
+ mbstate_t dummy2;
+#endif
+} iconv_allocation_t;
+
+/* Allocates descriptor for code conversion from encoding ‘fromcode’ to
+ encoding ‘tocode’ into preallocated memory. Returns an error indicator
+ (0 or -1 with errno set). */
+#define iconv_open_into libiconv_open_into
+extern int iconv_open_into (const char* tocode, const char* fromcode,
+ iconv_allocation_t* resultp);
+
+/* Control of attributes. */
+#define iconvctl libiconvctl
+extern int iconvctl (iconv_t cd, int request, void* argument);
+
+/* Hook performed after every successful conversion of a Unicode character. */
+typedef void (*iconv_unicode_char_hook) (unsigned int uc, void* data);
+/* Hook performed after every successful conversion of a wide character. */
+typedef void (*iconv_wide_char_hook) (wchar_t wc, void* data);
+/* Set of hooks. */
+struct iconv_hooks {
+ iconv_unicode_char_hook uc_hook;
+ iconv_wide_char_hook wc_hook;
+ void* data;
+};
+
+/* Fallback function. Invoked when a small number of bytes could not be
+ converted to a Unicode character. This function should process all
+ bytes from inbuf and may produce replacement Unicode characters by calling
+ the write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_mb_to_uc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const unsigned int *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a Unicode character could not be converted
+ to the target encoding. This function should process the character and
+ may produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_unicode_uc_to_mb_fallback)
+ (unsigned int code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#if 1
+/* Fallback function. Invoked when a number of bytes could not be converted to
+ a wide character. This function should process all bytes from inbuf and may
+ produce replacement wide characters by calling the write_replacement
+ callback repeatedly. */
+typedef void (*iconv_wchar_mb_to_wc_fallback)
+ (const char* inbuf, size_t inbufsize,
+ void (*write_replacement) (const wchar_t *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+/* Fallback function. Invoked when a wide character could not be converted to
+ the target encoding. This function should process the character and may
+ produce replacement bytes (in the target encoding) by calling the
+ write_replacement callback repeatedly. */
+typedef void (*iconv_wchar_wc_to_mb_fallback)
+ (wchar_t code,
+ void (*write_replacement) (const char *buf, size_t buflen,
+ void* callback_arg),
+ void* callback_arg,
+ void* data);
+#else
+/* If the wchar_t type does not exist, these two fallback functions are never
+ invoked. Their argument list therefore does not matter. */
+typedef void (*iconv_wchar_mb_to_wc_fallback) ();
+typedef void (*iconv_wchar_wc_to_mb_fallback) ();
+#endif
+/* Set of fallbacks. */
+struct iconv_fallbacks {
+ iconv_unicode_mb_to_uc_fallback mb_to_uc_fallback;
+ iconv_unicode_uc_to_mb_fallback uc_to_mb_fallback;
+ iconv_wchar_mb_to_wc_fallback mb_to_wc_fallback;
+ iconv_wchar_wc_to_mb_fallback wc_to_mb_fallback;
+ void* data;
+};
+
+/* Requests for iconvctl. */
+#define ICONV_TRIVIALP 0 /* int *argument */
+#define ICONV_GET_TRANSLITERATE 1 /* int *argument */
+#define ICONV_SET_TRANSLITERATE 2 /* const int *argument */
+#define ICONV_GET_DISCARD_ILSEQ 3 /* int *argument */
+#define ICONV_SET_DISCARD_ILSEQ 4 /* const int *argument */
+#define ICONV_SET_HOOKS 5 /* const struct iconv_hooks *argument */
+#define ICONV_SET_FALLBACKS 6 /* const struct iconv_fallbacks *argument */
+
+/* Listing of locale independent encodings. */
+#define iconvlist libiconvlist
+extern void iconvlist (int (*do_one) (unsigned int namescount,
+ const char * const * names,
+ void* data),
+ void* data);
+
+/* Canonicalize an encoding name.
+ The result is either a canonical encoding name, or name itself. */
+extern const char * iconv_canonicalize (const char * name);
+
+/* Support for relocatable packages. */
+
+/* Sets the original and the current installation prefix of the package.
+ Relocation simply replaces a pathname starting with the original prefix
+ by the corresponding pathname with the current prefix instead. Both
+ prefixes should be directory names without trailing slash (i.e. use ""
+ instead of "/"). */
+extern void libiconv_set_relocation_prefix (const char *orig_prefix,
+ const char *curr_prefix);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+
+#endif /* _LIBICONV_H */
diff --git a/libiconv/x86_64/lib/libiconv.a b/libiconv/x86_64/lib/libiconv.a
new file mode 100644
index 00000000..a9e022a0
Binary files /dev/null and b/libiconv/x86_64/lib/libiconv.a differ
diff --git a/libthai/arm64-v8a/include/thai/thailib.h b/libthai/arm64-v8a/include/thai/thailib.h
new file mode 100644
index 00000000..d0bab839
--- /dev/null
+++ b/libthai/arm64-v8a/include/thai/thailib.h
@@ -0,0 +1,71 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thailib.h - general declarations for libthai
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THAILIB_H
+#define THAI_THAILIB_H
+
+/**
+ * @file thailib.h
+ * @brief General declarations for libthai
+ */
+
+#include
+
+#ifdef __cplusplus
+# define BEGIN_CDECL extern "C" {
+# define END_CDECL }
+#else /* !__cplusplus */
+# define BEGIN_CDECL
+# define END_CDECL
+#endif /* __cplusplus */
+
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
+#define TH_DEPRECATED __attribute__((__deprecated__))
+#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
+#define TH_DEPRECATED __declspec(deprecated)
+#else
+#define TH_DEPRECATED
+#endif
+
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
+#define TH_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
+#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
+#define TH_DEPRECATED_FOR(f) __declspec(deprecated("is deprecated. Use '" #f "' instead"))
+#else
+#define TH_DEPRECATED_FOR(f) TH_DEPRECATED
+#endif
+
+
+/**
+ * @brief Character value indicating error
+ */
+#define THCHAR_ERR ((thchar_t)~0)
+
+/**
+ * @brief Thai character type for storing TIS-620 character
+ */
+typedef unsigned char thchar_t;
+
+#endif /* THAI_THAILIB_H */
+
diff --git a/libthai/arm64-v8a/include/thai/thcell.h b/libthai/arm64-v8a/include/thai/thcell.h
new file mode 100644
index 00000000..25bb18f4
--- /dev/null
+++ b/libthai/arm64-v8a/include/thai/thcell.h
@@ -0,0 +1,60 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thcell.h - Thai string cell custering
+ * Created: 2001-08-08 (split from thrend.h)
+ */
+
+#ifndef THAI_THCELL_H
+#define THAI_THCELL_H
+
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thcell.h
+ * @brief Thai string cell custering
+ */
+
+/**
+ * @brief Thai char cell representation
+ */
+struct thcell_t {
+ thchar_t base; /**< base character */
+ thchar_t hilo; /**< upper/lower vowel/diacritic */
+ thchar_t top; /**< top-level mark */
+};
+
+extern void th_init_cell(struct thcell_t *cell);
+
+extern size_t th_next_cell(const thchar_t *s, size_t len,
+ struct thcell_t *cell, int is_decomp_am);
+
+extern size_t th_prev_cell(const thchar_t *s, size_t pos,
+ struct thcell_t *cell, int is_decomp_am);
+extern size_t th_make_cells(const thchar_t *s, size_t len,
+ struct thcell_t cells[], size_t *ncells,
+ int is_decomp_am);
+
+END_CDECL
+
+#endif /* THAI_THCELL_H */
+
diff --git a/libthai/arm64-v8a/include/thai/thinp.h b/libthai/arm64-v8a/include/thai/thinp.h
new file mode 100644
index 00000000..76074f3d
--- /dev/null
+++ b/libthai/arm64-v8a/include/thai/thinp.h
@@ -0,0 +1,66 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thinp.h - Thai string input sequence filtering
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THINP_H
+#define THAI_THINP_H
+
+#include
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thinp.h
+ * @brief Thai string input sequence filtering
+ */
+
+/**
+ * @brief Strictness of input sequence checking, according to WTT 2.0
+ */
+typedef enum {
+ ISC_PASSTHROUGH = 0, /**< No check */
+ ISC_BASICCHECK = 1, /**< Basic check */
+ ISC_STRICT = 2 /**< Strict check */
+} thstrict_t;
+
+extern int th_isaccept(thchar_t c1, thchar_t c2, thstrict_t s);
+
+/**
+ * @brief Input sequence correction info
+ */
+struct thinpconv_t {
+ thchar_t conv[4]; /**< (null-terminated) string to put into input buffer */
+ int offset; /**< offset (<=0) from cur pos where the conv begin */
+};
+
+extern int th_validate(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv);
+
+extern int th_validate_leveled(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv, thstrict_t s);
+
+END_CDECL
+
+#endif /* THAI_THINP_H */
+
diff --git a/libthai/arm64-v8a/lib/libthai.a b/libthai/arm64-v8a/lib/libthai.a
new file mode 100644
index 00000000..3b6ae1d3
Binary files /dev/null and b/libthai/arm64-v8a/lib/libthai.a differ
diff --git a/libthai/armeabi-v7a/include/thai/thailib.h b/libthai/armeabi-v7a/include/thai/thailib.h
new file mode 100644
index 00000000..d0bab839
--- /dev/null
+++ b/libthai/armeabi-v7a/include/thai/thailib.h
@@ -0,0 +1,71 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thailib.h - general declarations for libthai
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THAILIB_H
+#define THAI_THAILIB_H
+
+/**
+ * @file thailib.h
+ * @brief General declarations for libthai
+ */
+
+#include
+
+#ifdef __cplusplus
+# define BEGIN_CDECL extern "C" {
+# define END_CDECL }
+#else /* !__cplusplus */
+# define BEGIN_CDECL
+# define END_CDECL
+#endif /* __cplusplus */
+
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
+#define TH_DEPRECATED __attribute__((__deprecated__))
+#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
+#define TH_DEPRECATED __declspec(deprecated)
+#else
+#define TH_DEPRECATED
+#endif
+
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
+#define TH_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
+#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
+#define TH_DEPRECATED_FOR(f) __declspec(deprecated("is deprecated. Use '" #f "' instead"))
+#else
+#define TH_DEPRECATED_FOR(f) TH_DEPRECATED
+#endif
+
+
+/**
+ * @brief Character value indicating error
+ */
+#define THCHAR_ERR ((thchar_t)~0)
+
+/**
+ * @brief Thai character type for storing TIS-620 character
+ */
+typedef unsigned char thchar_t;
+
+#endif /* THAI_THAILIB_H */
+
diff --git a/libthai/armeabi-v7a/include/thai/thcell.h b/libthai/armeabi-v7a/include/thai/thcell.h
new file mode 100644
index 00000000..25bb18f4
--- /dev/null
+++ b/libthai/armeabi-v7a/include/thai/thcell.h
@@ -0,0 +1,60 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thcell.h - Thai string cell custering
+ * Created: 2001-08-08 (split from thrend.h)
+ */
+
+#ifndef THAI_THCELL_H
+#define THAI_THCELL_H
+
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thcell.h
+ * @brief Thai string cell custering
+ */
+
+/**
+ * @brief Thai char cell representation
+ */
+struct thcell_t {
+ thchar_t base; /**< base character */
+ thchar_t hilo; /**< upper/lower vowel/diacritic */
+ thchar_t top; /**< top-level mark */
+};
+
+extern void th_init_cell(struct thcell_t *cell);
+
+extern size_t th_next_cell(const thchar_t *s, size_t len,
+ struct thcell_t *cell, int is_decomp_am);
+
+extern size_t th_prev_cell(const thchar_t *s, size_t pos,
+ struct thcell_t *cell, int is_decomp_am);
+extern size_t th_make_cells(const thchar_t *s, size_t len,
+ struct thcell_t cells[], size_t *ncells,
+ int is_decomp_am);
+
+END_CDECL
+
+#endif /* THAI_THCELL_H */
+
diff --git a/libthai/armeabi-v7a/include/thai/thinp.h b/libthai/armeabi-v7a/include/thai/thinp.h
new file mode 100644
index 00000000..76074f3d
--- /dev/null
+++ b/libthai/armeabi-v7a/include/thai/thinp.h
@@ -0,0 +1,66 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thinp.h - Thai string input sequence filtering
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THINP_H
+#define THAI_THINP_H
+
+#include
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thinp.h
+ * @brief Thai string input sequence filtering
+ */
+
+/**
+ * @brief Strictness of input sequence checking, according to WTT 2.0
+ */
+typedef enum {
+ ISC_PASSTHROUGH = 0, /**< No check */
+ ISC_BASICCHECK = 1, /**< Basic check */
+ ISC_STRICT = 2 /**< Strict check */
+} thstrict_t;
+
+extern int th_isaccept(thchar_t c1, thchar_t c2, thstrict_t s);
+
+/**
+ * @brief Input sequence correction info
+ */
+struct thinpconv_t {
+ thchar_t conv[4]; /**< (null-terminated) string to put into input buffer */
+ int offset; /**< offset (<=0) from cur pos where the conv begin */
+};
+
+extern int th_validate(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv);
+
+extern int th_validate_leveled(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv, thstrict_t s);
+
+END_CDECL
+
+#endif /* THAI_THINP_H */
+
diff --git a/libthai/armeabi-v7a/lib/libthai.a b/libthai/armeabi-v7a/lib/libthai.a
new file mode 100644
index 00000000..95f1c7f6
Binary files /dev/null and b/libthai/armeabi-v7a/lib/libthai.a differ
diff --git a/libthai/x86/include/thai/thailib.h b/libthai/x86/include/thai/thailib.h
new file mode 100644
index 00000000..d0bab839
--- /dev/null
+++ b/libthai/x86/include/thai/thailib.h
@@ -0,0 +1,71 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thailib.h - general declarations for libthai
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THAILIB_H
+#define THAI_THAILIB_H
+
+/**
+ * @file thailib.h
+ * @brief General declarations for libthai
+ */
+
+#include
+
+#ifdef __cplusplus
+# define BEGIN_CDECL extern "C" {
+# define END_CDECL }
+#else /* !__cplusplus */
+# define BEGIN_CDECL
+# define END_CDECL
+#endif /* __cplusplus */
+
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
+#define TH_DEPRECATED __attribute__((__deprecated__))
+#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
+#define TH_DEPRECATED __declspec(deprecated)
+#else
+#define TH_DEPRECATED
+#endif
+
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
+#define TH_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
+#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
+#define TH_DEPRECATED_FOR(f) __declspec(deprecated("is deprecated. Use '" #f "' instead"))
+#else
+#define TH_DEPRECATED_FOR(f) TH_DEPRECATED
+#endif
+
+
+/**
+ * @brief Character value indicating error
+ */
+#define THCHAR_ERR ((thchar_t)~0)
+
+/**
+ * @brief Thai character type for storing TIS-620 character
+ */
+typedef unsigned char thchar_t;
+
+#endif /* THAI_THAILIB_H */
+
diff --git a/libthai/x86/include/thai/thcell.h b/libthai/x86/include/thai/thcell.h
new file mode 100644
index 00000000..25bb18f4
--- /dev/null
+++ b/libthai/x86/include/thai/thcell.h
@@ -0,0 +1,60 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thcell.h - Thai string cell custering
+ * Created: 2001-08-08 (split from thrend.h)
+ */
+
+#ifndef THAI_THCELL_H
+#define THAI_THCELL_H
+
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thcell.h
+ * @brief Thai string cell custering
+ */
+
+/**
+ * @brief Thai char cell representation
+ */
+struct thcell_t {
+ thchar_t base; /**< base character */
+ thchar_t hilo; /**< upper/lower vowel/diacritic */
+ thchar_t top; /**< top-level mark */
+};
+
+extern void th_init_cell(struct thcell_t *cell);
+
+extern size_t th_next_cell(const thchar_t *s, size_t len,
+ struct thcell_t *cell, int is_decomp_am);
+
+extern size_t th_prev_cell(const thchar_t *s, size_t pos,
+ struct thcell_t *cell, int is_decomp_am);
+extern size_t th_make_cells(const thchar_t *s, size_t len,
+ struct thcell_t cells[], size_t *ncells,
+ int is_decomp_am);
+
+END_CDECL
+
+#endif /* THAI_THCELL_H */
+
diff --git a/libthai/x86/include/thai/thinp.h b/libthai/x86/include/thai/thinp.h
new file mode 100644
index 00000000..76074f3d
--- /dev/null
+++ b/libthai/x86/include/thai/thinp.h
@@ -0,0 +1,66 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thinp.h - Thai string input sequence filtering
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THINP_H
+#define THAI_THINP_H
+
+#include
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thinp.h
+ * @brief Thai string input sequence filtering
+ */
+
+/**
+ * @brief Strictness of input sequence checking, according to WTT 2.0
+ */
+typedef enum {
+ ISC_PASSTHROUGH = 0, /**< No check */
+ ISC_BASICCHECK = 1, /**< Basic check */
+ ISC_STRICT = 2 /**< Strict check */
+} thstrict_t;
+
+extern int th_isaccept(thchar_t c1, thchar_t c2, thstrict_t s);
+
+/**
+ * @brief Input sequence correction info
+ */
+struct thinpconv_t {
+ thchar_t conv[4]; /**< (null-terminated) string to put into input buffer */
+ int offset; /**< offset (<=0) from cur pos where the conv begin */
+};
+
+extern int th_validate(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv);
+
+extern int th_validate_leveled(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv, thstrict_t s);
+
+END_CDECL
+
+#endif /* THAI_THINP_H */
+
diff --git a/libthai/x86/lib/libthai.a b/libthai/x86/lib/libthai.a
new file mode 100644
index 00000000..f4359986
Binary files /dev/null and b/libthai/x86/lib/libthai.a differ
diff --git a/libthai/x86_64/include/thai/thailib.h b/libthai/x86_64/include/thai/thailib.h
new file mode 100644
index 00000000..d0bab839
--- /dev/null
+++ b/libthai/x86_64/include/thai/thailib.h
@@ -0,0 +1,71 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thailib.h - general declarations for libthai
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THAILIB_H
+#define THAI_THAILIB_H
+
+/**
+ * @file thailib.h
+ * @brief General declarations for libthai
+ */
+
+#include
+
+#ifdef __cplusplus
+# define BEGIN_CDECL extern "C" {
+# define END_CDECL }
+#else /* !__cplusplus */
+# define BEGIN_CDECL
+# define END_CDECL
+#endif /* __cplusplus */
+
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
+#define TH_DEPRECATED __attribute__((__deprecated__))
+#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
+#define TH_DEPRECATED __declspec(deprecated)
+#else
+#define TH_DEPRECATED
+#endif
+
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
+#define TH_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
+#elif defined(_MSC_FULL_VER) && (_MSC_FULL_VER > 140050320)
+#define TH_DEPRECATED_FOR(f) __declspec(deprecated("is deprecated. Use '" #f "' instead"))
+#else
+#define TH_DEPRECATED_FOR(f) TH_DEPRECATED
+#endif
+
+
+/**
+ * @brief Character value indicating error
+ */
+#define THCHAR_ERR ((thchar_t)~0)
+
+/**
+ * @brief Thai character type for storing TIS-620 character
+ */
+typedef unsigned char thchar_t;
+
+#endif /* THAI_THAILIB_H */
+
diff --git a/libthai/x86_64/include/thai/thcell.h b/libthai/x86_64/include/thai/thcell.h
new file mode 100644
index 00000000..25bb18f4
--- /dev/null
+++ b/libthai/x86_64/include/thai/thcell.h
@@ -0,0 +1,60 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thcell.h - Thai string cell custering
+ * Created: 2001-08-08 (split from thrend.h)
+ */
+
+#ifndef THAI_THCELL_H
+#define THAI_THCELL_H
+
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thcell.h
+ * @brief Thai string cell custering
+ */
+
+/**
+ * @brief Thai char cell representation
+ */
+struct thcell_t {
+ thchar_t base; /**< base character */
+ thchar_t hilo; /**< upper/lower vowel/diacritic */
+ thchar_t top; /**< top-level mark */
+};
+
+extern void th_init_cell(struct thcell_t *cell);
+
+extern size_t th_next_cell(const thchar_t *s, size_t len,
+ struct thcell_t *cell, int is_decomp_am);
+
+extern size_t th_prev_cell(const thchar_t *s, size_t pos,
+ struct thcell_t *cell, int is_decomp_am);
+extern size_t th_make_cells(const thchar_t *s, size_t len,
+ struct thcell_t cells[], size_t *ncells,
+ int is_decomp_am);
+
+END_CDECL
+
+#endif /* THAI_THCELL_H */
+
diff --git a/libthai/x86_64/include/thai/thinp.h b/libthai/x86_64/include/thai/thinp.h
new file mode 100644
index 00000000..76074f3d
--- /dev/null
+++ b/libthai/x86_64/include/thai/thinp.h
@@ -0,0 +1,66 @@
+/*
+ * libthai - Thai Language Support Library
+ * Copyright (C) 2001 Theppitak Karoonboonyanan
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/*
+ * thinp.h - Thai string input sequence filtering
+ * Created: 2001-05-17
+ */
+
+#ifndef THAI_THINP_H
+#define THAI_THINP_H
+
+#include
+#include
+
+BEGIN_CDECL
+
+/**
+ * @file thinp.h
+ * @brief Thai string input sequence filtering
+ */
+
+/**
+ * @brief Strictness of input sequence checking, according to WTT 2.0
+ */
+typedef enum {
+ ISC_PASSTHROUGH = 0, /**< No check */
+ ISC_BASICCHECK = 1, /**< Basic check */
+ ISC_STRICT = 2 /**< Strict check */
+} thstrict_t;
+
+extern int th_isaccept(thchar_t c1, thchar_t c2, thstrict_t s);
+
+/**
+ * @brief Input sequence correction info
+ */
+struct thinpconv_t {
+ thchar_t conv[4]; /**< (null-terminated) string to put into input buffer */
+ int offset; /**< offset (<=0) from cur pos where the conv begin */
+};
+
+extern int th_validate(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv);
+
+extern int th_validate_leveled(struct thcell_t context, thchar_t c,
+ struct thinpconv_t *conv, thstrict_t s);
+
+END_CDECL
+
+#endif /* THAI_THINP_H */
+
diff --git a/libthai/x86_64/lib/libthai.a b/libthai/x86_64/lib/libthai.a
new file mode 100644
index 00000000..5c995f2a
Binary files /dev/null and b/libthai/x86_64/lib/libthai.a differ
diff --git a/toolchain-versions.json b/toolchain-versions.json
index 24a6d6d7..821944b1 100644
--- a/toolchain-versions.json
+++ b/toolchain-versions.json
@@ -2,5 +2,5 @@
"cmake": "3.22.1",
"ndk": " 25.2.9519653",
"platform": 23,
- "prebuilder": "774dae3946a8c2df5a829cb59576fc004624515c"
+ "prebuilder": "4750ae9fdc09f4fc802ff5d33eb4abe82f52622a"
}
\ No newline at end of file