aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/string.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-06-29 12:36:25 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:51 +0200
commitccb3f7f9768d3c28783c771df47eec1829e51802 (patch)
treeabefbd6918344a0796be38a4ee4c8b61c7b5c602 /lib/stdlib/src/string.erl
parentfb9235e7c3a6872a1394e5ba0c78217d9617f8e3 (diff)
downloadotp-ccb3f7f9768d3c28783c771df47eec1829e51802.tar.gz
otp-ccb3f7f9768d3c28783c771df47eec1829e51802.tar.bz2
otp-ccb3f7f9768d3c28783c771df47eec1829e51802.zip
Deprecate old string functions
They should not be used.
Diffstat (limited to 'lib/stdlib/src/string.erl')
-rw-r--r--lib/stdlib/src/string.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/stdlib/src/string.erl b/lib/stdlib/src/string.erl
index 4972da297d..5a4d2df2a6 100644
--- a/lib/stdlib/src/string.erl
+++ b/lib/stdlib/src/string.erl
@@ -87,6 +87,16 @@
%%% May be removed
-export([list_to_float/1, list_to_integer/1]).
+-deprecated([{len,1},{concat,2},
+ {str,2},{chr,2},{rchr,2},{rstr,2},
+ {span,2},{cspan,2},{substr,'_'},{tokens,2},
+ {chars,'_'},
+ {copies,2},{words,'_'},{strip,'_'},
+ {sub_word,'_'},{left,'_'},{right,'_'},
+ {sub_string,'_'},{centre,'_'},{join,2},
+ {to_upper,1}, {to_lower,1}
+ ]).
+
%% Uses bifs: string:list_to_float/1 and string:list_to_integer/1
-spec list_to_float(String) -> {Float, Rest} | {'error', Reason} when
String :: string(),