'Collapses strings and chars on a line to simple "" or \'\' blocks.
We nix strings first so we\'re not fooled by text like \'"http://"\'
Args:
elided: The line being processed.
Returns:
The line with collapsed strings.'

@staticmethod
def _CollapseStrings(elided):

    if (not _RE_PATTERN_INCLUDE.match(elided)):
        elided = _RE_PATTERN_CLEANSE_LINE_ESCAPES.sub('', elided)
        elided = _RE_PATTERN_CLEANSE_LINE_SINGLE_QUOTES.sub("''", elided)
        elided = _RE_PATTERN_CLEANSE_LINE_DOUBLE_QUOTES.sub('""', elided)
    return elided
