parameters: (sym)
return_statement: return sym
docstring: Attempt to prettify a C++ symbol by some basic heuristics.
docstring_summary: Attempt to prettify a C++ symbol by some basic heuristics.
docstring_tokens: Attempt to prettify a C ++ symbol by some basic heuristics .
function: def Unyuck(sym):
    """Attempt to prettify a C++ symbol by some basic heuristics."""
    sym = sym.replace('std::basic_string<char, std::char_traits<char>, '
                      'std::allocator<char> >', 'std::string')
    sym = sym.replace('std::basic_string<wchar_t, std::char_traits<wchar_t>, '
                      'std::allocator<wchar_t> >', 'std::wstring')
    sym = sym.replace('std::basic_string<unsigned short, '
                      'base::string16_char_traits, '
                      'std::allocator<unsigned short> >', 'string16')
    sym = re.sub(r', std::allocator<\S+\s+>', '', sym)
    return sym
function_tokens: def Unyuck ( sym ) : sym = sym . replace ( 'std::basic_string<char, std::char_traits<char>, ' 'std::allocator<char> >' , 'std::string' ) sym = sym . replace ( 'std::basic_string<wchar_t, std::char_traits<wchar_t>, ' 'std::allocator<wchar_t> >' , 'std::wstring' ) sym = sym . replace ( 'std::basic_string<unsigned short, ' 'base::string16_char_traits, ' 'std::allocator<unsigned short> >' , 'string16' ) sym = re . sub ( r', std::allocator<\S+\s+>' , '' , sym ) return sym