ParaView has been using a set of either unsafe or slow C/C++ functions to convert numbers to string or vice versa. The exhaustive list of functions is given below. And all of them have been replaced with safer alternatives/faster alternatives provided by scnlib, fmt, and fast_float libraries and exposed though the vtk:: namespace.
C/C++ has the following functions to convert one/many char or string to a number.
These functions should be replaced by:
C/C++ has the following functions to scan one/many numbers from a stdin/file.
These functions should be replaced by:
C/C++ has the following functions to convert one/many numbers to a char or string.
These functions should be replaced by:
C/C++ has the following functions to print one/many numbers to stdout/file.
These functions should be replaced by:
It should also be noted that the following functions (including subclasses that use them) need to be provided with strings that use the std::format style format instead of the printf one:
void vtkAnnotateGlobalDataFilter::SetFormat(const char* formatArg)void vtkCGNSWriter::SetFileNameSuffix(const char* suffix)void vtkContext2DScalarBarActor::SetRangeLabelFormat(const char* formatArg)void vtkCSVWriter::SetFileNameSuffix(const char* suffix)void vtkFileSeriesWriter::SetFileNameSuffix(const char* suffix)void vtkParallelSerialWriter::SetFileNameSuffix(const char* suffix)void vtkParticlePipeline::SetFilename(const char* filename)void SceneImageWriterImageSeries::SetSuffixFormat(const char* suffix)void vtkStringList::AddFormattedString(const char* EventString, T&&... args)Finally, the following string properties now use the std::format style format instead of the printf one:
ScalarBarActor.LabelFormatScalarBarActor.RangeLabelFormatTexturedScalarBarActor.LabelFormatTexturedScalarBarActor.RangeLabelFormatRulerSourceRepresentation.LabelFormatProtractorRepresentation.LabelFormatExodusIIReaderCore.FilePatternPNGWriter.FilePatternTIFFWriter.FilePatternJPEGWriter.FilePatternPolarAxesRepresentation.PolarLabelFormatDateToNumeric.DateFormatXYChartViewBase.TooltipLabelFormatJPEG.SuffixFormatPNG.SuffixFormatTIFF.SuffixFormatBPM.SuffixFormatFileSeriesWriter.FileNameSuffixFileSeriesWriterComposite.FileNameSuffixParallelFileSeriesWriter.FileNameSuffixParallelSerialWriter.FileNameSuffixCGNSWriter.FileNameSuffixCSVWriter.FileNameSuffix
1.8.13 on Wed Dec 17 2025