35 lines
903 B
C#
35 lines
903 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace System.Unicode
|
|
{
|
|
public struct UnicodeRadicalStrokeCount
|
|
{
|
|
internal static readonly UnicodeRadicalStrokeCount[] EmptyArray = new UnicodeRadicalStrokeCount[0];
|
|
|
|
private readonly byte radical;
|
|
private readonly byte strokeCount;
|
|
|
|
internal UnicodeRadicalStrokeCount(byte rawRadical, byte rawStrokeCount)
|
|
{
|
|
radical = rawRadical;
|
|
strokeCount = rawStrokeCount;
|
|
}
|
|
|
|
internal UnicodeRadicalStrokeCount(byte radical, byte strokeCount, bool isSimplified)
|
|
{
|
|
this.radical = radical;
|
|
this.strokeCount = strokeCount;
|
|
|
|
if (isSimplified) this.strokeCount |= 0x80;
|
|
}
|
|
|
|
public byte Radical { get { return radical; } }
|
|
public byte StrokeCount { get { return strokeCount; } }
|
|
public bool IsSimplified { get { return (strokeCount & 0x80) != 0; } }
|
|
}
|
|
}
|