summaryrefslogtreecommitdiff
path: root/src/file.cc
AgeCommit message (Collapse)Author
2012-12-05fail nicely when trying to open a directoryMaxime Coste
2012-11-26fix crlf file readingMaxime Coste
2012-11-23rewrite file opening code using mmap, opening big files is much much fasterMaxime Coste
2012-11-22rename (hook|option)_manager to (hook|option)s.Maxime Coste
And Global(Hook|Option)Manager to Global(Hook|Option)s
2012-11-21Buffer: replace reset_undo_data with a NoUndo flagMaxime Coste
2012-11-20Buffer: replace Buffer::Type with Buffer::FlagsMaxime Coste
2012-11-20more exception safety with file descriptorsMaxime Coste
2012-10-16create_buffer_from file return nullptr on file not found instead of throwingMaxime Coste
2012-10-11use ByteCount instead of CharCount when we are really counting bytesMaxime Coste
(that is most of the time when we are not concerned with displaying)
2012-09-12use parse_filename when opening files or completing filenames so that ~ and ↵Maxime Coste
env vars are handled
2012-09-10Buffer: Allow inserting at the end when the inserted text ends with an end ↵Maxime Coste
of line Adapted other code in consequence and added unit tests so that this behavior is maintained.
2012-08-23use a strongly typed int CharCount for character countsMaxime Coste
2012-08-22use a strongly typed int LineCount for line countsMaxime Coste
2012-08-17fix create_buffer_from_file when file does not existsMaxime Coste
2012-08-14Buffer: stronger invariant, a buffer is never empty and all lines finish by '\n'Maxime Coste
2012-08-10Buffer: move back Modification as an implementation detailMaxime Coste
* Filters now only works on insertion and take directly the iterator and content * use Buffer::insert and Buffer::erase to modify a buffer
2012-08-10detect byte order mark in buffers, and write backMaxime Coste
2012-08-10support crlf line ending when reading and writing buffersMaxime Coste
2012-05-30include <unistd.h> in order to get read and writeMaxime Coste
2012-04-14Implement our own String class in preparation to encoding support.Maxime Coste
2012-04-14replace std::string references with StringMaxime Coste
2012-03-30Store buffer content in a list of linesMaxime Coste
Instead of a big std::string, buffer now store it's content in a list of lines. In order to achieve O(log(n)) random access, lines contains both their content and their offset since the start of the file, making binary search usable. BufferIterator now have a LineAndColumn coordinate into the buffer instead of an offset so that access is still O(1).
2012-03-26BufferManager no longer owns buffers, only register themMaxime Coste
2012-03-08rename BufferString to StringMaxime Coste
2012-01-29File: parse_filename function which handle ~ and environment variable in ↵Maxime Coste
filenames
2011-12-22whitespace fixMaxime Coste
2011-11-27File: extract read_file function which returns file content in a stringMaxime Coste
2011-10-07Buffer: add a type propertyMaxime Coste
2011-10-03File: fix write_buffer_to_fileMaxime Coste
2011-09-09assert: custom implementationMaxime Coste
2011-09-09exception: refactoringMaxime Coste
2011-09-06Buffer: accept initial content in constructorMaxime Coste
2011-09-02create_buffer_from_file: throw file_not_found instead of open_file_error ↵Maxime Coste
when ENOENT
2011-09-02Initial commitMaxime Coste