Tim Eves
ef548606aa
Move keyboardprocessor into it's new toplevel under common/engine
2018-10-25 13:43:28 +07:00
Tim Eves
2613ce4860
Relicense code from graphite 2 under MIT & add copyright headers.
2018-10-25 13:36:27 +07:00
Tim Eves
8c49047f54
context_shrink: Insert prefix correctly, don't reverse it.
2018-10-22 18:43:01 +07:00
Tim Eves
691168418b
context_items_to_utf16: Don't advance out iterator when no output occurs
2018-10-22 18:42:11 +07:00
Tim Eves
6b9f1f7257
context_to_utf16: Clarify unit in buf_size param to be utf16 codeunits.
2018-10-22 18:40:34 +07:00
Tim Eves
ccafc521bc
Fix failure to terminate bug in context_get
...
Need to correctly terminate the context_item presentation form array.
Also refactor the method onto the km_kbp_context adadaptor class where
it belongs.
2018-10-22 14:08:56 +07:00
Tim Eves
3c1762de58
context_shrink should return status
...
It can do allocation when prepending. Catch exception and turn into a
status code.
2018-10-22 14:05:55 +07:00
Tim Eves
4677d3d8b1
Fix bugs in context_api utf16 handling
...
It did not read the input string due an error in
utfcodec:_utf_sentinal_iterator and did not include the null terminator
in calculated size from context_to_utf16.
2018-10-19 15:54:55 +07:00
Tim Eves
bb99d60d07
Implement json << operators for all the exportable types
...
These will be needed by the state_to_json API call.
2018-10-05 11:29:36 +07:00
Tim Eves
abf7e63986
Refactor kbp_option_set into adaptor class for internal representation
...
Also pull trivial adaptors for keyboard an context into the internal
data structres header files.
2018-10-05 11:26:20 +07:00
Tim Eves
9a3e839907
Refactor out internal class backing opaque API objects
...
Move classes to separate compilation units so the can be used in the
state object
2018-10-02 14:40:31 +07:00
Tim Eves
ee01de937d
Update documentation for km_kbp_options API
...
And a couple of minior tidy ups for the union data structures and fixes
to bring implementation and docs into alignment.
2018-10-01 14:32:41 +07:00
Tim Eves
121e5a5370
Constness fixes for kbp_context API
2018-09-28 09:24:18 +07:00
Tim Eves
7ac2bb5afc
Initial commit of keyboardprocessor API
...
Header's and start of null keyboard processor for testing.
2018-09-27 15:35:16 +07:00