|
VTK
9.6.20260422
|
Optimized C++ utilities for scanning values from strings and files. More...
#include "vtkCharConvCompatibility.h"#include "vtkCommonCoreModule.h"#include "vtkLogger.h"#include "vtkfast_float.h"#include "vtk_scn.h"#include <VTK_SCN(scn/chrono.h)>#include <VTK_SCN(scn/scan.h)>#include <array>#include <string_view>Go to the source code of this file.
Namespaces | |
| namespace | vtk |
| Specialization of tuple ranges and iterators for vtkAOSDataArrayTemplate. | |
Macros | |
| #define | VTK_FROM_CHARS_RESULT_IF_ERROR_COMMAND(from_chars_result, value, command) |
| #define | VTK_FROM_CHARS_RESULT_IF_ERROR_BREAK(from_chars_result, value) |
| #define | VTK_FROM_CHARS_RESULT_IF_ERROR_RETURN(from_chars_result, value, returnValue) |
| #define | VTK_FROM_CHARS_CONCAT_INNER(a, b) |
| #define | VTK_FROM_CHARS_CONCAT(a, b) |
| #define | VTK_FROM_CHARS_IF_ERROR_COMMAND(string, value, command) |
| #define | VTK_FROM_CHARS_IF_ERROR_BREAK(string, value) |
| #define | VTK_FROM_CHARS_IF_ERROR_RETURN(string, value, returnValue) |
| #define | VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_COMMAND(string, value, param, command) |
| #define | VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_BREAK(string, value, param) |
| #define | VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_RETURN(string, value, param, returnValue) |
Functions | |
| template<typename T, typename = FASTFLOAT_ENABLE_IF(fast_float::is_supported_float_type<T>::value)> | |
| VTK_ALWAYS_INLINE auto | vtk::from_chars (const char *first, const char *last, T &value, std::chars_format format=std::chars_format::general) -> std::from_chars_result |
| Given a char* first and char* last, convert it to a number, and return a from_chars_result;. | |
| template<typename T, typename = FASTFLOAT_ENABLE_IF(fast_float::is_supported_integer_type<T>::value)> | |
| VTK_ALWAYS_INLINE auto | vtk::from_chars (const char *first, const char *last, T &value, int base=10) -> std::from_chars_result |
| Given a char* first and char* last, convert it to a number, and return a from_chars_result;. | |
| template<typename T, typename = FASTFLOAT_ENABLE_IF(fast_float::is_supported_float_type<T>::value)> | |
| VTK_ALWAYS_INLINE auto | vtk::from_chars (const std::string_view str, T &value, std::chars_format format=std::chars_format::general) -> std::from_chars_result |
| Given a std::string_view str, convert it to a number, and return a from_chars_result;. | |
| template<typename T, typename = FASTFLOAT_ENABLE_IF(fast_float::is_supported_integer_type<T>::value)> | |
| VTK_ALWAYS_INLINE auto | vtk::from_chars (const std::string_view str, T &value, int base=10) -> std::from_chars_result |
| Given a std::string_view str, convert it to a number, and return a from_chars_result;. | |
Optimized C++ utilities for scanning values from strings and files.
This header provides efficient, alternatives to common C/C++ string handling functions such as scanf, atoi etc.
It includes utilities for converting strings to numbers and scanning values from strings and files.
Refer to the documentation for guidance on replacing standard C functions with their modern, type-safe counterparts provided here.
Definition in file vtkStringScanner.h.
| #define VTK_FROM_CHARS_RESULT_IF_ERROR_COMMAND | ( | from_chars_result, | |
| value, | |||
| command ) |
Definition at line 113 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_RESULT_IF_ERROR_BREAK | ( | from_chars_result, | |
| value ) |
Definition at line 134 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_RESULT_IF_ERROR_RETURN | ( | from_chars_result, | |
| value, | |||
| returnValue ) |
Definition at line 137 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_CONCAT_INNER | ( | a, | |
| b ) |
Definition at line 141 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_CONCAT | ( | a, | |
| b ) |
Definition at line 142 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_IF_ERROR_COMMAND | ( | string, | |
| value, | |||
| command ) |
Definition at line 145 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_IF_ERROR_BREAK | ( | string, | |
| value ) |
Definition at line 150 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_IF_ERROR_RETURN | ( | string, | |
| value, | |||
| returnValue ) |
Definition at line 153 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_COMMAND | ( | string, | |
| value, | |||
| param, | |||
| command ) |
Definition at line 157 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_BREAK | ( | string, | |
| value, | |||
| param ) |
Definition at line 163 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_RETURN | ( | string, | |
| value, | |||
| param, | |||
| returnValue ) |
Definition at line 166 of file vtkStringScanner.h.