forked from enlightenment/enventor
Revert "enventor - used the quot macro to cope with the textblock change in the future. still textblock is not stable."
This reverts commit 5da9e96617
.
no more need.
This commit is contained in:
parent
5da9e96617
commit
4260d100f4
|
@ -252,8 +252,8 @@ part_name_thread_blocking(void *data, Ecore_Thread *thread EINA_UNUSED)
|
|||
char *p = utf8;
|
||||
char *end = utf8 + cur_pos;
|
||||
|
||||
const char *quot = QUOT;
|
||||
int quot_len = QUOT_LEN;
|
||||
const char *quot = "\"";
|
||||
int quot_len = 1; // strlen(""");
|
||||
const char *part = "part";
|
||||
int part_len = 4; //strlen("part");
|
||||
const char *parts = "parts";
|
||||
|
@ -387,8 +387,8 @@ parser_paragh_name_get(parser_data *pd, Evas_Object *entry)
|
|||
int cur_pos = elm_entry_cursor_pos_get(entry);
|
||||
if (cur_pos < 1) return 0;
|
||||
|
||||
const char *quot = QUOT;
|
||||
int quot_len = QUOT_LEN;
|
||||
const char *quot = "\"";
|
||||
int quot_len = 1; // strlen(""");
|
||||
char *cur = utf8;
|
||||
char *end = cur + cur_pos;
|
||||
char *stack[20];
|
||||
|
@ -471,8 +471,8 @@ Eina_Stringshare
|
|||
char *text = (char *) evas_object_textblock_text_markup_get(tb);
|
||||
char *p = text;
|
||||
|
||||
const char *quot = QUOT;
|
||||
int quot_len = QUOT_LEN; // strlen("\"");
|
||||
const char *quot = """;
|
||||
int quot_len = 6; // strlen(""");
|
||||
const char *group = "group";
|
||||
int group_len = 5; //strlen("group");
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@ indent_depth_get(indent_data *id, char *src, int pos)
|
|||
if (!src || (pos < 1)) return 0;
|
||||
|
||||
int depth = 0;
|
||||
const char *quot = QUOT;
|
||||
int quot_len = QUOT_LEN;
|
||||
const char *quot = "\"";
|
||||
int quot_len = 1; // strlen(""");
|
||||
char *cur = (char *) src;
|
||||
char *end = ((char *) src) + pos;
|
||||
|
||||
|
|
|
@ -331,12 +331,12 @@ color_apply(color_data *cd, const char *src, int length, Eina_Bool realtime)
|
|||
|
||||
if (realtime)
|
||||
{
|
||||
//escape string: \" ~ \"
|
||||
if (!strncmp(cur, QUOT, QUOT_LEN))
|
||||
//escape string: " ~ "
|
||||
if (!strncmp(cur, """, strlen(""")))
|
||||
{
|
||||
eina_strbuf_append_length(strbuf, prev, cur - prev);
|
||||
eina_strbuf_append(strbuf, QUOT);
|
||||
cur += QUOT_LEN;
|
||||
eina_strbuf_append(strbuf, """);
|
||||
cur += strlen(""");
|
||||
prev = cur;
|
||||
inside_string = !inside_string;
|
||||
continue;
|
||||
|
@ -345,10 +345,10 @@ color_apply(color_data *cd, const char *src, int length, Eina_Bool realtime)
|
|||
else
|
||||
{
|
||||
//escape string: " ~ "
|
||||
if (cur[0] == QUOT_S)
|
||||
if (cur[0] == '\"')
|
||||
{
|
||||
eina_strbuf_append_length(strbuf, prev, cur - prev);
|
||||
eina_strbuf_append_char(strbuf, QUOT_S);
|
||||
eina_strbuf_append_char(strbuf, '\"');
|
||||
cur++;
|
||||
prev = cur;
|
||||
inside_string = !inside_string;
|
||||
|
|
Loading…
Reference in New Issue