Mercurial > hg > octave-nkf
comparison src/pr-output.cc @ 10840:89f4d7e294cc
Grammarcheck .cc files
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 31 Jul 2010 11:18:11 -0700 |
parents | 82d9efde7e96 |
children | a4f482e66b65 |
comparison
equal
deleted
inserted
replaced
10839:65bc065bec95 | 10840:89f4d7e294cc |
---|---|
3433 } | 3433 } |
3434 | 3434 |
3435 DEFUN (disp, args, nargout, | 3435 DEFUN (disp, args, nargout, |
3436 "-*- texinfo -*-\n\ | 3436 "-*- texinfo -*-\n\ |
3437 @deftypefn {Built-in Function} {} disp (@var{x})\n\ | 3437 @deftypefn {Built-in Function} {} disp (@var{x})\n\ |
3438 Display the value of @var{x}. For example,\n\ | 3438 Display the value of @var{x}. For example:\n\ |
3439 \n\ | 3439 \n\ |
3440 @example\n\ | 3440 @example\n\ |
3441 @group\n\ | 3441 @group\n\ |
3442 disp (\"The value of pi is:\"), disp (pi)\n\ | 3442 disp (\"The value of pi is:\"), disp (pi)\n\ |
3443 \n\ | 3443 \n\ |
3477 } | 3477 } |
3478 | 3478 |
3479 DEFUN (fdisp, args, , | 3479 DEFUN (fdisp, args, , |
3480 "-*- texinfo -*-\n\ | 3480 "-*- texinfo -*-\n\ |
3481 @deftypefn {Built-in Function} {} fdisp (@var{fid}, @var{x})\n\ | 3481 @deftypefn {Built-in Function} {} fdisp (@var{fid}, @var{x})\n\ |
3482 Display the value of @var{x} on the stream @var{fid}. For example,\n\ | 3482 Display the value of @var{x} on the stream @var{fid}. For example:\n\ |
3483 \n\ | 3483 \n\ |
3484 @example\n\ | 3484 @example\n\ |
3485 @group\n\ | 3485 @group\n\ |
3486 fdisp (stdout, \"The value of pi is:\"), fdisp (stdout, pi)\n\ | 3486 fdisp (stdout, \"The value of pi is:\"), fdisp (stdout, pi)\n\ |
3487 \n\ | 3487 \n\ |
3859 @code{pi} when printed in @code{native-hex} format is @code{400921fb54442d18}.\n\ | 3859 @code{pi} when printed in @code{native-hex} format is @code{400921fb54442d18}.\n\ |
3860 \n\ | 3860 \n\ |
3861 @item hex\n\ | 3861 @item hex\n\ |
3862 The same as @code{native-hex}, but always print the most significant\n\ | 3862 The same as @code{native-hex}, but always print the most significant\n\ |
3863 byte first.\n\ | 3863 byte first.\n\ |
3864 \n\ | |
3864 @item native-bit\n\ | 3865 @item native-bit\n\ |
3865 Print the bit representation of numbers as stored in memory.\n\ | 3866 Print the bit representation of numbers as stored in memory.\n\ |
3866 For example, the value of @code{pi} is\n\ | 3867 For example, the value of @code{pi} is\n\ |
3867 \n\ | 3868 \n\ |
3868 @example\n\ | 3869 @example\n\ |
3873 @end example\n\ | 3874 @end example\n\ |
3874 \n\ | 3875 \n\ |
3875 (shown here in two 32 bit sections for typesetting purposes) when\n\ | 3876 (shown here in two 32 bit sections for typesetting purposes) when\n\ |
3876 printed in native-bit format on a workstation which stores 8 byte real values\n\ | 3877 printed in native-bit format on a workstation which stores 8 byte real values\n\ |
3877 in IEEE format with the least significant byte first.\n\ | 3878 in IEEE format with the least significant byte first.\n\ |
3879 \n\ | |
3878 @item bit\n\ | 3880 @item bit\n\ |
3879 The same as @code{native-bit}, but always print the most significant\n\ | 3881 The same as @code{native-bit}, but always print the most significant\n\ |
3880 bits first.\n\ | 3882 bits first.\n\ |
3881 \n\ | 3883 \n\ |
3882 @item rat\n\ | 3884 @item rat\n\ |
3890 \n\ | 3892 \n\ |
3891 @table @code\n\ | 3893 @table @code\n\ |
3892 @item compact\n\ | 3894 @item compact\n\ |
3893 Remove extra blank space around column number labels producing more compact\n\ | 3895 Remove extra blank space around column number labels producing more compact\n\ |
3894 output with more data per page.\n\ | 3896 output with more data per page.\n\ |
3897 \n\ | |
3895 @item loose\n\ | 3898 @item loose\n\ |
3896 Insert blank lines above and below column number labels to produce a more\n\ | 3899 Insert blank lines above and below column number labels to produce a more\n\ |
3897 readable output with less data per page. (default).\n\ | 3900 readable output with less data per page. (default).\n\ |
3898 @end table\n\ | 3901 @end table\n\ |
3899 @end deffn") | 3902 @end deffn") |
3912 return retval; | 3915 return retval; |
3913 } | 3916 } |
3914 | 3917 |
3915 DEFUN (fixed_point_format, args, nargout, | 3918 DEFUN (fixed_point_format, args, nargout, |
3916 "-*- texinfo -*-\n\ | 3919 "-*- texinfo -*-\n\ |
3917 @deftypefn {Built-in Function} {@var{val} =} fixed_point_format ()\n\ | 3920 @deftypefn {Built-in Function} {@var{val} =} fixed_point_format ()\n\ |
3918 @deftypefnx {Built-in Function} {@var{old_val} =} fixed_point_format (@var{new_val})\n\ | 3921 @deftypefnx {Built-in Function} {@var{old_val} =} fixed_point_format (@var{new_val})\n\ |
3919 Query or set the internal variable that controls whether Octave will\n\ | 3922 Query or set the internal variable that controls whether Octave will\n\ |
3920 use a scaled format to print matrix values such that the largest\n\ | 3923 use a scaled format to print matrix values such that the largest\n\ |
3921 element may be written with a single leading digit with the scaling\n\ | 3924 element may be written with a single leading digit with the scaling\n\ |
3922 factor is printed on the first line of output. For example,\n\ | 3925 factor is printed on the first line of output. For example:\n\ |
3923 \n\ | 3926 \n\ |
3924 @example\n\ | 3927 @example\n\ |
3925 @group\n\ | 3928 @group\n\ |
3926 octave:1> logspace (1, 7, 5)'\n\ | 3929 octave:1> logspace (1, 7, 5)'\n\ |
3927 ans =\n\ | 3930 ans =\n\ |
3945 return SET_INTERNAL_VARIABLE (fixed_point_format); | 3948 return SET_INTERNAL_VARIABLE (fixed_point_format); |
3946 } | 3949 } |
3947 | 3950 |
3948 DEFUN (print_empty_dimensions, args, nargout, | 3951 DEFUN (print_empty_dimensions, args, nargout, |
3949 "-*- texinfo -*-\n\ | 3952 "-*- texinfo -*-\n\ |
3950 @deftypefn {Built-in Function} {@var{val} =} print_empty_dimensions ()\n\ | 3953 @deftypefn {Built-in Function} {@var{val} =} print_empty_dimensions ()\n\ |
3951 @deftypefnx {Built-in Function} {@var{old_val} =} print_empty_dimensions (@var{new_val})\n\ | 3954 @deftypefnx {Built-in Function} {@var{old_val} =} print_empty_dimensions (@var{new_val})\n\ |
3952 Query or set the internal variable that controls whether the\n\ | 3955 Query or set the internal variable that controls whether the\n\ |
3953 dimensions of empty matrices are printed along with the empty matrix\n\ | 3956 dimensions of empty matrices are printed along with the empty matrix\n\ |
3954 symbol, @samp{[]}. For example, the expression\n\ | 3957 symbol, @samp{[]}. For example, the expression\n\ |
3955 \n\ | 3958 \n\ |
3968 return SET_INTERNAL_VARIABLE (print_empty_dimensions); | 3971 return SET_INTERNAL_VARIABLE (print_empty_dimensions); |
3969 } | 3972 } |
3970 | 3973 |
3971 DEFUN (split_long_rows, args, nargout, | 3974 DEFUN (split_long_rows, args, nargout, |
3972 "-*- texinfo -*-\n\ | 3975 "-*- texinfo -*-\n\ |
3973 @deftypefn {Built-in Function} {@var{val} =} split_long_rows ()\n\ | 3976 @deftypefn {Built-in Function} {@var{val} =} split_long_rows ()\n\ |
3974 @deftypefnx {Built-in Function} {@var{old_val} =} split_long_rows (@var{new_val})\n\ | 3977 @deftypefnx {Built-in Function} {@var{old_val} =} split_long_rows (@var{new_val})\n\ |
3975 Query or set the internal variable that controls whether rows of a matrix\n\ | 3978 Query or set the internal variable that controls whether rows of a matrix\n\ |
3976 may be split when displayed to a terminal window. If the rows are split,\n\ | 3979 may be split when displayed to a terminal window. If the rows are split,\n\ |
3977 Octave will display the matrix in a series of smaller pieces, each of\n\ | 3980 Octave will display the matrix in a series of smaller pieces, each of\n\ |
3978 which can fit within the limits of your terminal width and each set of\n\ | 3981 which can fit within the limits of your terminal width and each set of\n\ |
4000 return SET_INTERNAL_VARIABLE (split_long_rows); | 4003 return SET_INTERNAL_VARIABLE (split_long_rows); |
4001 } | 4004 } |
4002 | 4005 |
4003 DEFUN (output_max_field_width, args, nargout, | 4006 DEFUN (output_max_field_width, args, nargout, |
4004 "-*- texinfo -*-\n\ | 4007 "-*- texinfo -*-\n\ |
4005 @deftypefn {Built-in Function} {@var{val} =} output_max_field_width ()\n\ | 4008 @deftypefn {Built-in Function} {@var{val} =} output_max_field_width ()\n\ |
4006 @deftypefnx {Built-in Function} {@var{old_val} =} output_max_field_width (@var{new_val})\n\ | 4009 @deftypefnx {Built-in Function} {@var{old_val} =} output_max_field_width (@var{new_val})\n\ |
4007 Query or set the internal variable that specifies the maximum width\n\ | 4010 Query or set the internal variable that specifies the maximum width\n\ |
4008 of a numeric output field.\n\ | 4011 of a numeric output field.\n\ |
4009 @seealso{format, output_precision}\n\ | 4012 @seealso{format, output_precision}\n\ |
4010 @end deftypefn") | 4013 @end deftypefn") |
4012 return SET_INTERNAL_VARIABLE_WITH_LIMITS (output_precision, 0, INT_MAX); | 4015 return SET_INTERNAL_VARIABLE_WITH_LIMITS (output_precision, 0, INT_MAX); |
4013 } | 4016 } |
4014 | 4017 |
4015 DEFUN (output_precision, args, nargout, | 4018 DEFUN (output_precision, args, nargout, |
4016 "-*- texinfo -*-\n\ | 4019 "-*- texinfo -*-\n\ |
4017 @deftypefn {Built-in Function} {@var{val} =} output_precision ()\n\ | 4020 @deftypefn {Built-in Function} {@var{val} =} output_precision ()\n\ |
4018 @deftypefnx {Built-in Function} {@var{old_val} =} output_precision (@var{new_val})\n\ | 4021 @deftypefnx {Built-in Function} {@var{old_val} =} output_precision (@var{new_val})\n\ |
4019 Query or set the internal variable that specifies the minimum number of\n\ | 4022 Query or set the internal variable that specifies the minimum number of\n\ |
4020 significant figures to display for numeric output.\n\ | 4023 significant figures to display for numeric output.\n\ |
4021 @seealso{format, output_max_field_width}\n\ | 4024 @seealso{format, output_max_field_width}\n\ |
4022 @end deftypefn") | 4025 @end deftypefn") |
4024 return SET_INTERNAL_VARIABLE_WITH_LIMITS (output_precision, -1, INT_MAX); | 4027 return SET_INTERNAL_VARIABLE_WITH_LIMITS (output_precision, -1, INT_MAX); |
4025 } | 4028 } |
4026 | 4029 |
4027 DEFUN (struct_levels_to_print, args, nargout, | 4030 DEFUN (struct_levels_to_print, args, nargout, |
4028 "-*- texinfo -*-\n\ | 4031 "-*- texinfo -*-\n\ |
4029 @deftypefn {Built-in Function} {@var{val} =} struct_levels_to_print ()\n\ | 4032 @deftypefn {Built-in Function} {@var{val} =} struct_levels_to_print ()\n\ |
4030 @deftypefnx {Built-in Function} {@var{old_val} =} struct_levels_to_print (@var{new_val})\n\ | 4033 @deftypefnx {Built-in Function} {@var{old_val} =} struct_levels_to_print (@var{new_val})\n\ |
4031 Query or set the internal variable that specifies the number of\n\ | 4034 Query or set the internal variable that specifies the number of\n\ |
4032 structure levels to display.\n\ | 4035 structure levels to display.\n\ |
4033 @end deftypefn") | 4036 @end deftypefn") |
4034 { | 4037 { |