From 037150979ff809df85757bd2b3f676e2e4c6be88 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Tue, 17 Jan 2012 12:28:32 +0100 Subject: Move types and specs from erl_bif_types.erl to modules --- lib/stdlib/doc/src/string.xml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'lib/stdlib/doc/src/string.xml') diff --git a/lib/stdlib/doc/src/string.xml b/lib/stdlib/doc/src/string.xml index 48867ffe72..549c871aed 100644 --- a/lib/stdlib/doc/src/string.xml +++ b/lib/stdlib/doc/src/string.xml @@ -4,7 +4,7 @@
- 19962011 + 19962012 Ericsson AB. All Rights Reserved. @@ -255,18 +255,12 @@ sub_string("Hello World", 4, 8). - to_float(String) -> {Float,Rest} | {error,Reason} + Returns a float whose text representation is the integers (ASCII values) in String. - - String = string() - Float = float() - Rest = string() - Reason = no_float | not_a_list - -

Argument String is expected to start with a valid text +

Argument String is expected to start with a valid text represented float (the digits being ASCII values). Remaining characters - in the string after the float are returned in Rest.

+ in the string after the float are returned in Rest.

Example:

> {F1,Fs} = string:to_float("1.0-1.0e-1"), @@ -280,18 +274,12 @@ sub_string("Hello World", 4, 8).
- to_integer(String) -> {Int,Rest} | {error,Reason} + Returns an integer whose text representation is the integers (ASCII values) in String. - - String = string() - Int = integer() - Rest = string() - Reason = no_integer | not_a_list - -

Argument String is expected to start with a valid text +

Argument String is expected to start with a valid text represented integer (the digits being ASCII values). Remaining characters - in the string after the integer are returned in Rest.

+ in the string after the integer are returned in Rest.

Example:

> {I1,Is} = string:to_integer("33+22"), -- cgit v1.2.3