http://www.softwarequarter.com

Home SQCBW C/C++/C# Download Updates Buy Imprint



SQCBW 3.12t

Source Code Beautifier/Formatter/Indenter
for Java/J#


		SQCBW source code beautifier formatter indenter C Java 
		tool tools utility utilities software programmer programming developer developing optimize readability beautify format indent indentation align alignment


SQCBW indents the lines of your source code according to the structure of your program without affecting line endings.

If you are a software developer / programmer using the Java/J# programming language, you should use the important programming tool SQCBW whenever you have modified the structure of your program, i.e. whenever you have inserted/deleted blocks/conditional statements/complex expressions. This utility can be easily launched from your workbench.

SQCBW runs under Microsoft Windows 98/ME/NT4/2000/XP. You can install SQCBW on your PC without having "Administrator" or "Power User" access rights.

You may use SQCBW during a 30-days evaluation period without restrictions before you buy a license (please read the license conditions).


If SQCBW should not perform like you expect it to do please read the information about the latest updates and feel free to send a message to info@softwarequarter.com.


Features:

SQCBW


Example:

/* file preview.java
 * demonstrates the features of SQCBW */

class ArgParser
{
   private System.String switchChars [];       // For example: "/", "-"
   private System.String switchSymbols [];     // Switch character(s)

   // Members identifying command-line argument settings
   private boolean paramHelp = false;
   private boolean paramA = false;
   private boolean paramB = false;
   private ArrayList pathnames = new ArrayList ();

   // Set valid command-line switches
   public ArgParser ()
   {
      this.switchChars = new System.String [] { "/", "-" };
      this.switchSymbols = new System.String []
      {
         "?",
         "a",
         "b"
      };
   }

   // This Parse method parses an arbitrary set of arguments
   public boolean Parse (System.String [] args)
   {
      int ArgNum;
      boolean rc;
   loopArgs:
      for (ArgNum = 0;
           ArgNum < args.length;
           ArgNum ++ )
      {
         // Determine if this argument starts
         //  with a valid switch character
         for (int n = 0;
              n < switchChars.length;
              n ++ )
         {
         checkArgs:
            #region checkArgs
            while (0 == System.String.CompareOrdinal (args [ArgNum],
                                                      0,
                                                      switchChars [n],
                                                      0,
                                                      1))
            {
               // Does the switch begin with a legal switch symbol?
               for (int n = 0;
                    n < switchSymbols.length;
                    n ++)
               {
                  if (System.String.CompareOrdinal (args [ArgNum], 1,
                                                    switchSymbols [n], 0,
                                                    switchSymbols [n].get_Length ())
                      == 0)
                  {
                     // This is a legal switch
                     switch (n)
                     {
                     case 0:
                        paramHelp = true;
                        break;
                     case 1:
                        paramA = true;
                        break;
                     case 2:
                        paramB = true;
                        break;
                     }
                     continue loopArgs;
                  }
               }
               // switch not found
            }
            #endregion
         }
         // no switch
         pathnames.Add (args [ArgNum]);
      }
      return rc;
   } // Parse
}    // class ArgParser

// This class represents the application itself
class MyApp
{
   public static void main (System.String [] args)
   {
      int exit_code;
      int par_1;
      System.String par_2;
      // Parse the command-line arguments
      ArgParser ap = new ArgParser ();
      if ((ap.Parse (args) == false))
      {
         // An error occurrend while parsing
         return;
      }

      /* structured statements */
      if (   System.String.Compare (par_2,
                                    "value 1")
          == 0)
         exit_code = 1;
      else
      if (   System.String.Compare (par_2, "value 2")
          == 0)
         exit_code = 2;
      else
      if (   System.String.Compare (par_2,
                                    "value 3") == 0)
         exit_code = 3;
      else
         exit_code = -1;

      for (exit_code = 1;
           exit_code < par_1;
           exit_code ++)
         par_2 += (  strlen (par_2)
                   + 1);

      switch (par_1)
      {
      case 1:
         exit_code = 1;
      label_2 :
         break;
      case 2:
         exit_code = 2;
      case 3:
         exit_code = 3;
         goto label_2;
      }

      while (par_1 > 0)
         par_1 --;

      do
         par_1 --;
      while (par_1 > 0);

      if (   (par_1 > 0)          // comment
          || (exit_code > 0))     // comment
      {
      label_1 :
         while (par_1)
         {
            do
            {
               for (exit_code = 6;
                    exit_code > 0;
                    exit_code --)
               {
                  switch (exit_code)
                  {
                  case 1:
                     exit_code = 2;
                  label_2 :
                     break;
                  case 2:
                     exit_code = 3;
                     goto label_2;
                  }
               }
            }
            while (exit_code <= 5);
         }
      }
      else
      label_3 :
         while (par_1)
            do
               for (exit_code = 6;
                    exit_code > 0;
                    exit_code --)
                  switch (exit_code)
                  {
                  case 1:
                     exit_code = 2;
                  label_4 :
                     break;
                  case 2:
                     exit_code = 2;
                     goto label_4;
                  }
            while (exit_code <= 5);
#if DEBUG
      if (   (par_1 >= 2)
          && (par_1 <= 4))
      {
#else
#if TRACE
      if (   (par_1 >= 5)
          && (par_1 <= 8))
      {
#endif
#endif
         exit_code = 2;
#if DEBUG || TRACE
      }
#endif
      return exit_code;
   }
}


SoftwareQuarter GmbH
Boehmerwaldstrasse 13
D-85386 ECHING
Germany

Fax: +49 89 37998286

E-mail: info@softwarequarter.com

Internet: http://www.softwarequarter.com


CopyrightŠ SoftwareQuarter GmbH. Revision: October 31, 2007. All rights reserved. (Imprint)



3D Animated Flags--By 3DFlags.com