tools/unused-symbols-report.py
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<char16_t, std::char_traits<char16_t>, '
      'std::allocator<char16_t> >', 'std::u16string')
  sym = re.sub(r', std::allocator<\S+\s+>', '', sym)
  return sym
Attempt to prettify a C++ symbol by some basic heuristics.
Attempt to prettify a C++ symbol by some basic heuristics.
Attempt to prettify a C ++ symbol by some basic heuristics .
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<char16_t, std::char_traits<char16_t>, '
      'std::allocator<char16_t> >', 'std::u16string')
  sym = re.sub(r', std::allocator<\S+\s+>', '', sym)
  return sym
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<char16_t, std::char_traits<char16_t>, ' 'std::allocator<char16_t> >' , 'std::u16string' ) sym = re . sub ( r', std::allocator<\S+\s+>' , '' , sym ) return sym
Attempt to prettify a C++ symbol by some basic heuristics.
Attempt to prettify a C ++ symbol by some basic heuristics .
"""Attempt to prettify a C++ symbol by some basic heuristics."""
sym