IsXsShort🔗
Check that
text is a valid xs:short.
We check that the text matches the pattern of xs:short, and
that the number is within the range of xs:short.
Code
return matches_xs_short(text) and _is_integer_in_range(text, "32768", "32767")