diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-10-09 19:15:05 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-10-09 19:15:05 +0200 |
| commit | 7a8366da2b5f8149b0bd316ae0905c8453b36f62 (patch) | |
| tree | 42a563ac6040b9d018cb2132481e974ce1a9149e /src/keys.hh | |
| parent | e1d4215159d39aa941b7846c46103d3690c2abcd (diff) | |
add a unicode.hh header for Codepoint related functions, s/utf8::Codepoint/Codepoint/
Diffstat (limited to 'src/keys.hh')
| -rw-r--r-- | src/keys.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/keys.hh b/src/keys.hh index 8355397f..76063eb6 100644 --- a/src/keys.hh +++ b/src/keys.hh @@ -2,7 +2,7 @@ #define keys_hh_INCLUDED #include <vector> -#include "utf8.hh" +#include "unicode.hh" #include "string.hh" namespace Kakoune @@ -17,7 +17,7 @@ struct Key Alt = 2, ControlAlt = 3 }; - enum NamedKey : utf8::Codepoint + enum NamedKey : Codepoint { // use UTF-16 surrogate pairs range Backspace = 0xD800, @@ -32,12 +32,12 @@ struct Key }; Modifiers modifiers; - utf8::Codepoint key; + Codepoint key; - constexpr Key(Modifiers modifiers, utf8::Codepoint key) + constexpr Key(Modifiers modifiers, Codepoint key) : modifiers(modifiers), key(key) {} - constexpr Key(utf8::Codepoint key) + constexpr Key(Codepoint key) : modifiers(Modifiers::None), key(key) {} constexpr bool operator==(const Key& other) const |
