search for: value_length

Displaying 3 results from an estimated 3 matches for "value_length".

2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...* text; GSList * tags_open; GSList * tags_closed; @@ -97,8 +99,9 @@ swfdec_text_field_movie_html_parse_comment (ParserData *data, const char *p) } static void -swfdec_text_field_movie_html_tag_set_attribute (ParserTag *tag, - const char *name, int name_length, const char *value, int value_length) +swfdec_text_field_movie_html_tag_set_attribute (ParserData *data, + ParserTag *tag, const char *name, int name_length, const char *value, + int value_length) { SwfdecAsValue val; SwfdecAsObject *object; @@ -184,10 +187,24 @@ swfdec_text_field_movie_html_tag_set_attribute (ParserTag *...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...tml_tag_set_attribute (ParserData *data, SwfdecAsValue val; SwfdecAsObject *object; + g_return_if_fail (data != NULL); + g_return_if_fail (tag != NULL); + g_return_if_fail (name != NULL); + g_return_if_fail (name_length >= 0); + g_return_if_fail (value != NULL); + g_return_if_fail (value_length >= 0); + object = SWFDEC_AS_OBJECT (tag->format); SWFDEC_AS_VALUE_SET_STRING (&val, swfdec_as_context_give_string ( object->context, g_strndup (value, value_length))); @@ -213,7 +223,9 @@ swfdec_text_field_movie_html_parse_attribute (ParserData *data, ParserTag *tag, const c...
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
...rser.c @@ -113,6 +113,24 @@ swfdec_text_field_movie_html_tag_set_att { swfdec_as_object_set_variable (object, SWFDEC_AS_STR_size, &val); } + else if (name_length == 5 && !g_strncasecmp (name, "color", 5)) + { + SwfdecAsValue val_number; + + if (value_length != 7 || *value != '#') { + SWFDEC_AS_VALUE_SET_NUMBER (&val_number, 0); + } else { + int number; + char *tail; + + number = g_ascii_strtoll (value + 1, &tail, 16); + if (tail != value + 7) + number = 0; + SWFDEC_AS_VALUE_SET_NUMBER (&val_number, number); + } + +...