-/* $Id: icu_I18N.c,v 1.18 2007-05-21 10:14:08 marc Exp $
+/* $Id: icu_I18N.c,v 1.19 2007-05-22 07:51:45 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
UTRANS_FORWARD,
0, 0,
normalizer->parse_error, status);
+ // yaz_log(YLOG_LOG, "utrans_open %p", normalizer->trans);
break;
case 'r':
normalizer->trans
UTRANS_REVERSE ,
0, 0,
normalizer->parse_error, status);
+ // yaz_log(YLOG_LOG, "utrans_open %p", normalizer->trans);
break;
default:
*status = U_UNSUPPORTED_ERROR;
if (normalizer->rules16)
icu_buf_utf16_destroy(normalizer->rules16);
if (normalizer->trans)
+ {
+ // yaz_log(YLOG_LOG, "utrans_close %p", normalizer->trans);
utrans_close(normalizer->trans);
+ }
free(normalizer);
}
};
default:
break;
}
-
-
+ free(step);
};
icu_buf_utf16_destroy(chain->src16);
icu_chain_step_destroy(chain->steps);
+ free(chain);
}
};
chain = icu_chain_create((const uint8_t *) xml_id,
(const uint8_t *) xml_locale);
+ xmlFree(xml_id);
+ xmlFree(xml_locale);
if (!chain)
return 0;
(const uint8_t *) "", status);
}
+ xmlFree(xml_rule);
if (!step || U_FAILURE(*status)){
icu_chain_destroy(chain);
return 0;
-/* $Id: test_icu_I18N.c,v 1.23 2007-05-21 10:14:08 marc Exp $
+/* $Id: test_icu_I18N.c,v 1.24 2007-05-22 07:51:45 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
YAZ_CHECK_EQ(icu_chain_get_token_count(chain), 7);
icu_chain_destroy(chain);
+ xmlFreeDoc(doc);
}