From 037150979ff809df85757bd2b3f676e2e4c6be88 Mon Sep 17 00:00:00 2001
From: Hans Bolinder Returns the byte at position Returns the byte at position The same as The same as Converts Converts If If The same as The same as Builds an internal structure representing a compilation of a
@@ -155,7 +136,7 @@
When a list of binaries is given, it denotes a set of
alternative binaries to search for. I.e if
The list of binaries used for search alternatives shall be flat and proper. If If The same as The same as Creates a binary with the content of Creates a binary with the content of This function will always create a new binary, even if This function will always create a new binary, even if If If The same as The same as Converts the binary digit representation, in big or little
- endian, of a positive integer in
Example:
@@ -237,22 +202,15 @@The same as
The same as
Converts a positive integer to the smallest possible @@ -268,51 +226,39 @@
Returns the first byte of the binary
Returns the first byte of the binary
Returns the last byte of the binary
Returns the last byte of the binary
Works exactly as
Returns the length of the longest common prefix of the
- binaries in the list
1> binary:longest_common_prefix([<<"erlang">>,<<"ergonomy">>]).
@@ -321,19 +267,16 @@
0
- If
If
Returns the length of the longest common suffix of the
- binaries in the list
1> binary:longest_common_suffix([<<"erlang">>,<<"fang">>]).
@@ -347,35 +290,24 @@
The same as
The same as
Searches for the first occurrence of
Searches for the first occurrence of
The function will return
The function will return
1> binary:match(<<"abcde">>, [<<"bcde">>,<<"cd">>],[]).
@@ -391,16 +323,16 @@
Summary of the options:
- {scope, {Start, Length}}
+ {scope, {Start , Length }}
Only the given part is searched. Return values still have
- offsets from the beginning of Subject . A negative Length is
- allowed as described in the TYPES section of this manual.
+ offsets from the beginning of Subject . A negative Length is
+ allowed as described in the DATA TYPES section of this manual.
If none of the strings in
- Pattern is found, the atom nomatch is returned.
+ Pattern is found, the atom nomatch is returned.
- For a description of Pattern , see
+
For a description of Pattern , see
compile_pattern/1 .
If {scope, {Start,Length}} is given in the options
@@ -412,32 +344,21 @@
The same as
The same as
Works like match, but the
Works like
The first and longest match is preferred to a shorter, which is illustrated by the following example:
@@ -458,26 +379,22 @@If none of the strings in pattern is found, an empty list is returned.
-For a description of
For a description of
If
If
Extracts the part of the binary
Extracts the part of the binary
Negative length can be used to extract bytes at the end of a binary:
@@ -494,25 +411,20 @@If
If
The same as
The same as
Opaque continuation used by
A table identifier, as returned by new/2.
Returns a list of all tables at the node. Named tables are given by their names, unnamed tables are given by their @@ -164,48 +170,34 @@
Deletes the entire table
Deletes the entire table
Deletes all objects with the key
Deletes all objects with the key
Delete all objects in the ETS table
Delete all objects in the ETS table
Delete the exact object
Delete the exact object
Returns the first key
Returns the first key
The fun is very restricted, it can take only a single
parameter (the object to match): a sole variable or a
- tuple. It needs to use the
Make process
Make process
The process
The process
Note that
Returns information about the table
Returns information about the table
Returns the information associated with
In R11B and earlier, this function would not fail but return
In addition to the
In addition to the
Inserts the object or all of the objects in the list
-
This function works exactly like
This function is used to check if a term is a valid
compiled
Returns the last key
Returns the last key
Returns a list of all objects with the key
Returns a list of all objects with the key
In the case of
If the table
If the table
If the table is of type
If no object with the key
If no object with the key
The difference between
Matches the objects in the table
Matches the objects in the table
A pattern is a term that may contain:
Works like
Continues a match started with
Matches the objects in the table
Matches the objects in the table
If the key is specified in the pattern, the match is very @@ -809,18 +738,12 @@ ets:is_compiled_ms(Broken).
Works like
Continues a match started with
This function transforms a
If the term
If the term
This function executes the matching specified in a
compiled
The matching will be executed on each element in
The matching will be executed on each element in
@@ -910,37 +825,23 @@ ets:select(Table,MatchSpec),
Works like
Creates a new table and returns a table identifier which can be used in subsequent operations. The table identifier can be sent to other processes so that a table can be shared between different processes within a node.
-The parameter
The parameter Note that any tuple stored in the table must have at
- least
+
Set a process as heir. The heir will inherit the table if
the owner terminates. The message
-
Returns the next key
Returns the next key
Returns the previous key
Returns the previous key
Renames the named table
Renames the named table
Fixes a table of the
A process fixes a table by calling
-
If several processes fix a table, the table will remain fixed until all processes have released it (or terminated). @@ -1242,15 +1129,10 @@ clean_all_with_value(Tab,X,Key) ->
Matches the objects in the table
Matches the objects in the table
Works like
Continues a match started with
Matches the objects in the table
Matches the objects in the table
Matches the objects in the table
Matches the objects in the table
Works like
Works like
Note that this is not equivalent to
reversing the result list of a
Continues a match started with @@ -1477,7 +1322,7 @@ is_integer(X), is_integer(Y), X + Y < 4711]]> returned list will also contain objects with keys in reverse order.
-For all other table types, the behaviour is exatly that of
For all other table types, the behaviour is exactly that of
Example:
1> T = ets:new(x,[ordered_set]).
@@ -1501,14 +1346,8 @@ is_integer(X), is_integer(Y), X + Y < 4711]]>
Set table options. The only option that currently is allowed to be set after the table has been created is @@ -1517,28 +1356,23 @@ is_integer(X), is_integer(Y), X + Y < 4711]]>
This function is mostly for debugging purposes, Normally
one should use
Returns all objects in the
Returns all objects in the
Unless a table of type
This function provides an efficient way to update one or more counters, without the hassle of having to look up an object, update @@ -1771,22 +1605,22 @@ true into the table again. (The update is done atomically; i.e. no process can access the ets table in the middle of the operation.)
-It will destructively update the object with key
It will destructively update the object with key
If a
If a
A list of
A list of
The given Key is used to identify the object by either +
The given
This function provides an efficient way to update one or more elements within an object, without the hassle of having to look up, update and write back the entire object.
-It will destructively update the object with key
A list of
It will destructively update the object with key
A list of
The function returns
The given Key is used to identify the object by either +
The given
diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index 7042c84437..fc58f3e4d2 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -4,7 +4,7 @@
Searches the list of tuples Searches the list of tuples
Returns Returns
Searches the list of tuples Searches the list of tuples This function is retained for backward compatibility.
The function
Returns
Returns
Returns a list with the elements in
Returns a list with the elements in
> lists:reverse([1, 2, 3, 4], [a, b, c]). diff --git a/lib/stdlib/doc/src/math.xml b/lib/stdlib/doc/src/math.xml index 518457d5d8..0219dcce10 100644 --- a/lib/stdlib/doc/src/math.xml +++ b/lib/stdlib/doc/src/math.xml @@ -5,7 +5,7 @@1996 -2011 +2012 Ericsson AB, All Rights Reserved @@ -52,54 +52,47 @@
A collection of math functions which return floats. Arguments are numbers.
Returns the error function of
Returns the error function of
erf(X) = 2/sqrt(pi)*integral from 0 to X of exp(-t*t) dt.
The same as
The same as
This function compiles a regular expression with the syntax described below into an internal format to be used later as a @@ -165,44 +152,23 @@ This option makes it possible to include comments inside complicated patterns. N
The same as
The same as
Executes a regexp matching, returning
When compilation is involved, the exception
If the regular expression was previously compiled with the
- option
The
The
The options relevant for execution are:
@@ -266,7 +232,7 @@ This option makes it possible to include comments inside complicated patterns. N Perl). Each match is returned as a separateOverride the default definition of a newline in the subject string, which is LF (ASCII 10) in Erlang.
Specifies which captured substrings are returned and in what
@@ -392,7 +358,7 @@ This option makes it possible to include comments inside complicated patterns. N
substring as well as all capturing subpatterns (all of the
pattern is automatically captured). The default return type is
(zero-based) indexes of the captured parts of the string, given as
-
As an example of the default behavior, the following call:
@@ -422,8 +388,8 @@ This option makes it possible to include comments inside complicated patterns. NThe capture tuple is built up as follows:
Specifies which captured (sub)patterns are to be returned. The ValueSpec can either be an atom describing a predefined set of return values, or a list containing either the indexes or the names of specific subpatterns to return.
+Specifies which captured (sub)patterns are to be returned. The
The predefined sets of subpatterns are:
The value list is a list of indexes for the subpatterns to return, where index 0 is for all of the pattern, and 1 is for the first explicit capturing subpattern in the regular expression, and so forth. When using named captured subpatterns (see below) in the regular expression, one can use
".*(abcd).*"
- matched against the string ""ABCabcdABC", capturing only the "abcd" part (the first explicit subpattern):
+matched against the string "ABCabcdABC", capturing only the "abcd" part (the first explicit subpattern):
re:run("ABCabcdABC",".*(abcd).*",[{capture,[1]}]).
The call will yield the following result:
{match,[{3,4}]}
@@ -460,8 +426,8 @@ This option makes it possible to include comments inside complicated patterns. N
or list respectively.
Optionally specifies how captured substrings are to be returned. If omitted, the default of
Optionally specifies how captured substrings are to be returned. If omitted, the default of
"ABCabcdABC"
the subpattern at index 2 won't match, as "abdd" is not present in the string, but the complete pattern matches (due to the alternative
{match,[{0,10},{3,4},{-1,0},{4,3}]}
- Setting the capture
Setting the capture
{match,[<<"ABCabcdABC">>,<<"abcd">>,<<>>,<<"bcd">>]}
where the empty binary (
If differentiation between empty matches and non existing subpatterns is necessary, use the
Argument
Argument
Example:
> {F1,Fs} = string:to_float("1.0-1.0e-1"),
@@ -280,18 +274,12 @@ sub_string("Hello World", 4, 8).
Argument
Argument
Example:
> {I1,Is} = string:to_integer("33+22"),
diff --git a/lib/stdlib/doc/src/unicode.xml b/lib/stdlib/doc/src/unicode.xml
index 1001ebbae4..1f6cbaccd7 100644
--- a/lib/stdlib/doc/src/unicode.xml
+++ b/lib/stdlib/doc/src/unicode.xml
@@ -5,7 +5,7 @@
1996
- 2011
+ 2012
Ericsson AB, All Rights Reserved
@@ -130,34 +130,24 @@
This function converts a possibly deep list of integers and
binaries into a list of integers representing unicode
characters. The binaries in the input may have characters
encoded as latin1 (0 - 255, one character per byte), in which
- case the
If
If
However, if the input
However, if the input
Errors occur for the following reasons:
If one UTF characters is split over two consecutive
- binaries in the
Same as characters_to_binary(Data, InEncoding, unicode).
+Same as characters_to_binary(