Commit Graph

23 Commits

Author SHA1 Message Date
Daniel James
b11a35b5ce Rename linkify_test to utils_test 2017-10-04 18:47:29 +01:00
Daniel James
ba64e37ae4 Rename file_path_to_url_test.cpp to path_test.cpp 2017-08-09 20:12:56 +01:00
Daniel James
433295308e Restore file_path_to_url_test 2017-08-09 20:12:55 +01:00
Daniel James
af70e87f44 Reimplement quickbook::cleanup to be dependency free
Specifically std::auto_ptr. The master branch of spirit still dependends
on std::auto_ptr, but develop doesn't, and hopefully that will be merged
eventually.

This implementation uses a linked list, which isn't the fastest
implementation but is simple to implement.
2017-05-20 17:09:33 +01:00
Daniel James
9d98653e9b Try to be smarter about adding links to section titles
When adding links, don't add them around other links. If there's
anything outside of existing links, they'll still get linked. Although,
maybe it would be better to only add link tags when the title doesn't
contain any links. This might be over-complicated and confusing.
2017-05-11 12:55:14 +01:00
Daniel James
066177a959 Move file_paths_to_url include include_paths.cpp
Which messes up testing. `include_paths.cpp` depends on `quickbook.cpp`
which depends on `program_options`. These kind of problems are mainly
with the use of globals, so I'll need to sort that out sooner or later.
2015-12-20 12:40:58 +00:00
Daniel James
93e334e25a Start to test file_path_to_url.
Not sure when (or if) I'll get round to doing windows paths, but it
seems to work okay there at the moment.
2015-12-19 14:08:31 +00:00
Daniel James
792dd11f7d Remove old BOOST_DETAIL_CONTAINER_FWD define. 2015-11-18 21:37:11 +00:00
Daniel James
9dd649ed9f Add glob support.
This is based on Rene's implementation, but I used my own glob function,
and adjusted a few things since it's now always using ascii. It would be
nice to support unicode, but that would require at the very least a
normalization library, and perhaps more than that.

[SVN r86699]
2013-11-14 19:19:54 +00:00
Daniel James
919e42eafb Better project names.
[SVN r84564]
2013-05-30 21:47:02 +00:00
Daniel James
a586cd7822 Source map tests.
[SVN r83117]
2013-02-24 11:21:50 +00:00
Daniel James
b2a5262c81 Convert to use boost::string_ref
[SVN r83116]
2013-02-24 11:21:31 +00:00
Daniel James
818aeade78 Quickbook: Use container forwarding for gcc/darwin.
It's usually safe. Especially since we're controlling the build.

[SVN r77830]
2012-04-08 15:27:48 +00:00
Daniel James
650c3088c2 Quickbook: Track position in code blocks and snippets.
[SVN r75614]
2011-11-22 23:45:37 +00:00
Daniel James
4dea2a8ad5 Quickbook: Keep files in memory, stop tracking position in iterators.
Files are now permanently loaded. Quickbook substrings are stored as
references into the file. Now positions are stored as iterators into
the original file, the line and column is calculated when messages are
output.

This doesn't have much effect on efficiency but it simplifies a few
things.

[SVN r75253]
2011-11-02 07:57:47 +00:00
Daniel James
3ae7265139 Quickbook: New version of id_manager. Fixes #1221.
This encapsulates more in the id and section handling code. Fixes a few
edge cases and separates implementation of the new and old section
handling code. Always normalizes and truncates generated ids in quickbook
1.6.

[SVN r75251]
2011-11-02 07:49:22 +00:00
Daniel James
a2b3c3aa04 Quickbook: Merge from trunk to quickbook-dev.
[SVN r73365]
2011-07-25 21:41:36 +00:00
Daniel James
bf1d753dba Merge tools directory from trunk.
[SVN r72698]
2011-06-20 19:19:56 +00:00
Daniel James
40821d55d8 Quickbook: Don't use null node in symbol table.
Since it isn't using a union for the value/middle pointer, there's no
need to have special terminating nodes.

[SVN r71063]
2011-04-07 00:15:38 +00:00
Daniel James
87d71d0633 Quickbook: Alternative tst that's cheaper to copy.
[SVN r70871]
2011-04-02 17:45:09 +00:00
Daniel James
abb793e3b6 Quickbook: Iterator tests. Equality operator for values.
The equality operator is pretty inefficient. Just for testing really.

[SVN r70565]
2011-03-26 11:13:07 +00:00
Daniel James
35cae039f4 Quickbook: support escapes in simple markup.
[SVN r70204]
2011-03-19 19:13:38 +00:00
Daniel James
d92609023f A value type for quickbook data.
[SVN r68882]
2011-02-15 00:20:10 +00:00