GitHub - BuiltWithLogic/NSString-HYPWordExtractor: The easiest way of extracting all words from a string · GitHub
Skip to content

BuiltWithLogic/NSString-HYPWordExtractor

 
 

Repository files navigation

#NSString-HYPWordExtractor

Build Status

A super easy way of extracting all or only unique words from an NSString

Extracting unique words would look like this:

NSString *string = @"first_name last_name";
NSSet *uniqueWords = [string hyp_uniqueWords];

Would produce

uniqueWords: {(
    "first_name",
    "last_name"
)}

Extracting all words would look like this:

NSString *string = @"first_name last_name last_name";
NSArray *words = [string hyp_words];

Would produce

words: (
    "first_name",
    "last_name",
    "last_name"
)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

Hyper made this. We're a digital communications agency with a passion for good code, and if you're using this library we probably want to hire you.

License

NSString-HYPWordExtractor is available under the MIT license. See the LICENSE file for more info.

About

The easiest way of extracting all words from a string

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

  • Objective-C 82.1%
  • Ruby 17.9%