add comments
authorPeng Wu <alexepico@gmail.com>
Sat, 9 Oct 2010 02:21:56 +0000 (10:21 +0800)
committerPeng Wu <alexepico@gmail.com>
Sat, 9 Oct 2010 02:21:56 +0000 (10:21 +0800)
utils/storage/tag_utility.cpp

index e566a83..a53a8fb 100644 (file)
@@ -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. */