I'm interested in modifying the break iterator data (zh) as my program is running as the user adds new words. This means that the data cannot be originally packaged and must be generated as I go. Can I use something like udata_setAppData or udata_setCommonData to achieve the result? I expect the .dat for the break iterator to change 2-3 times a day - so loading time should not be the critical issue.
Here's the psuedo code: 1. Start program 2. Generate .dat-like data from database for break iterators 3. Load into icu as zh break iterator
If the user makes a change to the database 4. Drop current .dat for zh break iterator 5. Regenerate .dat-like data 6. Reload
Is this possible. I think it is almost possible if I have a way of replacing U_ICUDAT_BRKITR on the fly.
Update. It seems that to pull this off, I must use code from gencmn to generate the new .dat file.