I want to create an converter from memory.
I have created the etrypoint_dat and then the c file from my converter and joined the two struct together:
},
"", 1, 0, {
{ "ibm-5348_P100-1997", (const void *)&ibm_5348_P100_1997_cnv }
}
From the code I call
udata_setAppData("icupackage.dat", &ntrypoint_dat, &status); // return is good
Now my question:
How do I create the converter after the call fo setAppData?
The following does not work:
UConverter* conv = ucnv_open("ibm-5348_P100-1997", &status);
I found it myself.
The connection between the two structs must be named in this way:
then from code we can call:
and then:
The
.datshould be deleted. I leave it for consistences with the question.