ctUPDICU ctUPDATICU() allows a user to update the Unicode version stored in the resource of their files. Declaration NINT ctUpdateICUversion(pTEXT filnam,pTEXT fileword) NINT ctUPDATICU(pTEXT filnam,pTEXT fileword) Description ctUPDATICU() takes the name of a data file containing IFIL resources and an optional password and attempts to open the file and associated indices exclusively, skipping the ICU version check. If the open succeeds, then the data file and associated indices have their UNICODE resource version changed to agree with the current ICU library version, and indices that reference the ICU resources are marked for rebuild.
Return Values ctUPDATICU() returns NO_ERROR (0) if the files are opened successfully, and no ICU version mismatch is found.
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example
char[255] filename; strncpy(filename, “mydata.dat”, 10);
rc = (InitISAMXtd(16, 16, 16, 16, 0, "ADMIN", "ADMIN", "FAIRCOMS")) if (rc) printf(“ctree Plus failed to initialize with error %d”, rc);
rc = ctUPDTICU(filename, NULL); if (rc) {
printf(“ctUPDTICU returned with with condition %d”, filename, rc);
if (ICUV_REB == rc) printf("One or more indices marked for rebuild.\n");
}
exit(0); |
||||||||||||