Home | History | Annotate | Download | only in i18n

Lines Matching refs:ds

819 uspoof_swap(const UDataSwapper *ds, const void *inData, int32_t length, void *outData,
825 if(ds==NULL || inData==NULL || length<-1 || (length>0 && outData==NULL)) {
840 udata_printError(ds, "uspoof_swap(): data format %02x.%02x.%02x.%02x "
856 int32_t headerSize=udata_swapDataHeader(ds, inData, length, outData, status);
865 if (ds->readUInt32(spoofDH->fMagic) != USPOOF_MAGIC ||
866 ds->readUInt32(spoofDH->fLength) < sizeof(SpoofDataHeader))
868 udata_printError(ds, "uspoof_swap(): Spoof Data header is invalid.\n");
876 int32_t spoofDataLength = ds->readUInt32(spoofDH->fLength);
886 udata_printError(ds, "uspoof_swap(): too few bytes (%d after ICU Data header) for spoof data.\n",
914 sectionStart = ds->readUInt32(spoofDH->fCFUKeys);
915 sectionLength = ds->readUInt32(spoofDH->fCFUKeysSize) * 4;
916 ds->swapArray32(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status);
919 sectionStart = ds->readUInt32(spoofDH->fCFUStringIndex);
920 sectionLength = ds->readUInt32(spoofDH->fCFUStringIndexSize) * 2;
921 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status);
924 sectionStart = ds->readUInt32(spoofDH->fCFUStringTable);
925 sectionLength = ds->readUInt32(spoofDH->fCFUStringTableLen) * 2;
926 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status);
929 sectionStart = ds->readUInt32(spoofDH->fCFUStringLengths);
930 sectionLength = ds->readUInt32(spoofDH->fCFUStringLengthsSize) * 4;
931 ds->swapArray16(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status);
934 sectionStart = ds->readUInt32(spoofDH->fAnyCaseTrie);
935 sectionLength = ds->readUInt32(spoofDH->fAnyCaseTrieLength);
936 utrie2_swap(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status);
939 sectionStart = ds->readUInt32(spoofDH->fLowerCaseTrie);
940 sectionLength = ds->readUInt32(spoofDH->fLowerCaseTrieLength);
941 utrie2_swap(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status);
944 sectionStart = ds->readUInt32(spoofDH->fScriptSets);
945 sectionLength = ds->readUInt32(spoofDH->fScriptSetsLength) * 4;
946 ds->swapArray32(ds, inBytes+sectionStart, sectionLength, outBytes+sectionStart, status);
953 uint32_t magic = ds->readUInt32(spoofDH->fMagic);
954 ds->writeUInt32((uint32_t *)&outputDH->fMagic, magic);
955 ds->swapArray32(ds, &spoofDH->fLength, sizeof(SpoofDataHeader)-8, &outputDH->fLength, status);