ppapi/generators/idl_thunk.py
def _StripApiName(api_name):
  """Strips Dev, Private, and Trusted suffixes from the API name."""
  if api_name.endswith('Trusted'):
    api_name = api_name[:-len('Trusted')]
  if api_name.endswith('_Dev'):
    api_name = api_name[:-len('_Dev')]
  if api_name.endswith('_Private'):
    api_name = api_name[:-len('_Private')]
  return api_name
Strips Dev, Private, and Trusted suffixes from the API name.
Strips Dev, Private, and Trusted suffixes from the API name.
Strips Dev Private and Trusted suffixes from the API name .
def _StripApiName(api_name):
  if api_name.endswith('Trusted'):
    api_name = api_name[:-len('Trusted')]
  if api_name.endswith('_Dev'):
    api_name = api_name[:-len('_Dev')]
  if api_name.endswith('_Private'):
    api_name = api_name[:-len('_Private')]
  return api_name
def _StripApiName ( api_name ) : if api_name . endswith ( 'Trusted' ) : api_name = api_name [ : - len ( 'Trusted' ) ] if api_name . endswith ( '_Dev' ) : api_name = api_name [ : - len ( '_Dev' ) ] if api_name . endswith ( '_Private' ) : api_name = api_name [ : - len ( '_Private' ) ] return api_name
Strips Dev, Private, and Trusted suffixes from the API name.
Strips Dev Private and Trusted suffixes from the API name .
"""Strips Dev, Private, and Trusted suffixes from the API name."""
api_name