Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

NameParser.h

By: mpemburn on Feb 7th, 2013  |  syntax: Objective C  |  size: 0.55 KB  |  views: 82  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //
  2. //  NameParser.h
  3. //  Port of Greg Miernicki's PHP NameParse
  4. //
  5. //  Created by Mark Pemburn on 2/7/13.
  6. //  Copyright (c) 2013 Pemburnia LLC. All rights reserved.
  7. //
  8.  
  9. #import <Foundation/Foundation.h>
  10.  
  11. @interface NameParser : NSObject
  12.  
  13. @property (nonatomic, strong) NSString *prefix;
  14. @property (nonatomic, strong) NSString *firstName;
  15. @property (nonatomic, strong) NSString *middleName;
  16. @property (nonatomic, strong) NSString *lastName;
  17. @property (nonatomic, strong) NSString *suffix;
  18.  
  19. - (id) initWithFullName: (NSString *) fullName;
  20.  
  21. @end
clone this paste RAW Paste Data