Commit Graph

33 Commits (0b2e6f5f7cc0d1ed912e9e3ba4a49e92b432aece)

Author SHA1 Message Date
Pierre Weis 3b1652c76c Explicit documentation of %0c: scanf "%0c" (fun c -> ...) gives access
to the current character without reading it. This is convenient to
continue scanning according to the value of the current character,
without having the burden to add it to the scanning result (if only
possible when you decide to scan %C or %S when c is " or ').


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5562 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-14 06:39:50 +00:00
Pierre Weis f1217b8bc7 Begin_of_input -> beginning_of_input.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5561 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-05-14 06:30:04 +00:00
Pierre Weis e3c25d1b24 Correcting the bug of large buffering when scanning files.
Introduction of two new functions Scanning.from_file and
Scanning.from_file_bin to alleviate this problem.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5506 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-04-25 10:21:21 +00:00
Pierre Weis 1f955eb17e Format %S now understands continuation newlines (\\\n).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5412 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-02 23:03:15 +00:00
Pierre Weis 8701ef7048 Documentation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5322 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-12-09 10:28:05 +00:00
Pierre Weis 9deb0370fa Exporting stdib
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5315 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-12-08 15:16:09 +00:00
Pierre Weis 9fd8825b8d adding C-like %n format for scanf. For printf %n is an alias fr %i.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5313 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-12-08 13:52:02 +00:00
Pierre Weis 12107f3fbe Reaching the format graal: the fourth element
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-31 09:56:11 +00:00
Pierre Weis 03625b7620 Export de end_of_input.
Implementation de la semantique des espaces conforme a la doc (seul le
caractère 32 est reconnu pour appeler skip_spaces).


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5207 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-30 23:46:21 +00:00
Pierre Weis e42e2b9266 Revised semantics of @c: the c character is now skipped by default.
This behaviour is documented.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5162 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-08 06:46:15 +00:00
Pierre Weis 739479921d Provision for unsigned numbers in binary notation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5159 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-10-07 12:16:03 +00:00
Pierre Weis a96f8f0e87 Formats %B and %F.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5119 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-09-05 10:38:11 +00:00
Pierre Weis 05406fd635 Typos.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5053 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-28 21:51:51 +00:00
Pierre Weis 6c15753d0f Revu le traitement de %S (les @c ne sont pas nécessaires vus les
guillemets délimiteurs).
Revu le traitement des blancs en fin de fichier et les formats à
indication de scanning erronées (format terminé par @).
Revu le type de kscanf.
Revu la documentation des indications de scanning.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5051 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-28 21:29:42 +00:00
Xavier Leroy 6970e8c7fa Identifier %x et %X; bug parsing entiers octal et hexa (PR#1260); 8 n'est pas un chiffre octal. Signe: Damien & Xavier
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5041 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-25 15:24:58 +00:00
Xavier Leroy 1c2eda75a7 ocamldoc n'aime pas [@c] ...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5039 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-25 14:06:19 +00:00
Xavier Leroy 2864c78b57 Petites modifs dans les commentaires de doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5037 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-25 12:17:35 +00:00
Xavier Leroy 12e24290b8 Petites modifs dans les commentaires de doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5036 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-25 12:11:29 +00:00
Pierre Weis 4865d98f29 Errors in documentation + the error continuation now takes as argument
the exception that was raised during scanning instead of a string
explaining the problem + proper end of file detection.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4992 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-07-11 22:39:26 +00:00
Pierre Weis d7e240f4d9 Documentation of kscanf + simplification of exception Scan_failure.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4957 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-27 09:18:11 +00:00
Pierre Weis 72d45abf8a Introducing kscanf, the scanning function that has an extra
continuation argument for scanning failures.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4949 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-26 09:31:02 +00:00
Pierre Weis 0505570e3b Introducing a specific exception for formatted input functions.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4922 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-12 08:31:21 +00:00
Pierre Weis b34615a023 Spelling.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4900 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-07 10:05:52 +00:00
Pierre Weis 12b5faed10 Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4856 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-28 17:51:49 +00:00
Pierre Weis 2b74c8d0bd Le module Scanning est intégré dans Scanf.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4849 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-27 22:00:09 +00:00
Pierre Weis ad7659f31d Les formats [f], [e], [E], [g], [G] sont équivalents.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4848 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-27 20:41:19 +00:00
Pierre Weis 60ed746eef Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4840 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-27 07:05:36 +00:00
Pierre Weis 3e2024a34c typos
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4829 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-20 19:22:21 +00:00
Pierre Weis a08d0285f1 Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4825 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-17 08:17:52 +00:00
Pierre Weis f2881ac3d2 Typos.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4810 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-15 20:28:57 +00:00
Pierre Weis 3652bd03d9 Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4805 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-12 18:40:15 +00:00
Pierre Weis d4fefff6fa Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4795 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-08 13:51:09 +00:00
Pierre Weis 01ca2d9ec2 Introducing a ``scanf'' facility in Objective Caml.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4780 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-07 07:41:12 +00:00