No longer uses deprecated string.removechars

This commit is contained in:
Mark Barbone 2017-08-02 15:32:48 -04:00
parent a916a64fb7
commit e7ea632ea4
1 changed files with 3 additions and 2 deletions

View File

@ -141,9 +141,10 @@ private:
long parseNumber(string te)
{
import std.conv : to;
import std.string : removechars;
import std.regex : ctRegex, replaceAll;
string t = te.removechars("_uUlL");
enum re = ctRegex!("[_uUlL]", "");
string t = te.replaceAll(re, "");
if (t.length > 2)
{
if (t[1] == 'x' || t[1] == 'X')