summaryrefslogtreecommitdiffstats
path: root/utils/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-10-09 10:21:56 +0800
committerPeng Wu <alexepico@gmail.com>2010-10-09 10:21:56 +0800
commit08a4bfb28ff0690c4161b6744c6152a894db74e9 (patch)
tree065d203162ffe2f96337008ff75375ddf93e1cd4 /utils/storage
parent434f731dd015c2b7947a5f20a4c48df7dd5616e2 (diff)
downloadlibpinyin-08a4bfb28ff0690c4161b6744c6152a894db74e9.tar.gz
libpinyin-08a4bfb28ff0690c4161b6744c6152a894db74e9.tar.xz
libpinyin-08a4bfb28ff0690c4161b6744c6152a894db74e9.zip
add comments
Diffstat (limited to 'utils/storage')
-rw-r--r--utils/storage/tag_utility.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/storage/tag_utility.cpp b/utils/storage/tag_utility.cpp
index e566a83..a53a8fb 100644
--- a/utils/storage/tag_utility.cpp
+++ b/utils/storage/tag_utility.cpp
@@ -123,6 +123,7 @@ static gchar ** split_line(const gchar * line){
continue;
}else if ( unichar == quote ) {
/* handles "\"". */
+ /* skip the first '"'. */
begin = cur = g_utf8_next_char(cur);
while (*cur) {
unichar = g_utf8_get_char(cur);
@@ -135,7 +136,8 @@ static gchar ** split_line(const gchar * line){
cur = g_utf8_next_char(cur);
}
gchar * tmp = g_strndup( begin, cur - begin);
- /* TODO: switch to strdup_escape for \"->" transforming. */
+ /* TODO: switch to own strdup_escape implementation
+ for \"->" transforming. */
token = g_strdup_printf(tmp);
g_free(tmp);
} else {
@@ -143,6 +145,7 @@ static gchar ** split_line(const gchar * line){
while(*cur) {
unichar = g_utf8_get_char(cur);
if ( g_unichar_isgraph(unichar) ) {
+ /* next unichar */
cur = g_utf8_next_char(cur);
} else {
/* space and other characters handles. */