diff --git a/doc/sprintf/sprintf b/doc/sprintf/sprintf index 1b00c9c0e7bdcd929ae8d0b2239fa1d594d1ec71..bc527401409781cc54d007187d0dfb7a54f8a628 100644 --- a/doc/sprintf/sprintf +++ b/doc/sprintf/sprintf @@ -3,7 +3,7 @@ NAME SYNTAX string sprintf(string format,mixed arg,....); - + DESCRIPTION The format string is a string containing a description of how to output the data in the rest of the arguments. This string should @@ -13,15 +13,15 @@ DESCRIPTION Modifyers: 0 Zero pad numbers (implies right justification) ! Toggle truncation - pad positive integers with a space + ' ' (space) pad positive integers with a space + pad positive integers with a plus sign - left adjusted within field size (default is right) | centered within field size = column mode if strings are greater than field size / Rough linebreak (break at exactly fieldsize instead of - between words) + between words) # table mode, print a list of '\n' separated word - (top-to-bottom order) + (top-to-bottom order) $ Inverse table mode (left-to-right order) n (where n is a number or *) a number specifies field size .n set precision @@ -36,21 +36,21 @@ DESCRIPTION _ Set width to the length of data Operators: - %% percent - %d signed decimal int - %u unsigned decimal int (doesn't really exist in lpc) - %o unsigned octal int - %x lowercase unsigned hexadecimal int - %X uppercase unsigned hexadecimal int - %c char - %f float - %g heruistically chosen representation of float - %e exponential notation float - %s string - %O any type (debug style) - %n nop - %t type of argument - %<modifyers>{format%} do a format for every index in an array. + %% percent + %d signed decimal int + %u unsigned decimal int (doesn't really exist in lpc) + %o unsigned octal int + %x lowercase unsigned hexadecimal int + %X uppercase unsigned hexadecimal int + %c char + %f float + %g heruistically chosen representation of float + %e exponential notation float + %s string + %O any type (debug style) + %n nop + %t type of argument + %<modifyers>{format%} do a format for every index in an array. EXAMPLES uLPC v1.0E-95 Running Hilfe v1.2 (Hubbe's Incremental LPC FrontEnd)