2017-09-07 23:10:17 +02:00
|
|
|
namespace System.Unicode
|
2014-11-03 03:44:41 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>Represents the fields available for an UCD entry.</summary>
|
|
|
|
|
/// <remarks>Not all the enumeration member directly map to a field.</remarks>
|
|
|
|
|
[Flags]
|
|
|
|
|
internal enum UcdFields : ushort
|
|
|
|
|
{
|
|
|
|
|
// Not really a field, just here to indicate that the entry is a range
|
2014-11-16 21:27:57 +01:00
|
|
|
CodePointRange = 1,
|
|
|
|
|
|
2014-11-21 15:41:27 +01:00
|
|
|
Name = 2, // Will stand in for official name as well as related names.
|
2014-11-03 03:44:41 +01:00
|
|
|
Category = 4,
|
|
|
|
|
CanonicalCombiningClass = 8,
|
|
|
|
|
BidirectionalClass = 16,
|
2014-11-07 01:05:40 +01:00
|
|
|
DecompositionMapping = 32,
|
2014-11-03 03:44:41 +01:00
|
|
|
|
|
|
|
|
// NumericType / NumericValue : Not exactly a bit mask here… More like [0…3] << 6
|
|
|
|
|
NumericDecimal = 64,
|
|
|
|
|
NumericDigit = 128,
|
2014-11-16 21:27:57 +01:00
|
|
|
NumericNumeric = 192,
|
2014-11-03 03:44:41 +01:00
|
|
|
|
|
|
|
|
// This is a yes/no field, so obviously, no extra storage is required for this one…
|
|
|
|
|
BidirectionalMirrored = 256,
|
|
|
|
|
|
|
|
|
|
OldName = 512,
|
|
|
|
|
SimpleUpperCaseMapping = 1024,
|
|
|
|
|
SimpleLowerCaseMapping = 2048,
|
|
|
|
|
SimpleTitleCaseMapping = 4096,
|
2014-11-08 22:00:12 +01:00
|
|
|
|
2014-11-03 03:44:41 +01:00
|
|
|
ContributoryProperties = 8192,
|
2017-06-25 02:36:38 +02:00
|
|
|
CorePropertiesAndEmojiProperties = 16384,
|
2014-11-21 15:41:27 +01:00
|
|
|
|
2014-11-24 00:24:55 +01:00
|
|
|
CrossRerefences = 32768,
|
2014-11-03 03:44:41 +01:00
|
|
|
}
|
|
|
|
|
}
|