Commit 5961e085 authored by Jody Goldberg's avatar Jody Goldberg
Browse files

Move 1 more routine.

parent e582115b
......@@ -404,24 +404,6 @@ expr_tree_unref (ExprTree *tree)
do_expr_tree_unref (tree);
}
static void
encode_cellref (GString *dest, const CellRef *ref, gboolean use_relative_syntax)
{
if (ref->sheet){
g_string_append_c (dest, '\'');
g_string_append (dest, ref->sheet->name);
g_string_append (dest, "'!");
}
if (use_relative_syntax && !ref->col_relative)
g_string_append_c (dest, '$');
g_string_append (dest, col_name (ref->col));
if (use_relative_syntax && !ref->row_relative)
g_string_append_c (dest, '$');
g_string_sprintfa (dest, "%d", ref->row+1);
}
static void
cell_ref_make_absolute (CellRef *cell_ref, int eval_col, int eval_row)
{
......
......@@ -480,6 +480,24 @@ value_get_as_float (const Value *v)
return 0.0;
}
static void
encode_cellref (GString *dest, const CellRef *ref, gboolean use_relative_syntax)
{
if (ref->sheet){
g_string_append_c (dest, '\'');
g_string_append (dest, ref->sheet->name);
g_string_append (dest, "'!");
}
if (use_relative_syntax && !ref->col_relative)
g_string_append_c (dest, '$');
g_string_append (dest, col_name (ref->col));
if (use_relative_syntax && !ref->row_relative)
g_string_append_c (dest, '$');
g_string_sprintfa (dest, "%d", ref->row+1);
}
/*
* value_cellrange_get_as_string:
* @value: a value containing a VALUE_CELLRANGE
......
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