Examples of charAt()


Examples of com.sun.org.apache.xml.internal.utils.FastStringBuffer.charAt()

    int d = 0;
    boolean pres = false;

    for (int s = m_start; s < end; s++)
    {
      char c = fsb.charAt(s);

      if (isSpace(c))
      {
        if (!pres)
        {
View Full Code Here

Examples of com.sun.org.apache.xml.internal.utils.XMLString.charAt()

     */
  XMLString s = trim();
  double result = Double.NaN;
  for (int i = 0; i < s.length(); i++)
  {
    char c = s.charAt(i);
    if (c != '-' && c != '.' && ( c < 0X30 || c > 0x39)) {
            // The character is not a '-' or a '.' or a digit
            // then return NaN because something is wrong.
      return result;
        }
View Full Code Here

Examples of com.uic.ase.proj.xbn.config.InsideWhitespace.charAt()

        //value.  It is a line *between* variables or
        //comments.

        if(iwLine.length() > 0)  {
          String sMLCEnd = sES;
          if(iwLine.charAt(iwLine.length() - 1) == crlao.crc.getCRCDelimiters().getMLCEnd())  {
            //Special condition, for a clearer error message
            sMLCEnd = ".  Also note:  The last character in this line is a multi-line comment end delimiter ('" + crlao.crc.getCRCDelimiters().getMLCEnd() + "').  If this is meant to be the end of a multi-line comment, it was never started";
          }

          throwCFX(iwLine, "Stray text found.  This line is not part of any variable or comment, but contains non-whitespace characters.  Note that cr_config.getCRCVariable().is1stLineWSEmptyString() equals " + crlao.crc.getCRCVariable().is1stLineWSEmptyString() + sMLCEnd);
View Full Code Here

Examples of com.uic.ase.proj.xbn.string.SOBStringBuffer.charAt()

    else  {
      //This line contains an unescaped variable delimiter
      //and is therefore the first in a variable's value.

      sVarName = ssbLine.substring(0, iDelimActual);
      cDelimiter = ssbLine.charAt(iDelimActual);

      iVarStartLine = iLineNumber;
      sobVarStartName = new SOBString(sVarName);
      cVarStartDelim = cDelimiter;
View Full Code Here

Examples of com.uic.ase.proj.xbn.string.StringOrBuffer.charAt()

    //Note this is initialized to false.  The first character
    //in the string is definitely not escaped.
    boolean bPrecededByEscChar = false;
    for(int i = 0; i < sob.length(); i++)  {
      char c = sob.charAt(i);
      if(c != getUSConfig().getEscapeChar())  {
        //The current character is not the escape character.
        if(getUSConfig().isToBeEscaped(c))  {
          //This character is not the escape character, but
          //is one that must be escaped...
View Full Code Here

Examples of com.volantis.mcs.dissection.string.DissectableString.charAt()

        // Check the chars
        int[] expectedChars = new int[chars.length];
        int[] actualChars = new int[chars.length];
        for (int i=0; i < string.length(); i++) {
            expectedChars[i] = chars[i];
            actualChars[i] = dstring.charAt(i);
        }
        assertEquals(expectedChars, actualChars);
        return dstring;
    }
View Full Code Here

Examples of gnu.java.lang.CPStringBuilder.charAt()

    do
    {
      // Uncomment the next line for finding bugs.
      // System.out.println(buf.substring(0,pos) + '|' + buf.substring(pos));
     
      if (buf.charAt(pos) == '/')
      {
  /* The same value is also provided by java.io.File.separator. */
  replaceWith = System.getProperty("file.separator");
  buf.replace(pos, pos + 1, replaceWith);
  pos = pos + replaceWith.length() - 1;
View Full Code Here

Examples of io.netty.handler.codec.AsciiString.charAt()

                    translatedName = name;
                }

                // http://tools.ietf.org/html/draft-ietf-httpbis-http2-14#section-8.1.2.3
                // All headers that start with ':' are only valid in HTTP/2 context
                if (translatedName.isEmpty() || translatedName.charAt(0) == ':') {
                    throw Http2Exception
                                    .protocolError("Unknown HTTP/2 header '%s' encountered in translation to HTTP/1.x",
                                                    translatedName);
                } else {
                    output.add(translatedName, value);
View Full Code Here

Examples of io.netty.util.internal.AppendableCharSequence.charAt()

        String name = null;
        String value = null;
        if (line.length() > 0) {
            headers.clear();
            do {
                char firstChar = line.charAt(0);
                if (name != null && (firstChar == ' ' || firstChar == '\t')) {
                    value = value + ' ' + line.toString().trim();
                } else {
                    if (name != null) {
                        headers.add(name, value);
View Full Code Here

Examples of it.unimi.dsi.lang.MutableString.charAt()

    final MutableString line = new MutableString();
    final FastBufferedReader reader = new FastBufferedReader( new InputStreamReader( System.in ) );
   
    int l, start;
    while( reader.readLine( line ) != null ) {
      if ( line.charAt( 0 ) == '#' ) continue;
      matcher.reset( line );
      l = 0;
      start = 0;
      while( matcher.find() && l <= h ) {
        printStream[ l ].println( line.subSequence( start, matcher.start() ) );
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.