Displaying 7 results from an estimated 7 matches for "array_new".
Did you mean:
array_end
2007 Oct 03
1
Reimplement order somehow
...0,1)
n
[1] 1 2 3 4 5 6 7 8 9 10 300 231 11 12 0 1
order(n)
[1] 15 1 16 2 3 4 5 6 7 8 9 10 13 14 12 11
PHP
<?php
$string = "1 2 3 4 5 6 7 8 9 10 300 231 11 12 0 1";
$array = explode(" ", $string);
foreach ($array as $key => $value) {
$array_new[$key + 1] = $value;
}
$array = $array_new;
asort($array);
foreach ($array as $key => $value) {
print " $key";
}
?>
output from php is: 15 1 16 2 3 4 5 6 7 8 9 10 13 14 12 1 (same as from the
R script), now I use another numbers:
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10 10 1...
2007 Nov 01
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie.c test/image
...fdec/swfdec_as_array.c b/libswfdec/swfdec_as_array.c
index 57fb85e..1c9c61a 100644
--- a/libswfdec/swfdec_as_array.c
+++ b/libswfdec/swfdec_as_array.c
@@ -761,6 +761,8 @@ swfdec_as_array_concat (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
const char *var;
object_new = swfdec_as_array_new (cx);
+ if (object_new == NULL)
+ return;
array_new = SWFDEC_AS_ARRAY (object_new);
swfdec_as_array_append_array (array_new, object);
@@ -814,6 +816,8 @@ swfdec_as_array_slice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
}
object_new = swfdec_as_array_new (cx);
+ i...
2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...ject_class = G_OBJECT_CLASS (klass);
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
- object_class->dispose = swfdec_as_array_dispose;
-
asobject_class->add = swfdec_as_array_add;
asobject_class->set = swfdec_as_array_set;
}
@@ -374,7 +395,7 @@ swfdec_as_array_new (SwfdecAsContext *co
g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);
g_return_val_if_fail (context->Array != NULL, NULL);
-
+
if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsArray)))
return FALSE;
ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL);
@@ -385...
2007 Nov 14
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c libswfdec/swfdec_initialize.as
...+ if (object == NULL)
+ return;
+
length = swfdec_as_array_length (object);
swfdec_as_object_foreach_rename (object, swfdec_as_array_foreach_reverse,
&length);
@@ -760,6 +781,9 @@ swfdec_as_array_concat (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
SwfdecAsArray *array_new;
const char *var;
+ if (object == NULL)
+ return;
+
object_new = swfdec_as_array_new (cx);
if (object_new == NULL)
return;
@@ -794,6 +818,9 @@ swfdec_as_array_slice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
SwfdecAsObject *object_new;
SwfdecAsArray *array_n...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...ject_class = G_OBJECT_CLASS (klass);
SwfdecAsObjectClass *asobject_class = SWFDEC_AS_OBJECT_CLASS (klass);
- object_class->dispose = swfdec_as_array_dispose;
-
asobject_class->add = swfdec_as_array_add;
asobject_class->set = swfdec_as_array_set;
}
@@ -374,7 +395,7 @@ swfdec_as_array_new (SwfdecAsContext *co
g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);
g_return_val_if_fail (context->Array != NULL, NULL);
-
+
if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsArray)))
return FALSE;
ret = g_object_new (SWFDEC_TYPE_AS_ARRAY, NULL);
@@ -385...
2008 Jan 15
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_types.c test/trace
...ontext *cx, SwfdecAsObject *object,
{
gint32 length;
- if (object == NULL)
+ if (object == NULL || SWFDEC_IS_MOVIE (object))
return;
length = swfdec_as_array_length (object);
@@ -780,7 +781,7 @@ swfdec_as_array_concat (SwfdecAsContext *cx, SwfdecAsObject *object,
SwfdecAsArray *array_new;
const char *var;
- if (object == NULL)
+ if (object == NULL || SWFDEC_IS_MOVIE (object))
return;
object_new = swfdec_as_array_new (cx);
@@ -816,7 +817,7 @@ swfdec_as_array_slice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
gint32 length, start_index, num;
Swfdec...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...SwfdecAsValue *ret)
{
guint j;
SwfdecAsObject *object_new;
@@ -814,7 +816,6 @@ swfdec_as_array_slice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
SwfdecAsValue *argv, SwfdecAsValue *ret)
{
gint32 length, start_index, num;
- SwfdecAsObject *object_new;
SwfdecAsArray *array_new;
if (object == NULL)
@@ -841,23 +842,21 @@ swfdec_as_array_slice (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc,
num = length - start_index;
}
- object_new = swfdec_as_array_new (cx);
- if (object_new == NULL)
+ array_new = SWFDEC_AS_ARRAY (swfdec_as_array_new (cx));
+...