summaryrefslogtreecommitdiff
path: root/stdlib/printf.mli
Commit message (Collapse)AuthorAgeFilesLines
* Remove .0 from all @since, @before and @afterDavid Allsopp2022-10-311-7/+7
|
* Printexc.catch, Printf.kprintf, Unix.SO_ERROR: add deprecation warning (#10924)Nicolás Ojeda Bär2022-01-211-0/+1
|
* Stdlib: added Printf.ikbprintf, Printf.ibprintf (#9364)muskangarg212020-03-261-0/+13
|
* Add printf `%#F` to output floats in hexadecimal OCaml constantsPierre Roux2019-09-261-2/+7
|
* Enforce precision in printf %FPierre Roux2019-03-091-3/+4
|
* Add Changes entry and update Printf docygrek2018-05-281-3/+3
|
* PR#7507: updated description for printf "%g"octachron2017-05-081-1/+4
| | | | | | Align the description of the printf conversion specification "%g" with the ISO C90 description by mentioning the removal of trailing zeros and decimal-point character.
* Documentation: improve @since annotationsTörök Edwin2017-02-211-1/+1
| | | | | | | | | | | | | | Add missing @since annotations for OCaml versions 4.00.0 - 4.05.0, and fix existing annotations as needed: Format.ikprintf: clarify ambiguity on @since 4.0 annotation See https://github.com/ocaml/ocaml/commit/b81519668f7fa3d84f1453dc022a0d4a9b722eb8 Hashtbl.is_randomized and ListLabels.sort_uniq should be @since 4.03 List.sort_uniq is 4.02 but ListLabels.sort_uniq is 4.03 See: https://github.com/ocaml/ocaml/commit/512d128918544ae1da0c808e811f3a7f177524d2 https://github.com/ocaml/ocaml/commit/189d29bfcf98525f63c1c3c4a4a2be9989a62ef7
* Update headers for the new license.Damien Doligez2016-02-181-12/+14
| | | | Remains to be done: remove all headers in testsuite/tests.
* GPR#268: Hexadecimal notation for floating-point numbersXavier Leroy2015-11-191-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge of branch 'hex-float'. - Add support in byterun/floats.c for conversions between floats and strings in hex notation. We cannot rely on the C standard library here because Microsoft consistently fails at supporting hex notation as standardized in C99. Instead, the conversions are implemented from scratch. - Add support in the lexer so that hex float literals are recognized in OCaml sources. - Add support in formats. The ISO C99 format letters for hex floats are %a and %A, but %a is already taken. I chose %h and %H, which are rejected today as bad formats (hence no backward incompatibility) and don't mean anything in C either (h is a modifier, not a format letter). - Add support in printf. All the trimmings are there in the implementation of %h and %H, including sign modifier and fixed precision. - Benoit Vaugon contributed support in scanf. Resolved conflicts: boot/ocamlc boot/ocamldep boot/ocamllex parsing/lexer.mll
* | Order type variables in format parametersGabriel Scherer2015-08-021-8/+8
| | | | | | | | | | | | (Maxence Guesdon) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16310 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* | GPR#201: Keep general types of Printf.{ifprintf,ikfprintf}Gabriel Scherer2015-08-021-3/+2
|/ | | | | | (Maxence Guesdon) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16309 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Attach documentation comments to ParsetreeLeo White2015-06-281-4/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16189 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge branch 4.02 from release 4.02.0 to release 4.02.1Damien Doligez2014-10-151-1/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15558 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* second part of Benoît Vaugon's format+gadts patchGabriel Scherer2014-05-121-72/+1
| | | | | | | | | | | | | | | | | | | | | | To finish the bootstrap cycle, run: make library-cross make promote make partialclean make core make library-cross make promote-cross make partialclean make ocamlc ocamllex ocamltools make library-cross make promote make partialclean make core make compare git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14810 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Better documentation of meta format conversion.Pierre Weis2013-05-291-2/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13714 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Details.Pierre Weis2013-04-251-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13608 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Exporting count_printing_arguments_of_format and add_int_index.Pierre Weis2013-04-241-0/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13605 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove all $Id keywordsDamien Doligez2012-10-151-2/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Doc: better phrasing for %,. Introducing ikfprintf.Pierre Weis2012-04-111-7/+16
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12342 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* uniformization of the warnings at the head of the hidden sections of the .mliDamien Doligez2012-03-141-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12243 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5380: copy fix from 3.12 branchDamien Doligez2012-01-111-16/+22
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12014 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* continuing to change the name to OCamlDamien Doligez2011-12-211-4/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11922 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* renaming of Objective Caml to OCaml and cleanup of copyright headersDamien Doligez2011-07-271-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from 3.12.0 to 3.12.1Damien Doligez2011-07-201-2/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11123 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#4831: use tags @since and @before in std libDamien Doligez2010-05-211-4/+12
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10457 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Introducing nop format delimiter %,Pierre Weis2009-11-301-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9430 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Documentation.Pierre Weis2008-09-271-3/+10
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9040 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Support for tk8.5: correcting tk_incs.Pierre Weis2008-07-011-1/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8899 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes 3.10.0 -> 3.10.1Damien Doligez2008-01-111-9/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8768 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Encapsulation of system specific exports in module Printf.Pierre Weis2006-11-171-45/+59
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7735 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* New type ac (argument counting for format strings). Private export of new ↵Pierre Weis2006-11-061-6/+16
| | | | | | function ac_of_format for Scanf (and the typechecker). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7721 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* New function ifprintf that does not print. (See request #0004031.)Pierre Weis2006-11-061-2/+5
| | | | | | | | | Ifprintf is a one-liner using implementation tools from Printf, whereas it is not possible to write it in pure Caml. Useful to conditionally ignore printing. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7717 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Sub module Sformat now deals with format6.Pierre Weis2006-10-241-19/+19
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7703 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Documentation.Pierre Weis2006-10-151-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7690 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Code review before adding new typing of format string.Pierre Weis2006-05-041-0/+6
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7396 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Module Sformat is internal to printf. Better typing specifications of ↵Pierre Weis2006-04-051-10/+29
| | | | | | functions working with format strings. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7374 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fusion 3.09.0 -> 3.09.1Damien Doligez2006-01-041-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7307 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Implementing positional parameters in format string. First step:Pierre Weis2005-09-261-40/+55
| | | | | | | | | runtime implementation for printf-like functions. Revising printf documentation and adding something for positional parameters. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7082 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Closing a long standing bug in the implementation of printf-likePierre Weis2005-09-201-21/+20
| | | | | | | | | | | | | functions: partially applied printf functions were printing material as soon as the first argument was applied (and even before: printing started as soon as the format string was provided). This is the first step towards the implementation of $ formats (i.e. formats that can access directly to any of their arguments, using a $n notation to denote the nth argument (``a la Yacc'')). This is supposed to be mandatory to internationalisation of messages. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7060 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Documentation.Pierre Weis2005-09-131-6/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7049 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Doc %F (PR#3541)Xavier Leroy2005-08-021-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7004 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Homogènésation des interfaces de printf et format: kprintf est marquéePierre Weis2005-07-221-4/+11
| | | | | | | obsolète au profit de ksprintf; on introduit kfprintf. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6979 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Sub_format is shared between static and dynamic semantics of the language.Pierre Weis2004-12-071-2/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6727 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Doc (typos).Pierre Weis2004-11-161-3/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Documentation.Pierre Weis2004-10-041-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6625 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Implementation des meta formats.Pierre Weis2004-09-221-2/+14
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6621 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Renommage type format -> format4 et reintroduction type format a 3 arguments ↵Xavier Leroy2003-07-051-6/+6
| | | | | | pour compatibilite arriere git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5658 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* desactivation du format %$Damien Doligez2003-07-021-7/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5644 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#1675, voir aussi PR#1438Damien Doligez2003-07-011-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5641 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02