I try to get all SAMPLE_NAME strings. there are some wrong strings when SAMPLE_NAME start with number.
take a look Result Patch Name: 79 SAMPLE_NAME: Z32A1 actually is 79 2A1 in CGSTA file.
C code
int main(int argc, const char * argv[]) {
cmsHANDLE cgatsHandle = cmsIT8LoadFromFile(NULL, "IDEAlliance ISO 12647-7 Control Wedge 2013.txt");
if (cgatsHandle == NULL) {
return 99;
}
int count = cmsIT8GetPropertyDbl(cgatsHandle, "NUMBER_OF_SETS");
for (int i = 0; i < count; i++) {
const char* pName = cmsIT8GetPatchName(cgatsHandle, i, NULL);
const char* sName = cmsIT8GetData(cgatsHandle, pName, "SAMPLE_NAME");
printf("Patch Name: %s SAMPLE_NAME: %s\n", pName, sName);
}
return 0;
}
LCMS2 version: 2.15 Platform: macOS 13.5.1
I try to get all SAMPLE_NAME strings. there are some wrong strings when
SAMPLE_NAME
start with number. take a look ResultPatch Name: 79 SAMPLE_NAME: Z32A1
actually is79 2A1
in CGSTA file.C code
Result
IDEAlliance ISO 12647-7 Control Wedge 2013.txt