John Whitington
fc101ae849
Rename tools/unlabel --> tools/sync_stdlib_docs
2020-09-10 19:17:43 +01:00
John Whitington
53f753d772
remove double @sinces
2020-08-03 15:26:44 +01:00
John Whitington
66638cf700
~prefix fix
2020-08-03 14:12:58 +01:00
John Whitington
1d68ac08dc
Fix deprecations
2020-08-03 13:38:28 +01:00
John Whitington
0af3a1a805
Small fixes from @dra27's comments
2020-08-03 12:46:16 +01:00
John Whitington
6e0557f6d7
Labeled and unlabeled @sinces automatically
2020-07-30 17:21:22 +01:00
John Whitington
0fbeee11be
Fix smaller review comments from @dra27
2020-07-30 13:26:20 +01:00
John Whitington
7f922569c0
Replacing {!X.y} in doc comments with {!y}
2020-07-27 13:39:12 +01:00
John Whitington
0f2954b263
Fixes per travis check-typo and travis changes
2020-07-08 14:13:08 +01:00
John Whitington
dea23a56c5
Restore String.prefix/suffix status quo ante
2020-07-08 12:23:16 +01:00
John Whitington
efe8ca02f1
Unify labeled and unlabeled Standard Library modules
2020-07-07 19:34:14 +01:00
Et7f3
c4851b0ff0
Consistently use @raise tags in Stdlib docs ( #8644 )
2020-06-30 14:06:45 +01:00
Bernhard Schommer
e00d7f3a42
Added String prefix and suffix tests.
...
The functions test if the second argument is a prefix or suffix of the
first argument.
2020-06-24 12:01:55 +02:00
Gabriel Scherer
c107e00ce5
Fix the string.mli documentation of unsafe-string ( #8653 )
...
unsafe-string is no longer the default since 4.06.
2019-05-02 19:24:53 +02:00
Daniel Bünzli
acb0e91ac6
Stdlib doc: harmonize heading levels again. ( #2142 )
2018-11-08 17:33:55 +01:00
Jérémie Dimino
9124ab82d1
Deprecate Pervasives ( #1605 )
...
- inline Pervasives in Stdlib and re-add Pervasives as a deprecated
module that aliases all elements of Stdlib except the stdlib modules.
- remove special case for Stdlib.Pervasives in printtyp.ml
2018-08-27 12:42:14 +01:00
zapashcanon
6ca69c2546
Fix a typo
2018-04-01 16:58:40 +01:00
Simon Cruanes
df80f34a92
Stdlib functional iterators ( #1002 )
...
* add `Seq` module, expose iterator conversions in most containers
* small typo
* typo
* change order of arguments for `{Map,Set}.add_seq`
* watch for max string length in `Bytes.of_seq`
* wip: make it build again
* Fix dependency
Sys needs to be linked before Bytes in stdlib.
* Update threads/stdlib.ml
* Update stdlib_no_prefixed/.depend
* fix inconsistencies with label modules
* update testsuite to work with seq
* update change file
* small change in `Hashtbl.to_seq`, capturing only the underlying array
* add some documentation to seq.mli
* revert to good ol' module type names for hashtables
* fix test
* change style of comments in seq.mli
* follow some demands in review of GPR #1002
* some fixes for #1002
* add Seq-related functions to Ephemeron
* add some comments on `Hashtbl.of_seq`
* add more tests for `Hashtbl.{to,of}_seq`
* fix bug in `Ephemeron.to_seq`
* Update Changes
2018-03-16 18:25:10 +01:00
Damien Doligez
4b9e196d52
restore compatibility for String.{unsafe_set,create,fill}
2016-12-14 13:20:17 +00:00
Hongbo Zhang
026248378b
change primitive names back to %string_safe_set
2016-12-14 13:20:12 +00:00
Alain Frisch
69263a9893
Option-returning variants of stdlib functions ( #885 )
...
Provide an xxx_opt alternative for functions raising Not_found
and many instances of Failure/Invalid_arg.
The only exception is the rarely used Buffer.add_substitute, where
the [Not_found] can really be interpreted as an error condition.
Most new functions are implemented directly (instead of wrapping the
raising version). This is for performance reasons and also to avoid
destroying the stacktrace (if the function is used in an exception
handler). One could instead implement the raising versions on top of
the new functions, but there might be a small penalty.
2016-11-07 16:11:35 +00:00
Hongbo Zhang
82d2375cc6
apply changes to stdlib and test suite
2016-08-07 11:19:26 -04:00
alainfrisch
1204048897
Typo.
2016-07-11 14:57:03 +02:00
alainfrisch
d88ac0ac7d
Rename String.split to String.split_on_char ( #626 ).
2016-07-11 14:50:56 +02:00
alainfrisch
4c979b80a8
String.split
2016-07-09 23:05:25 +02:00
Damien Doligez
5401ce8473
Update headers for the new license.
...
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Jérémie Dimino
62b89a3a5c
Replace uses of "noalloc" by [@@noalloc]
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16455 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-06 10:58:22 +00:00
Damien Doligez
e60a2db81c
PR#6521: {Bytes,Char,String}.escaped are locale-dependent
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15901 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-03-11 18:41:15 +00:00
Gabriel Scherer
9cf8686210
add @since tags to the new *_ascii functions
...
From: Gabriel Scherer <gabriel.scherer@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15732 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-21 11:46:23 +00:00
Gabriel Scherer
bcaa58a035
PR6694: Deprecate Latin-1 string manipulation functions.
...
Also, add documentation for the US-ASCII variants.
From: Peter Zotov <whitequark@whitequark.org>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15729 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-21 11:46:18 +00:00
Gabriel Scherer
a533618a7a
PR6695: Add ASCII counterparts to case-mapping functions.
...
This updates Char, String, Bytes in the stdlib.
For now, they are hidden from documentation and are only for
internal compiler use.
From: Peter Zotov <whitequark@whitequark.org>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15726 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-21 11:46:10 +00:00
Gabriel Scherer
85b75d7963
PR#6494: Add equal function in modules Big_int, Bytes, Char, Digest, Int32, Int64, Nativeint, Num and String
...
(Romain Calascibetta)
From: Romain Calascibetta <romain.calascibetta@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15725 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-21 11:46:08 +00:00
Damien Doligez
031cffd155
merge branch 4.02 from release 4.02.0 to release 4.02.1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15558 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-15 13:34:58 +00:00
Damien Doligez
cbfe627f92
merge changes from branch 4.02 from branching (rev 14852) to 4.02.0+rc1 (rev 15121)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15125 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-22 13:45:02 +00:00
Gabriel Scherer
b7dd6d2c91
implement {Bytes,String}.mapi
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15058 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-06 15:57:38 +00:00
Alain Frisch
aeead32662
#6500 : add String.init, Bytes.init, Labels couterparts, Stream.of_byte. (Cherry-picked from 15029 on 4.02.)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15030 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-07-28 13:29:50 +00:00
Damien Doligez
9baf42b72d
safe-string: documentation fixes and add a couple of functions in Pervasives and Digest
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14721 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-01 21:54:15 +00:00
Damien Doligez
5b8df637d2
merge branch "safe-string"
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14705 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-04-29 11:56:17 +00:00
Fabrice Le Fessant
504e86d722
Revert r13746 (demanded by Xavier)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13748 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-05 17:54:20 +00:00
Fabrice Le Fessant
1f9f68a328
Add String.split and String.cut_at from Misc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13746 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-05 13:27:05 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez
f95e7f4a59
uniformization of the warnings at the head of the hidden sections of the .mli
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12243 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-14 16:03:15 +00:00
Damien Doligez
0ed38a9fb1
bumped version to 4.00.0 (per Xavier's decision)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-08 22:27:57 +00:00
Damien Doligez
6c24f4f90b
merge version 3.12 from 3.12.1 to r12205
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-08 19:52:03 +00:00
Damien Doligez
ab2f6297c7
aftermath of PR#5497
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12183 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-23 19:15:09 +00:00
Damien Doligez
e7f5b858c2
More renaming to OCaml
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 16:15:24 +00:00
Xavier Leroy
a775cb815b
Related to #5493 again: more explanations about string mutation, string sharing, and why mutation is best avoided.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12127 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-05 09:51:49 +00:00
Damien Doligez
76538749ee
hack to make ocamldoc happy; should be fixed properly
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12114 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-03 16:01:06 +00:00
Jonathan Protzenko
d9d4bd2ad0
Related to #5493 : document in string.mli the fact that string constants are shared.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12102 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-30 15:33:42 +00:00
Fabrice Le Fessant
d02419cef7
Fix bug #3888 (String.map and Scanf.unescaped)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12004 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-08 15:38:38 +00:00