def _is_code_range(description: str) -> int:
  """
  determines whether an entry is a code point or the start/end of a range
  :param description: entry description, second field in line
  :return: -1 if it's a code point, 0 if it's first in a range, 1 if it's last
  """
  if len(description) > 4:
    if description[-4:] == "rst>":  # first in range, inclusive
      return 0
    if description[-4:] == "ast>":  # last in range, inclusive
      return 1
  return -1