Giter Club home page Giter Club logo

mple-si's Introduction

Mple Si

English 简体中文


This is a SiMple C headers library. In the beginning its name was Macro C Utils and now renamed and not only based on macros.

MVector

this is a simple vector can be used like C arrays or C++ vectors. The increasing factor is 50%, that seems to be the same as msvc STL.

#include "mvector.h"
void try_vector(){
    Vector(int) vect = New_Vector(int);
    // C++ like
    Vector_push_back(vect, 0);
    Vector_insert(vect, 0, 0x20);
    printf("The first element: %d\n", *Vector_at(vect, 0));
    // C like
    printf("The second element: %d\n", vect[1]);
    // Release!!
    Vector_release(vect);
}

MString

a simple UTF-8 library with some python-like interfaces. NOT COMPLETED. Let's see how python process strings in one way:

for char in string:
    do_something(char)

Now you have the same chance to do it! Like this:

MStringIter iter = string; // Mstring string;
for (MUnicode chr; chr=mstr_one(iter); mstr_next(&iter))
    do_something(chr);     // type of arg0: MUnicode

This is only a part. Explore mstring.h for more!

RBTree

Don't se this though it's not completed.

mple-si's People

Contributors

thzrry avatar

Watchers

 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.