Files
RestKit/Code/Support/NSString+InflectionSupport.h
Jeremy Ellison 6a5ee2af7e Revert "Remove per-file copyrights"
This reverts commit 91e7c6bb5e.
2011-01-12 15:27:19 -05:00

43 lines
888 B
Objective-C

//
// 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