diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-21 12:20:18 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-21 12:20:18 +0800 |
commit | da0c48d52aad4541d38d45ad3490b151029b7f26 (patch) | |
tree | 77f0a8757282645708a7f3623c277d1d17db4dfd /src/storage/chewing_key.h | |
parent | b381ab0f9d3aa3a607403f4981f32911869ea62e (diff) | |
download | libpinyin-da0c48d52aad4541d38d45ad3490b151029b7f26.tar.gz libpinyin-da0c48d52aad4541d38d45ad3490b151029b7f26.tar.xz libpinyin-da0c48d52aad4541d38d45ad3490b151029b7f26.zip |
re-factor code
Diffstat (limited to 'src/storage/chewing_key.h')
-rw-r--r-- | src/storage/chewing_key.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h index 64f61b0..721f566 100644 --- a/src/storage/chewing_key.h +++ b/src/storage/chewing_key.h @@ -120,6 +120,10 @@ struct ChewingKeyRest m_raw_begin = 0; m_raw_end = 0; } + + guint16 length() { + return m_raw_end - m_raw_begin; + } }; }; |