Пример #1
0
 internal override IAppendable Normalize(ICharSequence src, IAppendable dest)
 {
     if (dest == src)
     {
         throw new ArgumentException("'src' cannot be the same instance as 'dest'");
     }
     if (src is StringBuilderCharSequence && dest is StringBuilderAppendable &&
         ((StringBuilderCharSequence)src).StringBuilder == ((StringBuilderAppendable)dest).StringBuilder)
     {
         throw new ArgumentException("'src' cannot be the same StringBuilder instance as 'dest'");
     }
     Normalizer2Impl.ReorderingBuffer buffer = new Normalizer2Impl.ReorderingBuffer(impl, dest, src.Length);
     Normalize(src, buffer);
     buffer.Flush();
     return(dest);
 }