___ int end = node->end - node->off - 1; while (len < end && g_ascii_iscntrl(attr[len])) len++; while (len < end && g_ascii_iscntrl(attr[end])) end--; if (end-len >= 2)
{ text[len] = fill[0]; text[end] = fill[2]; }
____; }
else if (! fill[4])
{ /* leading twochar + trailing twochar */ while (len)
___ int end = node->end - node->off - 1; while (len < end && g_ascii_iscntrl(attr[len])) len++; while (len < end && g_ascii_iscntrl(attr[end])) end--; if (end-len >= 4 && ! g_ascii_iscntrl(attr[len+1]) && ! g_ascii_iscntrl(attr[end-1]))
___ int end = node->end - node->off - 1; while (len < end && g_ascii_iscntrl(attr[len])) len++; while (len < end && g_ascii_iscntrl(attr[end])) end--; if (end-len >= 4 && ! g_ascii_iscntrl(attr[len+1]) && ! g_ascii_iscntrl(attr[end-1]))
___ int end = node->end - node->off - 1; while (len < end && g_ascii_iscntrl(attr[len])) len++; while (len < end && g_ascii_iscntrl(attr[end])) end--; if (end-len >= 4 && ! g_ascii_iscntrl(attr[len+1]) && ! g_ascii_iscntrl(attr[end-1]))
/** save the text in the selected nodes to the new attribute - and blank the text area. The text can be pasted back from the attribute with its */voidxml_path_pcre_text_to_attr (xml_GNode* tree, const gchar* nodesRE, const gchar* attrib, const gchar* fill)
{ g_return_if_fail (tree); g_return_if_fail (attrib); ___ Data data =
/** get the attribute from the selected nodes and paste the string back to the text area - as this is the inverse of xml_path_pcre_text_to_attr. */voidxml_path_pcre_text_restore (xml_GNode* tree, const gchar* nodesRE, const gchar* attrib)