From: handa Date: Tue, 14 Jul 2009 11:44:21 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab790f89d78fd40acc79d52d1f10bba96a61fc1a;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/MCharTable.cs b/MCharTable.cs index 35685d7..39e0714 100644 --- a/MCharTable.cs +++ b/MCharTable.cs @@ -174,7 +174,11 @@ namespace M17N.Core public object this[int from, int to] { - set { set_range (from, to, value); } + set { + MCharRange.CheckChar (from); + MCharRange.CheckChar (to); + set_range (from, to, value); + } } private void set_range (int from, int to, object value) @@ -263,12 +267,9 @@ namespace M17N.Core MCharTable table; private MCharRange range; - public MCharTableEnum (MCharTable table) - { - this.table = table; - } - - public void Dispose () {} + public MCharTableEnum (MCharTable table) { + this.table = table; + } public bool MoveNext () { @@ -280,20 +281,13 @@ namespace M17N.Core return range.Next (); } - public void Reset () - { - range = null; - } + public void Reset () { range = null; } - public MCharRange Current - { - get { return range; } - } + public MCharRange Current { get { return range; } } - object IEnumerator.Current - { - get { return Current; } - } + object IEnumerator.Current { get { return Current; } } + + public void Dispose () {} } } }