parameters: (root)
return_statement: return 'k' + filename
docstring: Get the name of the resource map based on the header file name.  E.g.,
    if our header filename is theme_resources.h, we name our resource map
    kThemeResourcesMap.
  
    |root| is the grd file root.
docstring_summary: Get the name of the resource map based on the header file name.  E.g.,
    if our header filename is theme_resources.h, we name our resource map
    kThemeResourcesMap.
docstring_tokens: Get the name of the resource map based on the header file name . E . g . if our header filename is theme_resources . h we name our resource map kThemeResourcesMap .
function: def GetMapName(root):
    '''Get the name of the resource map based on the header file name.  E.g.,
    if our header filename is theme_resources.h, we name our resource map
    kThemeResourcesMap.
  
    |root| is the grd file root.'''
    outputs = root.GetOutputFiles()
    rc_header_file = None
    for output in outputs:
      if 'rc_header' == output.GetType():
        rc_header_file = output.GetFilename()
    if not rc_header_file:
      raise Exception('unable to find resource header filename')
    filename = os.path.splitext(os.path.split(rc_header_file)[1])[0]
    filename = filename[0].upper() + filename[1:]
    while True:
      pos = filename.find('_')
      if pos == -1 or pos >= len(filename):
        break
      filename = filename[:pos] + filename[pos + 1].upper() + filename[pos + 2:]
    return 'k' + filename
function_tokens: def GetMapName ( root ) : outputs = root . GetOutputFiles ( ) rc_header_file = None for output in outputs : if 'rc_header' == output . GetType ( ) : rc_header_file = output . GetFilename ( ) if not rc_header_file : raise Exception ( 'unable to find resource header filename' ) filename = os . path . splitext ( os . path . split ( rc_header_file ) [ 1 ] ) [ 0 ] filename = filename [ 0 ] . upper ( ) + filename [ 1 : ] while True : pos = filename . find ( '_' ) if pos == - 1 or pos >= len ( filename ) : break filename = filename [ : pos ] + filename [ pos + 1 ] . upper ( ) + filename [ pos + 2 : ] return 'k' + filename