enventor - implementing template code inserting feature

This commit is contained in:
ChunEon Park 2013-09-01 23:28:57 +09:00
parent d9d9262807
commit 704a243d50
1 changed files with 19 additions and 4 deletions

View File

@ -365,15 +365,30 @@ parser_current_paragh_name_get(parser_data *pd, Evas_Object *entry)
if (!utf8) return;
int cur_pos = elm_entry_cursor_pos_get(entry);
if (cur_pos < 1) return 0;
char *p = utf8;
char *end = utf8 + cur_pos;
while (p <= end)
const char *quot = "\"";
int quot_len = 1; // strlen("&quot;");
char *cur = utf8;
char *end = cur + cur_pos;
/*
while (cur <= end)
{
//Skip "" range
if (*cur == *quot)
{
cur += quot_len;
cur = strstr(cur, quot);
if (!cur) return depth;
cur += quot_len;
}
if (*cur == '{') depth++;
else if (*cur == '}') depth--;
cur++;
}
*/
}
void