tools/json_to_struct/json_to_struct.py
def _GenerateHeaderGuard(h_filename):
  """Generates the string used in #ifndef guarding the header file.
  """
  result = re.sub(u'[%s\\\\.]' % os.sep, u'_', h_filename.upper())
  return re.sub(u'^_*', '', result) + u'_'  # Remove leading underscores.
Generates the string used in #ifndef guarding the header file.
  
Generates the string used in #ifndef guarding the header file.
Generates the string used in #ifndef guarding the header file .
def _GenerateHeaderGuard(h_filename):
  result = re.sub(u'[%s\\\\.]' % os.sep, u'_', h_filename.upper())
  return re.sub(u'^_*', '', result) + u'_'  
def _GenerateHeaderGuard ( h_filename ) : result = re . sub ( u'[%s\\\\.]' % os . sep , u'_' , h_filename . upper ( ) ) return re . sub ( u'^_*' , '' , result ) + u'_'
Generates the string used in #ifndef guarding the header file.
Generates the string used in #ifndef guarding the header file .
"""Generates the string used in #ifndef guarding the header file.
  """ # Remove leading underscores.
h_filename