Latest 1.6.2
Homepage https://github.com/hyperoslo/NSString-HYPFormula
License MIT
Platforms ios 6.0, requires ARC
Dependencies NSString-HYPWordExtractor
Frameworks Foundation
Authors

Build Status

Creating and running string-based formulas have never been this easy

Number formulas


NSDictionary *values = @{
    @"hourly_pay"    : @150,
    @"work_per_week" : @32.5
};
NSNumber *result = [@"hourly_pay * work_per_week" hyp_runFormulaWithDictionary:values];
// result: 4875

String formulas


NSDictionary *values = @{
    @"first_name" : @"John",
    @"last_name"  : @"Appleseed"
};
NSString *result = [@"first_name last_name" hyp_runFormulaWithDictionary:values];
// result: "John Appleseed"

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-HYPFormula is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NSString-HYPFormula",
    "version": "1.6.2",
    "summary": "Creating and running string-based formulas have never been this easy",
    "description": "* Creating and running string-based formulas have never been this easy",
    "homepage": "https://github.com/hyperoslo/NSString-HYPFormula",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Hyper Interaktiv": "[email protected]"
    },
    "social_media_url": "https://twitter.com/hyperoslo",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/hyperoslo/NSString-HYPFormula.git",
        "tag": "1.6.2"
    },
    "source_files": "Source/",
    "frameworks": "Foundation",
    "requires_arc": true,
    "dependencies": {
        "NSString-HYPWordExtractor": []
    }
}

Pin It on Pinterest

Share This