search for: gunichar

Displaying 8 results from an estimated 8 matches for "gunichar".

2006 Apr 05
1
build error : xapian-core-0.9.4_svn6707 with UTF-8 patch
.../gerror.h:71: error: `G_END_DECLS' does not name a type /usr/include/glib-2.0/glib/gunicode.h:31: error: `guint16' does not name a type /usr/include/glib-2.0/glib/gunicode.h:114: error: `G_CONST_RETURN' was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:118: error: `gunichar' was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:118: error: expected `,' or `;' before "G_GNUC_CONST" /usr/include/glib-2.0/glib/gunicode.h:119: error: `gunichar' was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:119: error: expe...
2006 Mar 03
1
xapian-0.9.4 queryparser build errors after applying utf-8 patch
...lib/gerror.h:71: error: `G_END_DECLS' does not name a type /usr/include/glib-2.0/glib/gunicode.h:31: error: `guint16' does not name a type /usr/include/glib-2.0/glib/gunicode.h:114: error: `G_CONST_RETURN' was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:118: error: `gunichar' was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:118: error: expected `,' or `;' before "G_GNUC_CONST" /usr/include/glib-2.0/glib/gunicode.h:119: error: `gunichar' was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:119: error: expecte...
2007 Sep 02
0
libswfdec/swfdec_as_array.c libswfdec/swfdec_as_string.c
...int i; const char *s, *t; + if (argc < 1) + return; + i = swfdec_as_value_to_integer (object->context, &argv[0]); if (i < 0) { SWFDEC_AS_VALUE_SET_STRING (ret, SWFDEC_AS_STR_EMPTY); @@ -177,6 +186,9 @@ swfdec_as_string_charCodeAt (SwfdecAsCon const char *s; gunichar c; + if (argc < 1) + return; + i = swfdec_as_value_to_integer (cx, &argv[0]); if (i < 0) { SWFDEC_AS_VALUE_SET_NUMBER (ret, NAN); @@ -289,9 +301,10 @@ void swfdec_as_string_toString (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, Swfde...
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
...(SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) +swfdec_as_string_charCodeAt (SwfdecAsContext *cx, SwfdecAsObject *object, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) { SwfdecAsString *string = SWFDEC_AS_STRING (object); int i; const char *s; gunichar c; - i = swfdec_as_value_to_integer (object->context, &argv[0]); + i = swfdec_as_value_to_integer (cx, &argv[0]); if (i < 0) { SWFDEC_AS_VALUE_SET_NUMBER (ret, NAN); return; } s = swfdec_as_str_nth_char (string->string, i); if (*s == 0) { - if (object-&...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...convert (s, -1, "LATIN1", "UTF-8", NULL, NULL, NULL); -static void -swfdec_action_char_to_ascii (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) -{ - SwfdecAsValue *val = swfdec_as_stack_peek (cx, 1); - const char *s = swfdec_as_value_to_string(cx, val); - gunichar *uni; - - uni = g_utf8_to_ucs4_fast (s, -1, NULL); - if (uni == NULL) { - /* This should never happen, everything is valid UTF-8 in here */ - g_warning ("conversion of character %s failed", s); - SWFDEC_AS_VALUE_SET_INT (val, 0); + if (ascii == NULL) { + /* This can h...
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
...dec_as_string_charCodeAt (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); int i; const char *s; gunichar c; @@ -309,7 +322,7 @@ swfdec_as_string_split_5 (SwfdecAsContex const char *str, *end, *delim; int count; - str = swfdec_as_object_to_string (cx, object); + str = swfdec_as_string_object_to_string (cx, object); arr = SWFDEC_AS_ARRAY (swfdec_as_array_new (cx)); if (arr == NULL)...
2007 Jul 02
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_interpret.c test/trace
...val, (guchar) ascii[0]); + g_free (ascii); + } +} + +static void +swfdec_action_char_to_ascii (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + SwfdecAsValue *val = swfdec_as_stack_peek (cx->frame->stack, 1); + const char *s = swfdec_as_value_to_string(cx, val); + gunichar *uni; + + uni = g_utf8_to_ucs4_fast (s, -1, NULL); + if (uni == NULL) { + /* This should never happen, everything is valid UTF-8 in here */ + g_warning ("conversion of character %s failed", s); + SWFDEC_AS_VALUE_SET_INT (val, 0); + } else { + SWFDEC_AS_VALUE_SET_INT (val,...
2007 Jun 06
0
Branch 'as' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...g (object->context, g_strndup (s, t - s)); + SWFDEC_AS_VALUE_SET_STRING (ret, s); +} + +static void +swfdec_as_string_charCodeAt (SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret) +{ + SwfdecAsString *string = SWFDEC_AS_STRING (object); + int i; + const char *s; + gunichar c; + + i = swfdec_as_value_to_integer (object->context, &argv[0]); + if (i < 0) { + SWFDEC_AS_VALUE_SET_NUMBER (ret, NAN); + return; + } + s = swfdec_as_str_nth_char (string->string, i); + if (*s == 0) { + if (object->context->version > 5) { + SWFDEC_AS_VALU...