Maxime Coste
|
7dd05d675c
|
RankedMatch constructor handles empty query just fine
|
2016-03-29 13:48:01 +01:00 |
|
Maxime Coste
|
c756f8f124
|
Move UsedLetters with RankedMatch
|
2016-03-25 20:38:27 +00:00 |
|
Maxime Coste
|
131b0a8298
|
Use ByteCoords directly for buffer insert/erase/replace
|
2016-03-16 13:59:30 +00:00 |
|
Maxime Coste
|
263ef0b149
|
Get rid of SharedString
|
2016-02-05 09:38:33 +00:00 |
|
Maxime Coste
|
ff6eacffa3
|
dont intern SharedStrings but StringDataPtr
|
2016-02-05 00:20:45 +00:00 |
|
Maxime Coste
|
89d22f3335
|
Move more logic into RankedMatch
|
2015-10-27 21:25:18 +00:00 |
|
Maxime Coste
|
c77cb7c777
|
Extract WordDB::RankedWord as RankedMatch in its own file
|
2015-10-22 19:49:08 +01:00 |
|
Maxime Coste
|
019b3235b0
|
Remove legacy WordDB::find_matching method
|
2015-10-21 20:16:36 +01:00 |
|
Maxime Coste
|
4f2584a091
|
Experiment with ranked word completion depending on word boundaries
|
2015-10-18 16:55:21 +01:00 |
|
Maxime Coste
|
fe704b9b84
|
Move line parsing and to Buffer.cc directly
|
2015-10-17 11:33:09 +01:00 |
|
Maxime Coste
|
27571a7716
|
Refactor utf8::iterator to be on the safe side
utf8::iterator now knows the iterator valid range, and pass
it to utf8 functions.
|
2015-09-23 19:39:21 +01:00 |
|
Maxime Coste
|
dd25dcc361
|
Move unit test functions in next to the code they are testing
|
2015-05-22 13:58:56 +01:00 |
|
Maxime Coste
|
a0cf75ec39
|
Tweak WordDB implementation
|
2015-03-10 13:50:25 +00:00 |
|
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 |
|