CfParser.hasRadixPrefix

private bool hasRadixPrefix(string v, string prefix) static @safe pure

Checks whether a numeric literal uses the given radix prefix, optionally after a sign.

Parameters

vThe raw literal
prefixThe two-character lowercase prefix to look for

Returns

true if the literal's magnitude starts with the prefix and has

at least one following digit.