From ab790f89d78fd40acc79d52d1f10bba96a61fc1a Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 14 Jul 2009 11:44:21 +0000 Subject: [PATCH] *** empty log message *** --- MCharTable.cs | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) 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 () {} } } } -- 1.7.10.4