コード例 #1
0
 /// <summary>
 /// Obtains a <c>CollationElementIterator</c> for the given
 /// <c>CharacterIterator</c>. The source iterator's integrity will be
 /// preserved since a new copy will be created for use.
 /// </summary>
 ///
 /// <param name="source">the specified source</param>
 /// <returns>a <c>CollationElementIterator</c> for the source.</returns>
 public CollationElementIterator GetCollationElementIterator(
     CharacterIterator source)
 {
     if (source == null)
     {
         throw new NullReferenceException();
     }
     return(new CollationElementIterator(
                ((IBM.ICU.Text.RuleBasedCollator) this.icuColl)
                .GetCollationElementIterator(source)));
 }
コード例 #2
0
 /// <summary>
 /// Sets a new source string iterator for iteration, and reset the offset to
 /// the beginning of the text.
 /// </summary>
 ///
 /// <param name="source">the new source string iterator for iteration.</param>
 public void SetText(CharacterIterator source)
 {
     this.icuIterator.SetText(source);
 }