Declared in NSString+InflectionSupport.h
NSString+InflectionSupport.m

Tasks

  • – dasherize

    Return the dashed form af this camelCase string:

  • – underscore

    Return the underscored form af this camelCase string:

  • – camelize

    Return the camelCase form af this dashed/underscored string:

  • – titleize

    Return a copy of the string suitable for displaying in a title. Each word is downcased, with the first letter upcased.

  • – toClassName

    Return a copy of the string with the first letter capitalized.

Instance Methods

camelize

Return the camelCase form af this dashed/underscored string:

- (NSString *)camelize

Discussion

[@“camel-case_string” camelize] //> @“camelCaseString”

Declared In

NSString+InflectionSupport.h

dasherize

Return the dashed form af this camelCase string:

- (NSString *)dasherize

Discussion

[@“camelCase” dasherize] //> @“camel-case”

Declared In

NSString+InflectionSupport.h

titleize

Return a copy of the string suitable for displaying in a title. Each word is downcased, with the first letter upcased.

- (NSString *)titleize

Declared In

NSString+InflectionSupport.h

toClassName

Return a copy of the string with the first letter capitalized.

- (NSString *)toClassName

Declared In

NSString+InflectionSupport.h

underscore

Return the underscored form af this camelCase string:

- (NSString *)underscore

Discussion

[@“camelCase” underscore] //> @“camel_case”

Declared In

NSString+InflectionSupport.h