Commit 2deac8ca authored by Michael Meeks's avatar Michael Meeks

Several string functions added.

parent 33f15c3e
1999-03-18 Sean Atkinson <sca20@cam.ac.uk>
* notes: typos
* src/expr.c (value_string): cleaned to use g_strdup_printf
* src/expr.h: typo
* src/fn-string.c (gnumeric_mid): fixed
internationalized various strings, typos
(subs_string_new, subs_string_append_n, subs_string_free): added to
speed gnumeric_substitute
(gnumeric_concatenate, gnumeric_rept, gnumeric_find, gnumeric_fixed)
(gnumeric_proper, gnumeric_replace, gnumeric_t, gnumeric_value)
(gnumeric_substitute, gnumeric_dollar): implemented.
1999-03-16 Vladimir Vuksan <vuksan@veus.hr>
* src/fn-financial.c: More financial functions: gnumeric_nominal,
......
1999-03-18 Sean Atkinson <sca20@cam.ac.uk>
* notes: typos
* src/expr.c (value_string): cleaned to use g_strdup_printf
* src/expr.h: typo
* src/fn-string.c (gnumeric_mid): fixed
internationalized various strings, typos
(subs_string_new, subs_string_append_n, subs_string_free): added to
speed gnumeric_substitute
(gnumeric_concatenate, gnumeric_rept, gnumeric_find, gnumeric_fixed)
(gnumeric_proper, gnumeric_replace, gnumeric_t, gnumeric_value)
(gnumeric_substitute, gnumeric_dollar): implemented.
1999-03-16 Vladimir Vuksan <vuksan@veus.hr>
* src/fn-financial.c: More financial functions: gnumeric_nominal,
......
1999-03-18 Sean Atkinson <sca20@cam.ac.uk>
* notes: typos
* src/expr.c (value_string): cleaned to use g_strdup_printf
* src/expr.h: typo
* src/fn-string.c (gnumeric_mid): fixed
internationalized various strings, typos
(subs_string_new, subs_string_append_n, subs_string_free): added to
speed gnumeric_substitute
(gnumeric_concatenate, gnumeric_rept, gnumeric_find, gnumeric_fixed)
(gnumeric_proper, gnumeric_replace, gnumeric_t, gnumeric_value)
(gnumeric_substitute, gnumeric_dollar): implemented.
1999-03-16 Vladimir Vuksan <vuksan@veus.hr>
* src/fn-financial.c: More financial functions: gnumeric_nominal,
......
1999-03-18 Sean Atkinson <sca20@cam.ac.uk>
* notes: typos
* src/expr.c (value_string): cleaned to use g_strdup_printf
* src/expr.h: typo
* src/fn-string.c (gnumeric_mid): fixed
internationalized various strings, typos
(subs_string_new, subs_string_append_n, subs_string_free): added to
speed gnumeric_substitute
(gnumeric_concatenate, gnumeric_rept, gnumeric_find, gnumeric_fixed)
(gnumeric_proper, gnumeric_replace, gnumeric_t, gnumeric_value)
(gnumeric_substitute, gnumeric_dollar): implemented.
1999-03-16 Vladimir Vuksan <vuksan@veus.hr>
* src/fn-financial.c: More financial functions: gnumeric_nominal,
......
This diff is collapsed.
......@@ -2,7 +2,7 @@
Control-Enter after finishing entering some data into a cell
sets the whole range of selected cells to that value.
On a selection: Enter, COntrol Enter, Tab, Shift-Tab navigate trought
On a selection: Enter, Control Enter, Tab, Shift-Tab navigate trought
the selected cells.
Double clicking on a column division automatically adjusts the column
......@@ -71,7 +71,7 @@ Alt-down arrow pops up a list of available choices for the autofill
to the two references
** Wierd things
="1"+"2" yields 3, Excel does the converion to itegers
="1"+"2" yields 3, Excel does the converion to integers
="A"&TRUE, Excel convers TRUE to a string: ATRUE
** Display
......@@ -122,4 +122,4 @@ Alt-down arrow pops up a list of available choices for the autofill
#NULL!
#NUM!
#REF!
#VALUE!
\ No newline at end of file
#VALUE!
......@@ -2,7 +2,7 @@
Control-Enter after finishing entering some data into a cell
sets the whole range of selected cells to that value.
On a selection: Enter, COntrol Enter, Tab, Shift-Tab navigate trought
On a selection: Enter, Control Enter, Tab, Shift-Tab navigate trought
the selected cells.
Double clicking on a column division automatically adjusts the column
......@@ -71,7 +71,7 @@ Alt-down arrow pops up a list of available choices for the autofill
to the two references
** Wierd things
="1"+"2" yields 3, Excel does the converion to itegers
="1"+"2" yields 3, Excel does the converion to integers
="A"&TRUE, Excel convers TRUE to a string: ATRUE
** Display
......@@ -122,4 +122,4 @@ Alt-down arrow pops up a list of available choices for the autofill
#NULL!
#NUM!
#REF!
#VALUE!
\ No newline at end of file
#VALUE!
This diff is collapsed.
......@@ -172,29 +172,24 @@ expr_tree_unref (ExprTree *tree)
char *
value_string (Value *value)
{
char buffer [40];
switch (value->type){
case VALUE_STRING:
return g_strdup (value->v.str->str);
case VALUE_INTEGER:
snprintf (buffer, sizeof (buffer)-1, "%d", value->v.v_int);
break;
return g_strdup_printf ("%d", value->v.v_int) ;
case VALUE_FLOAT:
snprintf (buffer, sizeof (buffer)-1, "%g", value->v.v_float);
break;
return g_strdup_printf ("%g", value->v.v_float) ;
case VALUE_ARRAY:
snprintf (buffer, sizeof (buffer)-1, "ARRAY");
break;
return g_strdup ("ARRAY") ;
case VALUE_CELLRANGE:
return g_strdup ("Internal problem");
break ;
}
return g_strdup (buffer);
return g_strdup ("Internal problem") ;
}
void
......
......@@ -93,7 +93,7 @@ typedef enum {
/*
* Functions come in two fashions: Those that only deal with
* very specific data types and a constant number of arguments,
* and those who dont.
* and those who don't.
*
* The former kind of functions receives a precomputed array of
* Value pointers.
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment