Merge pull request #5 from antonyho/master

Revert previous patch and submit a new fix for garbage UTF-8 bytes
Add isFullWidthMode and isEnglishMode for the input key function later
remove useless define
reformat
git: Ignore the built header
Remove commented out debug output
Remove trailing whitespace
Merge pull request #6 from bochecha/master

Pedantic cleanup
Add two string helper functions: startswith() and endswith()

These two will be needed to implement the wildcard support.
Implement wildcard support
Make sure wildcards are used properly

Wildcards are supposed to be surrounded by at least one character before
and one after.

If that's not the case, don't even try to match, just return an empty
vector.
Fix the build

In C++, functions must be defined before they are used.
Merge pull request #7 from bochecha/master

Wildcard support
Add full width Char and translate CangJie Code support. Remove some functions like isFullWidthMode, isEnglistMode. Let the upper cangjie engine to do the part.
Add wildcard key for cangjie function
Use a better runtime dir

We were using ./data, which doesn't make sense as we don't know the
current directory.

Instead, we now use the XDG_RUNTIME_DIR as defined by Freedesktop.org.

This was worked on with Tommy Cheng, Koala Yeung and Mathieu Bridon.
Fallback on /tmp for the runtime dir

Modern Linux systems should have the XDG_RUNTIME_DIR environment
variable set.

This lets us fallback on /tmp for all other systems.
Merge pull request #8 from bochecha/master

TEMP FIX. I will change the path to sth like mysql and pgsql using.
Remove useless line
Remove forgotten stuff

Commit c8613bb906c30d35800042f05c3dad6a7805438d removed this from the
cpp file, but left it in the header.

Let's drop it completely.