tools/json_schema_compiler/cpp_bundle_generator.py
def _FormatNameAsConstant(name):
  """Formats a name to be a C++ constant of the form kConstantName"""
  name = '%s%s' % (name[0].upper(), name[1:])
  return 'k%s' % re.sub('_[a-z]',
                        lambda m: m.group(0)[1].upper(),
                        name.replace('.', '_'))
Formats a name to be a C++ constant of the form kConstantName
Formats a name to be a C++ constant of the form kConstantName
Formats a name to be a C ++ constant of the form kConstantName
def _FormatNameAsConstant(name):
  name = '%s%s' % (name[0].upper(), name[1:])
  return 'k%s' % re.sub('_[a-z]',
                        lambda m: m.group(0)[1].upper(),
                        name.replace('.', '_'))
def _FormatNameAsConstant ( name ) : name = '%s%s' % ( name [ 0 ] . upper ( ) , name [ 1 : ] ) return 'k%s' % re . sub ( '_[a-z]' , lambda m : m . group ( 0 ) [ 1 ] . upper ( ) , name . replace ( '.' , '_' ) )
Formats a name to be a C++ constant of the form kConstantName
Formats a name to be a C ++ constant of the form kConstantName
"""Formats a name to be a C++ constant of the form kConstantName"""
name