summaryrefslogtreecommitdiff
path: root/src/pal/src/include/pal/unicode_data.h
blob: 0b7fe074472426b99686fbf1ff04ae5469ede9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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_ */