상속: java.text.Collator
예제 #1
0
 /// <summary>
 /// CollationElementIterator constructor.  This takes the source string and
 /// the collation object.  The cursor will walk thru the source string based
 /// on the predefined collation rules.  If the source string is empty,
 /// NULLORDER will be returned on the calls to next(). </summary>
 /// <param name="sourceText"> the source string. </param>
 /// <param name="owner"> the collation object. </param>
 internal CollationElementIterator(CharacterIterator sourceText, RuleBasedCollator owner)
 {
     this.Owner = owner;
     Ordering   = owner.Tables;
     NormalizerBase.Mode mode = CollatorUtilities.toNormalizerMode(owner.Decomposition);
     Text_Renamed = new NormalizerBase(sourceText, mode);
 }
예제 #2
0
 /// <summary>
 /// CollationElementIterator constructor.  This takes the source string and
 /// the collation object.  The cursor will walk thru the source string based
 /// on the predefined collation rules.  If the source string is empty,
 /// NULLORDER will be returned on the calls to next(). </summary>
 /// <param name="sourceText"> the source string. </param>
 /// <param name="owner"> the collation object. </param>
 internal CollationElementIterator(String sourceText, RuleBasedCollator owner)
 {
     this.Owner = owner;
     Ordering   = owner.Tables;
     if (sourceText.Length() != 0)
     {
         NormalizerBase.Mode mode = CollatorUtilities.toNormalizerMode(owner.Decomposition);
         Text_Renamed = new NormalizerBase(sourceText, mode);
     }
 }