summaryrefslogtreecommitdiff
path: root/src/pal/src/include/pal/unicode_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/src/include/pal/unicode_data.h')
-rw-r--r--src/pal/src/include/pal/unicode_data.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/pal/src/include/pal/unicode_data.h b/src/pal/src/include/pal/unicode_data.h
new file mode 100644
index 0000000000..0b7fe07447
--- /dev/null
+++ b/src/pal/src/include/pal/unicode_data.h
@@ -0,0 +1,69 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+/*++
+
+
+
+Module Name:
+
+ include/pal/unicode_data.h
+
+Abstract:
+
+ Data, data retrieval function declarations.
+
+
+
+--*/
+
+#ifndef _UNICODE_DATA_H_
+#define _UNICODE_DATA_H_
+
+#include "pal/palinternal.h"
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+#if !HAVE_COREFOUNDATION
+
+typedef struct
+{
+ WCHAR nUnicodeValue;
+ WORD C1_TYPE_FLAGS;
+ WCHAR nOpposingCase; /* 0 if no opposing case. */
+ WORD rangeValue;
+} UnicodeDataRec;
+
+/* Global variables. */
+extern CONST UnicodeDataRec UnicodeData[];
+extern CONST UINT UNICODE_DATA_SIZE;
+extern CONST UINT UNICODE_DATA_DIRECT_ACCESS;
+
+/*++
+Function:
+ GetUnicodeData
+ This function is used to get information about a Unicode character.
+
+Parameters:
+nUnicodeValue
+ The numeric value of the Unicode character to get information about.
+pDataRec
+ The UnicodeDataRec to fill in with the data for the Unicode character.
+
+Return value:
+ TRUE if the Unicode character was found.
+
+--*/
+BOOL GetUnicodeData(INT nUnicodeValue, UnicodeDataRec *pDataRec);
+
+#endif /* !HAVE_COREFOUNDATION */
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+#endif /* _UNICODE_DATA_H_ */