http://www.softwarequarter.com

Home SQCBW Java/J# Download Updates Buy Imprint



SQCBW 3.12t

Source Code Beautifier/Formatter/Indenter
for C/C++/C#


		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 C / C++ / C# 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 (especially "Microsoft Visual C# .NET" or  "Microsoft Visual C++").

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.c
 * demonstrates the features of SQCBW */

/* data structure with trailing comments */
typedef struct
{
   int a;               // field a
   char b[20];          // field b
   struct
   {
      long d;
      float e;
   } str_c;
} TYPE_1;

TYPE_1 type_1 =
{
   0,           /* field a */
   "text \
string",        /* field b */
   {
      1,
      2.0
   }
};

/* #define spread over multiple lines */
#define SUB_1                           \
        int sub_1 (int par_1,           \
                   int par_2)           \
        {                               \
           char * long_string = "text string \
is continued";                          \
           if (  par_2                  \
               > 0)                     \
              return (par_1);           \
           else                         \
              return (  par_2           \
                      * (-1));          \
        }

int proc_1 (int par_1,    // parameter 1
            char * par_2) // parameter 2
{
   int exit_code;

   /* statements spread over multiple lines */
   char * long_string = "text string \
is continued";

   par_1
       = (  par_1 & (~(  DEFINITION_1
                       | DEFINITION_2))
          | DEFINITION_3);

   /* structured statements */
   if (strcmp (par_2, "value 1") == 0)
      exit_code = 1;
   else
   if (strcmp (par_2, "value 2") == 0)
      exit_code = 2;
   else
   if (strcmp (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;
      goto case 3;      // C#
   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
       || (par_2))      // 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 ... #endif */
#ifdef A
   sub_1 (a, b, c);
   if (sub_2 (a, b))
   {
      i = 1;
#elif (  defined (B)            \
       || defined (C))
   sub_1 (a, b, c);
   if (sub_2 (a, b))
   {
      i = 2;
#else
   sub_1 (a, b, c);
   if (sub_2 (a, b))
   {
      i = 3;
      if (b == 2)
      {
         c = 1;
#endif
         i = 4;

#if (   defined (A)             \
     || (   defined (B)         \
         || defined (C)))
      }
#else
      }
   }
#endif

   /* inline assembler */
   __asm
   {
      mov ah,3dh                // comment
      mov       al,2            // comment
   }
   if (1)
      __asm
      mov       cx,1
   else
      __asm
      mov       cx,2

   return (0);
}

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