Package gnu.java.lang

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


  buf.replace(pos, pos + 1, replaceWith);
  pos = pos + replaceWith.length() - 1;
  continue;
      }

      if (buf.charAt(pos) == '%')
      {
        switch (buf.charAt(pos + 1))
  {
  case 't':
    replaceWith = System.getProperty("java.io.tmpdir");
View Full Code Here

  continue;
      }

      if (buf.charAt(pos) == '%')
      {
        switch (buf.charAt(pos + 1))
  {
  case 't':
    replaceWith = System.getProperty("java.io.tmpdir");
    break;
View Full Code Here

                  precision, radix,
                  conversion);
    int insertPoint = 0;

    // Insert the sign.
    if (builder.charAt(0) == '-')
      {
  // Already inserted.  Note that we don't insert a sign, since
  // the only case where it is needed it BigInteger, and it has
  // already been inserted by toString.
  ++insertPoint;
View Full Code Here

  {
    CPStringBuilder builder = basicIntegralConversion(arg, flags, width,
                  precision, 10,
                  conversion);
    boolean isNegative = false;
    if (builder.charAt(0) == '-')
      {
  // Sign handling is done during localization.
  builder.deleteCharAt(0);
  isNegative = true;
      }
View Full Code Here

  {
    // Compute the name of the package as it may appear in the
    // Manifest.
    CPStringBuilder xform = new CPStringBuilder(name);
    for (int i = xform.length () - 1; i >= 0; --i)
      if (xform.charAt(i) == '.')
  xform.setCharAt(i, '/');
    xform.append('/');
    String xformName = xform.toString();

    Attributes entryAttr = manifest.getAttributes(xformName);
View Full Code Here

      dupIndex++;
      if (dupIndex == plen)
              {
                if ((separatorChar == '\\'
                    && newpath.length() == 2
                    && newpath.charAt(1) == ':')
                    || (separatorChar != '\\' && newpath.length() == 0))
                  {
                    newpath.append(separatorChar);
                  }
          return newpath.toString();
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.