summaryrefslogtreecommitdiffstats
path: root/src/ZYEnhancedText.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-03-21 10:47:41 +0800
committerPeng Wu <alexepico@gmail.com>2014-03-21 10:48:13 +0800
commit5cd8c2422511251ec0aab14df93ad86232865d78 (patch)
tree0ff185f0e4cfaf8128aac12332c05cfed87bdfe4 /src/ZYEnhancedText.h
parent1ec346ec3ce6dc84dfca3538e14f373c3682869d (diff)
downloadibus-libzhuyin-5cd8c2422511251ec0aab14df93ad86232865d78.tar.gz
ibus-libzhuyin-5cd8c2422511251ec0aab14df93ad86232865d78.tar.xz
ibus-libzhuyin-5cd8c2422511251ec0aab14df93ad86232865d78.zip
add probe_section_quick
Diffstat (limited to 'src/ZYEnhancedText.h')
-rw-r--r--src/ZYEnhancedText.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ZYEnhancedText.h b/src/ZYEnhancedText.h
index 04559d0..214b31e 100644
--- a/src/ZYEnhancedText.h
+++ b/src/ZYEnhancedText.h
@@ -31,8 +31,6 @@ typedef enum {
SYMBOL_SECTION
} section_t;
-typedef String::const_iterator iterator_t;
-
/* all enhanced text should loop from the start to get the correct position. */
size_t
get_enhanced_text_length (const String & enhanced_text);
@@ -42,6 +40,9 @@ get_enhanced_text_length (const String & enhanced_text);
section_t
probe_section (const String & enhanced_text, size_t offset, size_t & pos);
+section_t
+probe_section_quick (const String & enhanced_text, size_t pos);
+
bool
get_phonetic_section (const String & enhanced_text,
size_t start_pos, size_t & end_pos, String & section);