(self, s, unused_api)
return ret
Convert a wire format name into a suitable ObjC variable name.
Convert a wire format name into a suitable ObjC variable name.
Convert a wire format name into a suitable ObjC variable name .
def ToMemberName(self, s, unused_api):
    """Convert a wire format name into a suitable ObjC variable name."""
    if s.lower() == 'id':  # Special case for id
      return 'identifier'
    camel_s = utilities.CamelCase(s)
    ret = camel_s[0].lower() + camel_s[1:]
    if s.lower() in ObjCLanguageModel.RESERVED_MEMBER_NAMES:
      ret = '%sProperty' % ret
    return ret
def ToMemberName ( self , s , unused_api ) : if s . lower ( ) == 'id' : # Special case for id return 'identifier' camel_s = utilities . CamelCase ( s ) ret = camel_s [ 0 ] . lower ( ) + camel_s [ 1 : ] if s . lower ( ) in ObjCLanguageModel . RESERVED_MEMBER_NAMES : ret = '%sProperty' % ret return ret