GithubHelp home page GithubHelp logo

enigma-dev / enigmafilefunctions Goto Github PK

View Code? Open in Web Editor NEW
3.0 8.0 2.0 160 KB

A library for manipulating files concerned with the ENIGMA Development Environment.

License: GNU General Public License v3.0

C++ 100.00%

enigmafilefunctions's Introduction

ENIGMA File Functions

This is a library for abstract file interface. It includes a unicode string class, a directory and archive iteration interface, and a data storage abstraction layer for object serialization.

As of yet, it is incomplete.

Currently implemented:

  • utf8::utf8_string: An implementation of std::string for UTF-8 strings.
  • length(): Returns the length, in unicode characters, of this string.
  • size(): Returns the size, in bytes, of this string.
  • substdstr(): Returns an std::string between the given indices.
  • at(): Returns the unicode value of the character at the given index.
  • operator[]: Returns the unicode value of the character at the given index.
  • eff::directory: A common interface for reading zip files and directories.
  • first_file()/next_file(): Retrieve successive filenames, or empty string if no more.
  • first_directory()/next_directory(): Retrieve successive directories, or empty string if no more.
  • file_count()/directory_count(): Retrieve the number of files/directories contained.
  • enter(): Enter a subdirectory by its name.
  • enter_new(): Enter a subdirectory by its name, returning a new directory object.
  • leave(): Leave a previously entered subdirectory.
  • good()/is_open(): Return whether this directory was successfully opened.

To be done:

  • utf8::utf8_string
  • substr(): Should return the utf8::string between the given indices.
  • operator[]: Should allow an (expensive) assignment to a character
  • eff::directory
  • Needs coding and testing for Windows
  • Needs methods to actually open files for read/write
  • Needs methods to get and set file attributes/permissions
  • Data storage model
  • A common mechanism for reading and writing various types of data.

enigmafilefunctions's People

Contributors

joshdreamland avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gm-archive

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.