/** * @brief processStrings Converts any strings in the data fields. * @param dictData The */ void FileHeaderRecord::processStrings(const CodePageConvert &converter) { _ProductName = converter.convertCodePage( _prod_name, sizeof(_prod_name) ); _CreationDate = converter.convertCodePage( _creation_date, sizeof(_creation_date) ); _CreationTime = converter.convertCodePage( _creation_time, sizeof(_creation_time) ); _FileLabel = converter.convertCodePage( _file_label, sizeof(_file_label) ); }
/** * @brief setColumnConvrtStringData Sets String data into the column. * @param column The columns to insert into. * @param numCases The number of cases. * @param spssCol The Source of the data. */ void SPSSImporter::setColumnConvrtStringData(Column &column, CodePageConvert &strConvertor, spss::SPSSColumn &spssCol) { // Code page convert all strings. for (size_t i = 0; i < spssCol.strings.size(); ++i) spssCol.strings[i] = strConvertor.convertCodePage(spssCol.strings[i]); column.setColumnAsNominalString(spssCol.strings); }
/** * @brief processStrings Converts any strings in the data fields. * @param dictData The * * Should be implemented in classes where holdStrings maybe or is true. * */ void ValueLabelVarsRecord::processStrings(const CodePageConvert &converter) { for (size_t i = 0; i < _Labels.size(); ++i) _Labels[i].label = converter.convertCodePage(_Labels[i].label); }