Commit 26e1a6c0 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Don't use O(n^2) UTF-8 validation.

2003-07-01  Morten Welinder  <terra@gnome.org>

	* src/stf-parse.c (stf_parse_csv_cell): Don't use O(n^2) UTF-8
	validation.
parent 6f480083
2003-07-01 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_csv_cell): Don't use O(n^2) UTF-8
validation.
* src/sheet-control-gui.c (cb_table_destroy): Properly release
panes.
......
2003-07-01 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_csv_cell): Don't use O(n^2) UTF-8
validation.
* src/sheet-control-gui.c (cb_table_destroy): Properly release
panes.
......
2003-07-01 Morten Welinder <terra@gnome.org>
* src/stf-parse.c (stf_parse_csv_cell): Don't use O(n^2) UTF-8
validation.
* src/sheet-control-gui.c (cb_table_destroy): Properly release
panes.
......
......@@ -458,7 +458,6 @@ static inline char const *
stf_parse_csv_is_separator (char const *character, char const *chr, GSList const *str)
{
g_return_val_if_fail (character != NULL, NULL);
g_return_val_if_fail (!chr || g_utf8_validate (chr, -1, NULL), NULL);
if (str) {
GSList const *l;
......@@ -504,7 +503,6 @@ stf_parse_csv_cell (Source_t *src, StfParseOptions_t *parseoptions)
cur = src->position;
g_return_val_if_fail (cur != NULL, NULL);
g_return_val_if_fail (g_utf8_validate (cur, -1, NULL), NULL);
res = g_string_sized_new (30);
......
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