parameters: (name)
return_statement: return ''.join(result)
docstring: Converts name to camel-case and returns it.
docstring_summary: Converts name to camel-case and returns it.
docstring_tokens: Converts name to camel - case and returns it .
function: def _ToCamelCase(name):
    """Converts name to camel-case and returns it."""
    capitalize_next = False
    result = []
  
    for c in name:
      if c == '_':
        if result:
          capitalize_next = True
      elif capitalize_next:
        result.append(c.upper())
        capitalize_next = False
      else:
        result += c
  
    # Lower-case the first letter.
    if result and result[0].isupper():
      result[0] = result[0].lower()
    return ''.join(result)
function_tokens: def _ToCamelCase ( name ) : capitalize_next = False result = [ ] for c in name : if c == '_' : if result : capitalize_next = True elif capitalize_next : result . append ( c . upper ( ) ) capitalize_next = False else : result += c # Lower-case the first letter. if result and result [ 0 ] . isupper ( ) : result [ 0 ] = result [ 0 ] . lower ( ) return '' . join ( result )