parameters: (self, index, pathdata)
docstring: Part of Path's text-command parsing algorithm; used internally.
docstring_summary: Part of Path's text-command parsing algorithm; used internally.
docstring_tokens: Part of Path s text - command parsing algorithm ; used internally .
function: def parse_boolean(self, index, pathdata):
          """Part of Path's text-command parsing algorithm; used internally."""
          index, pathdata = self.parse_whitespace(index, pathdata)
  
          if index >= len(pathdata):
              return None, index, pathdata
          first_digit = pathdata[index]
  
          if first_digit in ("0", "1"):
              index += 1
              return int(first_digit), index, pathdata
          else:
              return None, index, pathdata
function_tokens: def parse_boolean ( self , index , pathdata ) : index , pathdata = self . parse_whitespace ( index , pathdata ) if index >= len ( pathdata ) : return None , index , pathdata first_digit = pathdata [ index ] if first_digit in ( "0" , "1" ) : index += 1 return int ( first_digit ) , index , pathdata else : return None , index , pathdata