core :: Text :: strip_numhead
self
if presentintrude import core::fixed_ints_text
assert "0xFFEF".strip_numhead == "FFEF"
assert "0o7364".strip_numhead == "7364"
assert "0b01001".strip_numhead == "01001"
assert "98".strip_numhead == "98"
# Removes the numeric head of `self` if present
#
# intrude import core::fixed_ints_text
# assert "0xFFEF".strip_numhead == "FFEF"
# assert "0o7364".strip_numhead == "7364"
# assert "0b01001".strip_numhead == "01001"
# assert "98".strip_numhead == "98"
private fun strip_numhead: Text do
if get_numhead != "" then return substring_from(2)
return self
end
lib/core/text/fixed_ints_text.nit:146,2--156,4