Displaying 4 results from an estimated 4 matches for "g_utf8_strdown".
2007 Oct 18
0
libswfdec/swfdec_url.c
...ec_url_new (const char *string)
url->url = g_strdup (string);
s = strstr (string, "://");
if (s == NULL) {
- SWFDEC_ERROR ("URL %s has no protocol", string);
+ SWFDEC_INFO ("URL %s has no protocol", string);
return url;
}
url->protocol = g_utf8_strdown (string, s - string);
2007 Aug 24
0
7 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_string.c test/trace
...void
swfdec_as_string_toLowerCase (SwfdecAsContext *cx, SwfdecAsObject *object,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
- const char *string = swfdec_as_object_to_string (cx, object);
+ const char *string = swfdec_as_string_object_to_string (cx, object);
char *s;
s = g_utf8_strdown (string, -1);
@@ -513,7 +526,7 @@ void
swfdec_as_string_toUpperCase (SwfdecAsContext *cx, SwfdecAsObject *object,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
- const char *string = swfdec_as_object_to_string (cx, object);
+ const char *string = swfdec_as_string_object_to_string...
2007 Jun 12
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
...owerCase (SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
+swfdec_as_string_toLowerCase (SwfdecAsContext *cx, SwfdecAsObject *object,
+ guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
SwfdecAsString *string = SWFDEC_AS_STRING (object);
char *s;
s = g_utf8_strdown (string->string, -1);
- SWFDEC_AS_VALUE_SET_STRING (ret, swfdec_as_context_get_string (object->context, s));
+ SWFDEC_AS_VALUE_SET_STRING (ret, swfdec_as_context_get_string (cx, s));
g_free (s);
}
static void
-swfdec_as_string_toUpperCase (SwfdecAsObject *object, guint argc, SwfdecAs...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...x 5b99d94..2d01827 100644
--- a/libswfdec/swfdec_url.c
+++ b/libswfdec/swfdec_url.c
@@ -89,7 +89,7 @@ swfdec_url_new (const char *string)
SWFDEC_ERROR ("URL %s has no protocol", string);
return url;
}
- url->protocol = g_strndup (string, s - string);
+ url->protocol = g_utf8_strdown (string, s - string);
string = s + 3;
s = strchr (string, '/');
if (s == NULL) {
@@ -138,7 +138,7 @@ swfdec_url_new_relative (const SwfdecURL *url, const char *string)
g_string_append (str, "://");
if (url->host)
g_string_append (str, url->host);
- if (s...