Displaying 11 results from an estimated 11 matches for "ignorewhit".
Did you mean:
ignorewhite
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
..._ (h) = _global.XML
+ __proto__ (hp) = _global.XML.prototype
+ constructor (h) = _global.XML
+
+test_set: <b id="test" />
+caller: null, callee: [type Function]
+<a><b id="test" /></a>
+done
+<a><b id="test" /></a>
+
+changed ignoreWhite to: true
+ <a> <b id="change" /></a>
+changed ignoreWhite to: false
+ <a> <b id="change" /> <c /> <d id="change" /></a>
+done
+ <a> <b id="change" /> <c /> <d id="change" /> &l...
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
...--git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c
index 9edf4d0..0f30d7e 100644
--- a/libswfdec/swfdec_xml.c
+++ b/libswfdec/swfdec_xml.c
@@ -639,7 +639,7 @@ swfdec_xml_parse_text (SwfdecXml *xml, SwfdecXmlNode *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 86770e723777a886832ca978...
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
...ex 8a5c059..0000000
--- a/test/trace/xml-constructor-properties-5.swf.trace
+++ /dev/null
@@ -1,60 +0,0 @@
-Before anything:
-XML: __constructor__: false
-XMLReal: __constructor__: true
-XML: contentType: false
-XMLReal: contentType: false
-XML: docTypeDecl: false
-XMLReal: docTypeDecl: false
-XML: ignoreWhite: false
-XMLReal: ignoreWhite: false
-XML: loaded: false
-XMLReal: loaded: false
-XML: status: false
-XMLReal: status: false
-XML: xmlDecl: false
-XMLReal: xmlDecl: false
-After creating an XML object:
-XML: __constructor__: false
-XMLReal: __constructor__: true
-XML: contentType: false
-XMLReal: c...
2007 Oct 11
0
2 commits - libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...SWFDEC_XML (object)->status = (int) d;
}
static const char *
diff --git a/libswfdec/swfdec_xml.h b/libswfdec/swfdec_xml.h
index c06562d..e0e8cc8 100644
--- a/libswfdec/swfdec_xml.h
+++ b/libswfdec/swfdec_xml.h
@@ -55,7 +55,7 @@ struct _SwfdecXml {
SwfdecXmlNode xml_node;
gboolean ignoreWhite;
- SwfdecXmlParseStatus status;
+ int status;
const char *xmlDecl;
const char *docTypeDecl;
diff-tree 90c5b254605f93fe97116e5032627075a1013957 (from cd10b0bf08549c0002ff4dfc996736aa773eca68)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Oct 11 23:06:36 2007 +0200
P...
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
....trace
index b450ce6..924e689 100644
--- a/test/trace/xml-parse-6.swf.trace
+++ b/test/trace/xml-parse-6.swf.trace
@@ -167,8 +167,8 @@ childNodes: 0:
Loading: xml-parse-2.xml
Success: true
---
-788
-788
+820
+820
docTypeDecl: <!DOCTYPE foo [ <!ENTITY greeting "hello"> ]>
ignoreWhite: true
loaded: true
@@ -301,7 +301,7 @@ nextSibling: undefined
previousSibling: TAG(1): 'empty_element'
childNodes: 0:
---
-attributes: 1: entities%5Fattribute=%3C%20%3E%20%22%20%27%20%26
+attributes: 1: entities%5Fattribute=%3C%20%3E%20%22%20%27%20%26%20%C2%A0
localName: entities
na...
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
..._OBJECT (xml)->context, p + 1,
+ end - (p + 1));
value = swfdec_as_context_give_string (SWFDEC_AS_OBJECT (node)->context,
unescaped);
SWFDEC_AS_VALUE_SET_STRING (&val, value);
@@ -638,7 +638,7 @@ swfdec_xml_parse_text (SwfdecXml *xml, SwfdecXmlNode *node,
if (!xml->ignoreWhite || strspn (p, " \t\r\n") < (size_t)(end - p))
{
text = g_strndup (p, end - p);
- unescaped = swfdec_xml_unescape (text);
+ unescaped = swfdec_xml_unescape (SWFDEC_AS_OBJECT (xml)->context, text);
g_free (text);
child = swfdec_xml_node_new (SWFDEC_AS_OBJECT (...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...0000..5e24f0c
Binary files /dev/null and b/test/trace/xml-parse-8.swf differ
diff --git a/test/trace/xml-parse-8.swf.trace b/test/trace/xml-parse-8.swf.trace
new file mode 100644
index 0000000..924e689
--- /dev/null
+++ b/test/trace/xml-parse-8.swf.trace
@@ -0,0 +1,860 @@
+### Running tests without ignoreWhite...
+Loading: xml-parse-1.xml
+Success: true
+---
+452
+452
+docTypeDecl: %3C%21DOCTYPE%0A%20html%20PUBLIC%20%22%2D%2F%2FW3C%2F%2FDTD%20XHTML%201%2E1%2F%2FEN%22%0A%20%22http%3A%2F%2Fwww%2Ew3%2Eorg%2FTR%2Fxhtml11%2FDTD%2Fxhtml11%2Edtd%22%3E
+ignoreWhite: true
+loaded: true
+status: 0
+xmlDecl: <?...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...ndefined members to childNodes array
Add XML parsing test
LoadVars test was missing from Makefile.am
Fix parseXML's ASnative number. Add createElement and createTextNode functions
Add swfdec_as_array_set_value, fix assert in swfdec_as_array_set_range
Make XML's ignoreWhite property actually work
Add testing for ignoreWhite to XML parsing test
XMLNode: Use separate childNodes and internal children arrays, other cleanups
Remove non-ascii character from XML escape test
Fix various String functions and Array sort crashing when called on other obj...
2007 Dec 28
0
4 commits - libswfdec/swfdec_external_interface.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...ame + "\" returntype=\"xml\">" + flash.external.ExternalInterface._argumentsToXML (arguments) + "</invoke>";
+ result = flash.external.ExternalInterface._callOut (request);
+ }
+ if (result == null)
+ return null;
+
+ var xml = new XML ();
+ xml.ignoreWhite = true;
+ xml.parseXML (result);
+ return flash.external.ExternalInterface._toAS (xml.firstChild);
+};
+
+flash.external.ExternalInterface._callIn = function (instance, method, request) {
+ var xml = new XML();
+ xml.ignoreWhite = true;
+ xml.parseXML (request);
+ var args = null;
+ for (va...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...= object
__proto__ (hp) = _global.XMLNode.prototype
constructor (hp) = _global.XMLNode
-local.d.lastChild = local.d.childNodes.0
+local.d.lastChild = object
__proto__ (hp) = _global.XMLNode.prototype
constructor (hp) = _global.XMLNode
local.d.localName = null
@@ -89,7 +89,7 @@ local.d.ignoreWhite = boolean : false
local.d.loaded = undefined
local.d.status = number : 0
local.d.xmlDecl = undefined
-local.e = local.d.childNodes.0
+local.e = object
__proto__ (hp) = _global.XMLNode.prototype
constructor (hp) = _global.XMLNode
local.e.attributes = object
@@ -99,10 +99,10 @@ local.e.chi...
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
..._add (SWFDEC_AS_OBJECT (xml), context, size);
+ swfdec_as_object_get_variable (context->global, SWFDEC_AS_STR_XML, &val);
+ if (SWFDEC_AS_VALUE_IS_OBJECT (&val)) {
+ swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (xml),
+ SWFDEC_AS_VALUE_GET_OBJECT (&val));
+ }
+
+ xml->ignoreWhite = ignore_white;
+
+ swfdec_xml_node_init_values (SWFDEC_XML_NODE (xml),
+ SWFDEC_XML_NODE_ELEMENT, SWFDEC_AS_STR_EMPTY);
+
+ SWFDEC_AS_VALUE_SET_STRING (&xml->contentType,
+ SWFDEC_AS_STR_application_x_www_form_urlencoded);
+
+ if (str != NULL)
+ swfdec_xml_parseXML (xml, st...