Version 13 (modified by psychs, 6 years ago)

--

CocoaOniguruma

CocoaOniguruma is an Objective-C binding of Oniguruma regular expression engine.

It's simple and tiny compared to the other bindings.

Download

git clone git://github.com/psychs/cocoaoniguruma.git

How to use

CocoaOniguruma is provided as assorted source files primarily.

Follow the steps to use CocoaOniguruma in your project.

  1. Copy "core" directory into your project directory with name "CocoaOniguruma".
  2. Open your project by Xcode.
  3. Add all .h, .c and .m files under "Classes".
  4. Import the header file, so you can use CocoaOniguruma.
    #import "OnigRegexp.h"
    

How to use as a Framework

You can see "framework" directory next to "core" directory.

  1. Build the project under "framework" directory.
  2. Copy "CocoaOniguruma.framework" into your project.
  3. Open your project by Xcode.
  4. Add the framework to your project under "Frameworks/Other Frameworks".
  5. Open "Targets" in the project tree.
  6. Double click on the application target and add a "New Copy Files Build Phase".
  7. Drag "CocoaOniguruma.framework" into the new "Copy Files" phase.
  8. Import the header file, so you can use CocoaOniguruma.
    #import "CocoaOniguruma/OnigRegexp.h"
    

The Author

License

The revised BSD license.

See also the Oniguruma's COPYING file.