search for: swfdec_xml_unescap

Displaying 10 results from an estimated 10 matches for "swfdec_xml_unescap".

Did you mean: swfdec_xml_unescape
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...->format_new->left_margin = text->text->left_margin / 20; text->format_new->right_margin = text->text->right_margin / 20; commit eecddf540e4e6cc66af293061e2f1d58fa9e0843 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sun Oct 14 14:11:42 2007 +0300 Make swfdec_xml_unescape output &nbsp; different based on the version diff --git a/libswfdec/swfdec_html_parser.c b/libswfdec/swfdec_html_parser.c index 3c0ca04..cba7aa7 100644 --- a/libswfdec/swfdec_html_parser.c +++ b/libswfdec/swfdec_html_parser.c @@ -339,7 +339,7 @@ swfdec_text_field_movie_html_parse_text (Parser...
2007 Nov 02
0
2 commits - libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...dec_xml_node_new take GC'd string as an argument diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c index b64b16e..0613e41 100644 --- a/libswfdec/swfdec_xml.c +++ b/libswfdec/swfdec_xml.c @@ -643,8 +643,9 @@ swfdec_xml_parse_text (SwfdecXml *xml, SwfdecXmlNode *node, unescaped = swfdec_xml_unescape (SWFDEC_AS_OBJECT (xml)->context, text); g_free (text); child = swfdec_xml_node_new_no_properties ( - SWFDEC_AS_OBJECT (node)->context, SWFDEC_XML_NODE_TEXT, unescaped); - g_free (unescaped); + SWFDEC_AS_OBJECT (node)->context, SWFDEC_XML_NODE_TEXT, + swfdec_as_context_give_s...
2007 Nov 15
0
6 commits - libswfdec/compiler.c libswfdec/swfdec_as_date.h libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c test/dump.c test/render.c test/render-fast.c
...de *node, if (end == NULL) end = strchr (p, '\0'); - if (!xml->ignoreWhite || strspn (p, " \t\r\n") < (size_t)(end - p)) + if (!xml->ignoreWhite || strspn (p, " \t\r\n") < (gsize)(end - p)) { text = g_strndup (p, end - p); unescaped = swfdec_xml_unescape (SWFDEC_AS_OBJECT (xml)->context, text); commit 86770e723777a886832ca97836762c7a54af0937 Author: Benjamin Otte <otte at gnome.org> Date: Thu Nov 15 13:40:17 2007 +0100 no need for sys/time.h diff --git a/libswfdec/swfdec_as_date.h b/libswfdec/swfdec_as_date.h index 547b568..b09552...
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
...| 20 +++++++------------- libswfdec/swfdec_xml.c | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) New commits: commit cd8a1b3eb4192c51b5787f53071e17270b5d2cca Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Wed Oct 31 12:08:50 2007 +0200 Fix a mistake in swfdec_xml_unescape leading to invalid UTF-8 on version 5 diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c index f447e46..37174bc 100644 --- a/libswfdec/swfdec_xml.c +++ b/libswfdec/swfdec_xml.c @@ -133,7 +133,7 @@ swfdec_xml_unescape_len (SwfdecAsContext *cx, const char *orginal, if (!g_ascii_str...
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
...xml, SwfdecXmlNode *node, if (end == NULL) end = strchr (p, '\0'); - if (!ignoreWhite || strspn (p, " \t\r\n") < (gsize)(end - p)) + if (!ignore_white || strspn (p, " \t\r\n") < (gsize)(end - p)) { text = g_strndup (p, end - p); unescaped = swfdec_xml_unescape (SWFDEC_AS_OBJECT (xml)->context, text); @@ -705,7 +707,7 @@ swfdec_xml_parseXML (SwfdecXml *xml, const char *value) SwfdecAsObject *object; SwfdecXmlNode *node; const char *p; - gboolean ignoreWhite; + gboolean ignore_white; g_return_if_fail (SWFDEC_IS_XML (xml)); g_return_i...
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
...A prefix: null parentNode: TAG(1): 'unescaped' firstChild: undefined diff-tree 403d23918bdc4556bd3ce52819d204cd1ecfebf1 (from 00f4fb1c5beaf4f52cc0737ff57f552690f5feb9) Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Sat Oct 13 14:23:16 2007 +0300 Unescape &nbsp; in swfdec_xml_unescape diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c index e932bf8..a710f15 100644 --- a/libswfdec/swfdec_xml.c +++ b/libswfdec/swfdec_xml.c @@ -74,6 +74,7 @@ static EntityConversion xml_entities[] = { '\'', "&apos;" }, { '<', "&lt;&quot...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2007 Dec 23
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_character.c libswfdec/swfdec_external_interface.c libswfdec/swfdec.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...ernalInterface._unescapeXML (static)"); + const char *s; + + if (argc == 0 || + (s = swfdec_as_value_to_string (cx, &argv[0])) == SWFDEC_AS_STR_EMPTY) { + SWFDEC_AS_VALUE_SET_NULL (ret); + return; + } + + SWFDEC_AS_VALUE_SET_STRING (ret, swfdec_as_context_give_string (cx, + swfdec_xml_unescape_len (cx, s, strlen (s), FALSE))); } SWFDEC_AS_NATIVE (14, 7, swfdec_external_interface__jsQuoteString) @@ -92,17 +128,51 @@ swfdec_external_interface__jsQuoteString (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { - SWFDEC_STUB (&...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...DE_ELEMENT, name); + child = swfdec_xml_node_new_no_properties ( + SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, name); g_free (name); } @@ -640,8 +640,8 @@ swfdec_xml_parse_text (SwfdecXml *xml, SwfdecXmlNode *node, text = g_strndup (p, end - p); unescaped = swfdec_xml_unescape (SWFDEC_AS_OBJECT (xml)->context, text); g_free (text); - child = swfdec_xml_node_new (SWFDEC_AS_OBJECT (node)->context, - SWFDEC_XML_NODE_TEXT, unescaped); + child = swfdec_xml_node_new_no_properties ( + SWFDEC_AS_OBJECT (node)->context, SWFDEC_XML_NODE_TEXT, unescaped);...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...7,16 +67,23 @@ struct _SwfdecXmlClass { SwfdecXmlNodeClass xml_node_class; }; -GType swfdec_xml_get_type (void); +GType swfdec_xml_get_type (void); -char * swfdec_xml_escape (const char * orginal); -char * swfdec_xml_escape_len (const char * orginal, - gssize length); -char * swfdec_xml_unescape (SwfdecAsContext * cx, - const char * orginal); -char * swfdec_xml_unescape_len (SwfdecAsContext * cx, - const char * orginal, - gssize length); +char * swfdec_xml_escape (const char * orginal); +char * swfdec_xml_escape_len (const char * orginal, + gssize length)...