Go to the source code of this file.
Namespaces | |
| namespace | belfem |
| USER GUIDES: | |
| namespace | belfem::gastables |
Functions | |
| std::string_view | belfem::gastables::trim_field (const std::string_view aField) |
| real | belfem::gastables::parse_real (const std::string_view aField, const char *aContext) |
| locale-independent, non-throwing replacement for std::stod in the fixed-column parsers; aborts with context on a malformed field | |
| real | belfem::gastables::parse_real_optional (const std::string_view aField, const real aFallback, const char *aContext) |
| like parse_real, but an empty or whitespace-only field returns the given fallback instead of aborting | |
| int | belfem::gastables::parse_int (const std::string_view aField, const char *aContext) |
| locale-independent, non-throwing replacement for std::stoi | |
| std::string | belfem::gastables::parse_field (const std::string &aLine, const size_t aPos, const size_t aCount, const char *aContext) |
| bounds-checked substring for fixed-column records; aborts with context if the line is shorter than the requested window start | |