From 5cd8c2422511251ec0aab14df93ad86232865d78 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 21 Mar 2014 10:47:41 +0800 Subject: add probe_section_quick --- src/ZYEnhancedText.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ZYEnhancedText.h') 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); -- cgit