Examples of charAt()


Examples of org.apache.hadoop.io.Text.charAt()

    assertThat(t.find("\u0041"), is(0));
    assertThat(t.find("\u00DF"), is(1));
    assertThat(t.find("\u6771"), is(3));
    assertThat(t.find("\uD801\uDC00"), is(6));

    assertThat(t.charAt(0), is(0x0041));
    assertThat(t.charAt(1), is(0x00DF));
    assertThat(t.charAt(3), is(0x6771));
    assertThat(t.charAt(6), is(0x10400));
 
}
View Full Code Here

Examples of org.apache.http.io.CharArrayBuffer.charAt()

      char[] b2 = buffer.toCharArray();
      assertNotNull(b2);
      assertEquals(4, b2.length);
      for (int i = 0; i < tmp.length; i++) {
          assertEquals(tmp[i], b2[i]);
          assertEquals(tmp[i], buffer.charAt(i));
      }
      assertEquals("1234", buffer.toString());
     
      buffer.clear();
      assertEquals(16, buffer.capacity());
View Full Code Here

Examples of org.apache.http.util.CharArrayBuffer.charAt()

            }
            buffer = new CharArrayBuffer(s.length());
            buffer.append(s);
            pos = 0;
        }
        while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) {
            pos++;
        }
        int beginIndex = pos;
        while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) {
            pos++;
View Full Code Here

Examples of org.apache.http.util.CharArrayBuffer.charAt()

        }
        while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) {
            pos++;
        }
        int beginIndex = pos;
        while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) {
            pos++;
        }
        int endIndex = pos;
        String s = buffer.substring(beginIndex, endIndex);
        if (!s.equalsIgnoreCase(getSchemeName())) {
View Full Code Here

Examples of org.apache.http.util.CharArrayBuffer.charAt()

                }
                buffer = new CharArrayBuffer(s.length());
                buffer.append(s);
                pos = 0;
            }
            while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) {
                pos++;
            }
            int beginIndex = pos;
            while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) {
                pos++;
View Full Code Here

Examples of org.apache.http.util.CharArrayBuffer.charAt()

            }
            while (pos < buffer.length() && HTTP.isWhitespace(buffer.charAt(pos))) {
                pos++;
            }
            int beginIndex = pos;
            while (pos < buffer.length() && !HTTP.isWhitespace(buffer.charAt(pos))) {
                pos++;
            }
            int endIndex = pos;
            String s = buffer.substring(beginIndex, endIndex);
            map.put(s.toLowerCase(Locale.ENGLISH), header);
View Full Code Here

Examples of org.apache.james.mime4j.io.BufferedLineReaderInputStream.charAt()

       
        assertEquals('b', inbuffer.read());
        assertEquals('l', inbuffer.read());
       
        try {
            inbuffer.charAt(1);
            fail("IndexOutOfBoundsException should have been thrown");
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
            inbuffer.charAt(20);
View Full Code Here

Examples of org.apache.james.mime4j.util.CharArrayBuffer.charAt()

        char[] b2 = buffer.toCharArray();
        assertNotNull(b2);
        assertEquals(4, b2.length);
        for (int i = 0; i < tmp.length; i++) {
            assertEquals(tmp[i], b2[i]);
            assertEquals(tmp[i], buffer.charAt(i));
        }
        assertEquals("1234", buffer.toString());
       
        buffer.clear();
        assertEquals(16, buffer.capacity());
View Full Code Here

Examples of org.apache.wicket.util.string.AppendingStringBuffer.charAt()

      pattern = ((SimpleDateFormat)df).toPattern();
    }
    b.append(settings.toScript(getDatePickerLocale(), pattern));

    int last = b.length() - 1;
    if (',' == b.charAt(last))
    {
      b.deleteCharAt(last);
    }
    b.append("\n});");
    return b;
View Full Code Here

Examples of org.apache.xml.utils.FastStringBuffer.charAt()

    int d = dstBegin;
    FastStringBuffer fsb = fsb();

    for (int i = srcBegin + m_start; i < end; i++)
    {
      dst[d++] = fsb.charAt(i);
    }
  }

  /**
   * Compares this string to the specified object.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.