summaryrefslogtreecommitdiffstats
path: root/intl/icu/source/tools/makeconv/ucnvstat.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /intl/icu/source/tools/makeconv/ucnvstat.c
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'intl/icu/source/tools/makeconv/ucnvstat.c')
-rw-r--r--intl/icu/source/tools/makeconv/ucnvstat.c72
1 files changed, 72 insertions, 0 deletions
diff --git a/intl/icu/source/tools/makeconv/ucnvstat.c b/intl/icu/source/tools/makeconv/ucnvstat.c
new file mode 100644
index 0000000000..2140bc263f
--- /dev/null
+++ b/intl/icu/source/tools/makeconv/ucnvstat.c
@@ -0,0 +1,72 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
+/*
+ ******************************************************************************
+ *
+ * Copyright (C) 1998-2006, International Business Machines
+ * Corporation and others. All Rights Reserved.
+ *
+ ******************************************************************************
+ *
+ *
+ * ucnvstat.c:
+ * UConverterStaticData prototypes for data based converters
+ */
+
+#include <stdbool.h>
+
+#include "unicode/utypes.h"
+#include "unicode/ucnv.h"
+#include "toolutil.h"
+#include "ucnv_bld.h"
+
+
+static const UConverterStaticData _SBCSStaticData={
+ sizeof(UConverterStaticData),
+ "SBCS",
+ 0, UCNV_IBM, UCNV_SBCS, 1, 1,
+ { 0x1a, 0, 0, 0 }, 1, false, false,
+ 0,
+ 0,
+ { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
+};
+
+
+static const UConverterStaticData _DBCSStaticData={
+ sizeof(UConverterStaticData),
+ "DBCS",
+ 0, UCNV_IBM, UCNV_DBCS, 2, 2,
+ { 0, 0, 0, 0 },0, false, false, /* subchar */
+ 0,
+ 0,
+ { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
+};
+
+static const UConverterStaticData _MBCSStaticData={
+ sizeof(UConverterStaticData),
+ "MBCS",
+ 0, UCNV_IBM, UCNV_MBCS, 1, 1,
+ { 0x1a, 0, 0, 0 }, 1, false, false,
+ 0,
+ 0,
+ { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
+};
+
+static const UConverterStaticData _EBCDICStatefulStaticData={
+ sizeof(UConverterStaticData),
+ "EBCDICStateful",
+ 0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1,
+ { 0, 0, 0, 0 },0, false, false,
+ 0,
+ 0,
+ { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
+};
+
+/* NULLs for algorithmic types, their tables live in ucnv_bld.c */
+const UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={
+ &_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/,
+ NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData,
+ NULL/*ISO2022*/,
+ /* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
+};
+