@staticmethod<EOL><INDENT>def _split_names(namestr):<DEDENT>
out = []<EOL>namestr = QUOTE_REGEX.sub('<STR_LIT>', namestr)<EOL>while True:<EOL><INDENT>namestr = namestr.strip('<STR_LIT>')<EOL>if '<STR_LIT:U+002C>' not in namestr:<EOL><INDENT>break<EOL><DEDENT>for nds2type in io_nds2.Nds2ChannelType.names() + ['<STR_LIT>']:<EOL><INDENT>if nds2type and '<STR_LIT>' % nds2type in namestr:<EOL><INDENT>try:<EOL><INDENT>channel, ctype, namestr = namestr.split('<STR_LIT:U+002C>', <NUM_LIT:2>)<EOL><DEDENT>except ValueError:<EOL><INDENT>channel, ctype = namestr.split('<STR_LIT:U+002C>')<EOL>namestr = '<STR_LIT>'<EOL><DEDENT>out.append('<STR_LIT>' % (channel, ctype))<EOL>break<EOL><DEDENT>elif nds2type == '<STR_LIT>' and '<STR_LIT:U+002C>' in namestr:<EOL><INDENT>channel, namestr = namestr.split('<STR_LIT:U+002C>', <NUM_LIT:1>)<EOL>out.append(channel)<EOL>break<EOL><DEDENT><DEDENT><DEDENT>if namestr:<EOL><INDENT>out.append(namestr)<EOL><DEDENT>return out<EOL>
Split a comma-separated list of channel names.