// // NSString+InflectionSupport.h // // // Created by Ryan Daigle on 7/31/08. // Copyright 2008 yFactorial, LLC. All rights reserved. // @interface NSString (InflectionSupport) /** * Return the dashed form af this camelCase string: * * [@"camelCase" dasherize] //> @"camel-case" */ - (NSString *)dasherize; /** * Return the underscored form af this camelCase string: * * [@"camelCase" underscore] //> @"camel_case" */ - (NSString *)underscore; /** * Return the camelCase form af this dashed/underscored string: * * [@"camel-case_string" camelize] //> @"camelCaseString" */ - (NSString *)camelize; /** * Return a copy of the string suitable for displaying in a title. Each word is downcased, with the first letter upcased. */ - (NSString *)titleize; /** * Return a copy of the string with the first letter capitalized. */ - (NSString *)toClassName; @end