|
VTK
9.5.20251113
|
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. | |
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 | |||
| ) | VTK_FROM_CHARS_RESULT_IF_ERROR_COMMAND(from_chars_result, value, break) |
Definition at line 131 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_RESULT_IF_ERROR_RETURN | ( | from_chars_result, | |
| value, | |||
| returnValue | |||
| ) | VTK_FROM_CHARS_RESULT_IF_ERROR_COMMAND(from_chars_result, value, return returnValue) |
Definition at line 134 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_CONCAT_INNER | ( | a, | |
| b | |||
| ) | a##b |
Definition at line 138 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_CONCAT | ( | a, | |
| b | |||
| ) | VTK_FROM_CHARS_CONCAT_INNER(a, b) |
Definition at line 139 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_IF_ERROR_COMMAND | ( | string, | |
| value, | |||
| command | |||
| ) |
Definition at line 142 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_IF_ERROR_BREAK | ( | string, | |
| value | |||
| ) | VTK_FROM_CHARS_IF_ERROR_COMMAND(string, value, break) |
Definition at line 147 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_IF_ERROR_RETURN | ( | string, | |
| value, | |||
| returnValue | |||
| ) | VTK_FROM_CHARS_IF_ERROR_COMMAND(string, value, return returnValue) |
Definition at line 150 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_COMMAND | ( | string, | |
| value, | |||
| param, | |||
| command | |||
| ) |
Definition at line 154 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_BREAK | ( | string, | |
| value, | |||
| param | |||
| ) | VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_COMMAND(string, value, param, break) |
Definition at line 160 of file vtkStringScanner.h.
| #define VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_RETURN | ( | string, | |
| value, | |||
| param, | |||
| returnValue | |||
| ) | VTK_FROM_CHARS_WITH_PARAM_IF_ERROR_COMMAND(string, value, param, return returnValue) |
Definition at line 163 of file vtkStringScanner.h.