parameters: (in_file)
docstring: Parses a .txt file where the first column is a code point range
    and the second column is a property name.
    Sets binary properties to True,
    and other properties to the values in the third column.
docstring_summary: Parses a .txt file where the first column is a code point range
    and the second column is a property name.
    Sets binary properties to True,
    and other properties to the values in the third column.
docstring_tokens: Parses a . txt file where the first column is a code point range and the second column is a property name . Sets binary properties to True and other properties to the values in the third column .
function: def ParseNamedProperties(in_file):
    """Parses a .txt file where the first column is a code point range
    and the second column is a property name.
    Sets binary properties to True,
    and other properties to the values in the third column."""
    for data in ReadUCDLines(in_file, want_missing=True):
      if data[0] == "missing":
        SetDefaultValue(data[2][0], data[2][1])
      else:
        # type == "range"
        if len(data[4]) == 2:
          SetBinaryPropertyToTrue(data[4][1], data[2], data[3])
        else:
          SetPropertyValue(data[4][1], data[4][2], data[2], data[3])
function_tokens: def ParseNamedProperties ( in_file ) : for data in ReadUCDLines ( in_file , want_missing = True ) : if data [ 0 ] == "missing" : SetDefaultValue ( data [ 2 ] [ 0 ] , data [ 2 ] [ 1 ] ) else : # type == "range" if len ( data [ 4 ] ) == 2 : SetBinaryPropertyToTrue ( data [ 4 ] [ 1 ] , data [ 2 ] , data [ 3 ] ) else : SetPropertyValue ( data [ 4 ] [ 1 ] , data [ 4 ] [ 2 ] , data [ 2 ] , data [ 3 ] )