diff options
author | Dan Gudmundsson <[email protected]> | 2017-06-30 11:58:01 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-09-15 17:07:48 +0200 |
commit | 1557d8eca4fa0daaaad470eb68edc86ca7997aab (patch) | |
tree | df740b3cbfb0f04fbb4d3e6892e47322855e6f66 /lib/asn1/src/asn1rtt_real_common.erl | |
parent | a443d41a1b7951137021e35ce480fbdd896f5cbc (diff) | |
download | otp-1557d8eca4fa0daaaad470eb68edc86ca7997aab.tar.gz otp-1557d8eca4fa0daaaad470eb68edc86ca7997aab.tar.bz2 otp-1557d8eca4fa0daaaad470eb68edc86ca7997aab.zip |
asn1: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/asn1/src/asn1rtt_real_common.erl')
-rw-r--r-- | lib/asn1/src/asn1rtt_real_common.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1rtt_real_common.erl b/lib/asn1/src/asn1rtt_real_common.erl index 3a79209015..81c1f54d74 100644 --- a/lib/asn1/src/asn1rtt_real_common.erl +++ b/lib/asn1/src/asn1rtt_real_common.erl @@ -125,7 +125,7 @@ encode_real(_C, {_,Base,_}) -> encode_real(C, Real) when is_list(Real) -> %% The Real string may come in as a NR1, NR2 or NR3 string. {Mantissa, Exponent} = - case string:tokens(Real,"Ee") of + case string:lexemes(Real,"Ee") of [NR2] -> {NR2,0}; [NR3MB,NR3E] -> @@ -144,7 +144,7 @@ encode_real(C, Real) when is_list(Real) -> NewMan = remove_trailing_zeros(Dec), {NewMan,length(ZeroDecimal(NewMan))}; _ -> - case string:tokens(Mantissa,",.") of + case string:lexemes(Mantissa,",.") of [Num] -> %% No decimal-mark {integer_to_list(list_to_integer(Num)),0}; [Num,Dec] -> |