Code Monkey home page Code Monkey logo

libmultifinder's Introduction

libmultifinder

Cross-platform C library for searching multiple patterns in data.

Description

The libmultifinder library is cross-platform C library that allows searching a stream of data for multiple search patterns. The data to be searched is not to be loaded into memory, which make this a low memory footprint library. Only literal search patterns are supported, not wildcards or regular expressions. However, a case insensitive match is included.

Goal

The library was written with the following goals in mind:

  • written in standard C, but allows being used by C++
  • speed
  • small footprint
  • portable across different platforms (Windows, Mac, *nix)
  • no dependancies

Libraries

The following libraries are provided:

  • -lmultifinder - requires #include <multifinder.h>

Command line utilities

Some command line utilities are included:

  • multifinder_count - counts how much time a pattern appears
  • multifinder_replace - replaces patterns with other patterns

Dependancies

This project has no external depencancies.

Building from source

Requirements:

  • a C compiler like gcc or clang, on Windows MinGW and MinGW-w64 are supported
  • a shell environment, on Windows MSYS is supported
  • CMake version 2.6 or higher

Building with CMake

  • configure by running cmake -G"Unix Makefiles" (or cmake -G"MSYS Makefiles" on Windows) optionally followed by:
    • -DCMAKE_INSTALL_PREFIX:PATH=<path> Base path were files will be installed
    • -DBUILD_STATIC:BOOL=OFF - Don't build static libraries
    • -DBUILD_SHARED:BOOL=OFF - Don't build shared libraries
    • -DBUILD_TOOLS:BOOL=OFF - Don't build tools (only libraries)
  • build and install by running make install (or make install/strip to strip symbols)

For Windows prebuilt binaries are also available for download (both 32-bit and 64-bit)

License

libmultifinder is released under the terms of the MIT License (MIT), see LICENSE.txt.

This means you are free to use libmultifinder in any of your projects, from open source to commercial.

libmultifinder's People

Contributors

brechtsanders avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.