moved isInt proc to jstrutils

This commit is contained in:
Andreas Rumpf 2017-04-08 10:08:07 +02:00
commit fec9de14af

View file

@ -16,3 +16,8 @@ proc `&`*(s: int): cstring {.importcpp: "((#)+'')", nodecl.}
proc `&`*(s: bool): cstring {.importcpp: "((#)+'')", nodecl.}
proc `&`*(s: cstring): cstring {.importcpp: "(#)", nodecl.}
proc isInt*(s: cstring): bool {.asmNoStackFrame.} =
asm """
return s.match(/^[0-9]+$/);
"""