Esempio n. 1
0
        static UnicodeData()
        {
            unsafe
            {
                var unicodeData = UnicodeDataTrie.Data;

                fixed(byte *unicodeDataPtr = unicodeData)
                {
                    s_unicodeDataTrie = new UnicodeTrie(new UnmanagedMemoryStream(unicodeDataPtr, unicodeData.Length));
                }

                var graphemeData = GraphemeBreakTrie.Data;

                fixed(byte *graphemeDataPtr = graphemeData)
                {
                    s_graphemeBreakTrie = new UnicodeTrie(new UnmanagedMemoryStream(graphemeDataPtr, graphemeData.Length));
                }

                var bidiData = BiDiTrie.Data;

                fixed(byte *bidiDataPtr = bidiData)
                {
                    s_biDiTrie = new UnicodeTrie(new UnmanagedMemoryStream(bidiDataPtr, bidiData.Length));
                }
            }
        }
Esempio n. 2
0
 static UnicodeData()
 {
     s_unicodeDataTrie   = new UnicodeTrie(UnicodeDataTrie.Data);
     s_graphemeBreakTrie = new UnicodeTrie(GraphemeBreakTrie.Data);
     s_biDiTrie          = new UnicodeTrie(BidiTrie.Data);
 }
Esempio n. 3
0
 static UnicodeData()
 {
     s_unicodeDataTrie   = new UnicodeTrie(typeof(UnicodeData).Assembly.GetManifestResourceStream("Avalonia.Assets.UnicodeData.trie") !);
     s_graphemeBreakTrie = new UnicodeTrie(typeof(UnicodeData).Assembly.GetManifestResourceStream("Avalonia.Assets.GraphemeBreak.trie") !);
     s_biDiTrie          = new UnicodeTrie(typeof(UnicodeData).Assembly.GetManifestResourceStream("Avalonia.Assets.BiDi.trie") !);
 }