Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Jan 22, 2015
1 parent 71f0161 commit e60fddf
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libpinyin.ver
Expand Up @@ -9,6 +9,10 @@ LIBPINYIN {
pinyin_begin_add_phrases;
pinyin_iterator_add_phrase;
pinyin_end_add_phrases;
pinyin_begin_get_phrases;
pinyin_iterator_has_next_phrase;
pinyin_iterator_get_next_phrase;
pinyin_end_get_phrases;
pinyin_fini;
pinyin_mask_out;
pinyin_set_options;
Expand Down
35 changes: 35 additions & 0 deletions src/pinyin.h
Expand Up @@ -121,16 +121,51 @@ bool pinyin_iterator_add_phrase(import_iterator_t * iter,
*/
void pinyin_end_add_phrases(import_iterator_t * iter);

/**
* pinyin_begin_get_phrases:
* @context: the pinyin context.
* @index: the phrase index to be exported.
* @returns: the export iterator.
*
* Begin to get phrases.
*
*/
export_iterator_t * pinyin_begin_get_phrases(pinyin_context_t * context,
guint index);

/**
* pinyin_iterator_has_next_phrase:
* @iter: the export iterator.
* @returns: whether the iterator has the next phrase.
*
* Check whether the iterator has the next phrase.
*
*/
bool pinyin_iterator_has_next_phrase(export_iterator_t * iter);

/**
* pinyin_iterator_get_next_phrase:
* @iter: the export iterator.
* @phrase: the phrase string.
* @pinyin: the pinyin string.
* @count: the count of the phrase/pinyin pair, -1 means the default value.
* @returns: whether the get next phrase operation succeeded.
*
* Get a pair of phrase and pinyin with count.
*
*/
bool pinyin_iterator_get_next_phrase(export_iterator_t * iter,
gchar ** phrase,
gchar ** pinyin,
gint * count);

/**
* pinyin_end_get_phrases:
* @iter: the export iterator.
*
* End getting phrases.
*
*/
void pinyin_end_get_phrases(export_iterator_t * iter);

/**
Expand Down

0 comments on commit e60fddf

Please sign in to comment.