Exemple #1
0
            public virtual java.lang.CharSequence filter(java.lang.CharSequence source, int start
                                                         , int end, android.text.Spanned dest, int dstart, int dend)
            {
                int keep = mMax - (dest.Length - (dend - dstart));

                if (keep <= 0)
                {
                    return(java.lang.CharSequenceProxy.Wrap(string.Empty));
                }
                else
                {
                    if (keep >= end - start)
                    {
                        return(null);
                    }
                    else
                    {
                        keep += start;
                        if (System.Char.IsHighSurrogate(source[keep - 1]))
                        {
                            --keep;
                            if (keep == start)
                            {
                                return(java.lang.CharSequenceProxy.Wrap(string.Empty));
                            }
                        }
                        return(source.SubSequence(start, keep));
                    }
                }
            }
Exemple #2
0
 public virtual java.io.PrintStream append(java.lang.CharSequence charSequence, int
                                           start, int end)
 {
     if (charSequence == null)
     {
         charSequence = java.lang.CharSequenceProxy.Wrap("null");
     }
     print(charSequence.SubSequence(start, end).ToString());
     return(this);
 }
Exemple #3
0
 public virtual java.io.Writer append(java.lang.CharSequence csq, int start, int end
                                      )
 {
     if (csq == null)
     {
         csq = java.lang.CharSequenceProxy.Wrap("null");
     }
     write(csq.SubSequence(start, end).ToString());
     return(this);
 }
Exemple #4
0
        public override java.io.Writer append(java.lang.CharSequence csq, int start, int
                                              end)
        {
            if (csq == null)
            {
                csq = java.lang.CharSequenceProxy.Wrap("null");
            }
            string output = csq.SubSequence(start, end).ToString();

            write(output, 0, output.Length);
            return(this);
        }
 internal void insert0(int index, java.lang.CharSequence s, int start, int end)
 {
     if (s == null)
     {
         s = java.lang.CharSequenceProxy.Wrap("null");
     }
     if ((index | start | end) < 0 || index > count || start > end || end > s.Length)
     {
         throw new System.IndexOutOfRangeException();
     }
     insert0(index, s.SubSequence(start, end).ToString());
 }
Exemple #6
0
 public virtual java.nio.CharBuffer append(java.lang.CharSequence csq, int start,
                                           int end)
 {
     if (csq == null)
     {
         csq = java.lang.CharSequenceProxy.Wrap("null");
     }
     java.lang.CharSequence cs = csq.SubSequence(start, end);
     if (cs.Length > 0)
     {
         return(put(cs.ToString()));
     }
     return(this);
 }
 public override java.nio.CharBuffer slice()
 {
     return(new java.nio.CharSequenceAdapter(sequence.SubSequence(_position, _limit)));
 }
 /// <summary><p>Starts filtering the content of the drop down list.</summary>
 /// <remarks>
 /// <p>Starts filtering the content of the drop down list. The filtering
 /// pattern is the specified range of text from the edit box. Subclasses may
 /// override this method to filter with a different pattern, for
 /// instance a smaller substring of <code>text</code>.</p>
 /// </remarks>
 protected internal virtual void performFiltering(java.lang.CharSequence text, int
                                                  start, int end, int keyCode)
 {
     getFilter().filter(text.SubSequence(start, end), this);
 }