*** empty log message ***
[m17n/m17n-lib-cs.git] / MText.cs
1 using System;
2 using M17N.Core;
3
4 namespace M17N.Core
5 {
6   public enum MTextFormat
7   {
8     MTEXT_FORMAT_US_ASCII,
9     MTEXT_FORMAT_UTF_8,
10     MTEXT_FORMAT_UTF_16BE,
11     MTEXT_FORMAT_UTF_16LE,
12     MTEXT_FORMAT_UTF_32BE,
13     MTEXT_FORMAT_UTF_32LE,
14   }
15
16   public class MText
17   {
18     private class MTextPlist : MPlist
19     {
20       public class MInterval
21       {
22         MPlist stack;
23         int nprops;
24         public int start, end;
25         public MInterval prev, next;
26       }
27
28       MInterval head, tail;
29
30       public MTextPlist (MText mt)
31       {
32         head = tail = new MInterval ();
33         head.start = 0;
34         head.end = mt.nchars;
35       }
36     }
37
38     private string str;
39     private int nchars;
40     private int nunits;
41     private int cache_pos;
42     private int cache_idx;
43     private MTextPlist plist;
44
45     public MText (byte str, MTextFormat format)
46     {
47       
48     }
49   }
50
51   public class MTextProperty
52   {
53   }
54 }