I’m trying to understand how the C API works.
In the utrans_register documentation it says:
“NOTE: After this call the system owns the adoptedTrans and will close it. The user must not call utrans_close()on adoptedTrans.”
But in the utrans_openU documentation it says
“the transliterator rules. See the C++ header rbt.h for rules syntax. If NULL then a system transliterator matching the ID is returned.”
Does this mean when passing a NULL for rules in utrans_openU that you’re not expected to explicitly close the returned transliterator?
Separately I’m a little unclear if I’m responsible for releasing resources of the “system” as a whole.
Any guidance would be appreciated.
Regards,
Doug