Maxime Coste
|
87125e2707
|
Fix too strict assert and unneeded (lets hope) check
|
2015-02-03 23:39:04 +00:00 |
|
Maxime Coste
|
0b4ecef2d2
|
Rewrite line modifications, hopefully with easier to comprehend code
|
2015-01-31 23:50:24 +00:00 |
|
Maxime Coste
|
cc699faa54
|
Store direct ref_ptr<StringStorage> for WordDB lines
Storing a SharedString is a waste, we want the whole line.
|
2015-01-27 13:12:52 +00:00 |
|
Maxime Coste
|
b1281d225d
|
rename SharedString::Storage to StringStorage and use directly in Buffer
|
2015-01-19 19:31:56 +00:00 |
|
Maxime Coste
|
4fd92127c3
|
Add a no copy shared string constructor, used for map lookup, and intern words
|
2015-01-15 19:58:08 +00:00 |
|
Maxime Coste
|
8eef019cf8
|
Do not store lines to word in word db, just keep the old lines alive
|
2015-01-15 19:26:38 +00:00 |
|
Maxime Coste
|
76d806e98d
|
Replace InternedStrings with SharedString, shared_ptr based
|
2015-01-15 19:26:38 +00:00 |
|
Maxime Coste
|
dedb16bc73
|
Track some more memory
|
2015-01-11 19:28:03 +00:00 |
|
Maxime Coste
|
79de7ee717
|
Code refactoring in WordDB
|
2014-12-23 19:32:42 +00:00 |
|
Maxime Coste
|
ff1f4dcb5c
|
Minor cleanup
|
2014-12-22 20:08:53 +00:00 |
|
Maxime Coste
|
35e7a67c6a
|
Do not sort results of WordDB, simplify code
|
2014-12-11 13:14:57 +00:00 |
|
Maxime Coste
|
fa886ffaac
|
Refactor word_db, use an unordered map
|
2014-10-28 19:23:02 +00:00 |
|
Maxime Coste
|
b097bbbf52
|
WordDB: Use interned strings pointing directly into the buffer line data
|
2014-10-07 09:16:19 +01:00 |
|
Maxime Coste
|
d55d041c6a
|
Add support for interned strings
Use interned strings for Modification contents and word database.
Interned strings are guaranteed not to move in memory and are
reference counted.
|
2014-10-01 00:20:12 +01:00 |
|
Maxime Coste
|
5fc063c520
|
Insert word completion: Use subsequence matching if prefix failed
|
2014-07-30 19:58:34 +01:00 |
|
Maxime Coste
|
ed68d1ff28
|
utf8: use end of sequence iterators for more security
|
2014-07-05 12:10:06 +01:00 |
|
Maxime Coste
|
5b27b956ad
|
Rename utf8::utf8_iterator to utf8::iterator
|
2014-06-24 19:10:57 +01:00 |
|
Maxime Coste
|
19a5ed05a6
|
Revert "update Modification for WordDB"
This reverts commit 8f45623f98 .
Conflicts:
src/word_db.cc
|
2014-05-26 21:02:08 +01:00 |
|
Maxime Coste
|
95200d1de1
|
Avoid buffer end line in word_db update
|
2014-05-24 14:10:27 +01:00 |
|
Maxime Coste
|
8f45623f98
|
update Modification for WordDB
|
2014-05-21 23:35:11 +01:00 |
|
Maxime Coste
|
2f1388df7b
|
replace LineChangeWatcher with a free function compute_line_modifications
|
2014-05-14 21:19:19 +01:00 |
|
Maxime Coste
|
ddd8f8d392
|
LineChangeWatcher uses Buffer::changes_since rather than listening
|
2014-05-13 19:01:27 +01:00 |
|
Maxime Coste
|
daac1698d6
|
use StringView in word_db.cc
|
2014-05-11 12:51:37 +01:00 |
|
Maxime Coste
|
389308dfd8
|
Preserve current word in word completion if found elsewhere
If occurence count in the buffer if greater that one, do not
remove it from the matches.
|
2014-04-22 19:32:12 +01:00 |
|
Maxime Coste
|
ad818853a2
|
WordDB now uses a LineChangeWatcher based implementation
|
2014-01-27 19:51:58 +00:00 |
|
Maxime Coste
|
f6eaaf1e78
|
WordDB: use an ordered map for storing words
This way we can use lower_bound to find the first prefix match
in logarithm time and we know all other prefix matches will
follow.
|
2014-01-19 19:43:19 +00:00 |
|
Maxime Coste
|
997aadd33f
|
Word completion use a WordDB stored as a buffer value.
|
2014-01-16 22:07:42 +00:00 |
|