BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #26952同步于 2009/8/5
CPP机器人发帖

gtk里面的函数g_markup_escape_text ()是什么作用阿?

camelBUPT
2009/8/5镜像同步0 回复
英文硬是没看懂。。。郁闷。。。 g_markup_escape_text () gchar* g_markup_escape_text (const gchar *text, gssize length); Escapes text so that the markup parser will parse it verbatim. Less than, greater than, ampersand, etc. are replaced with the corresponding entities. This function would typically be used when writing out a file to be parsed with the markup parser. Note that this function doesn't protect whitespace and line endings from being processed according to the XML rules for normalization of line endings and attribute values. Note also that if given a string containing them, this function will produce character references in the range of &x1; .. &x1f; for all control sequences except for tabstop, newline and carriage return. The character references in this range are not valid XML 1.0, but they are valid XML 1.1 and will be accepted by the GMarkup parser. text : some valid UTF-8 text length : length of text in bytes, or -1 if the text is nul-terminated Returns : a newly allocated string with the escaped text
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。