ARTS 2.5.4 (git: 31ce4f0e)
mystring.h File Reference

This file contains the definition of String, the ARTS string class. More...

#include <fast_float/fast_float.h>
#include <algorithm>
#include <charconv>
#include <climits>
#include <sstream>
#include <string>
#include <string_view>
#include <type_traits>
#include "array.h"
#include "debug.h"
#include "matpack.h"

Go to the source code of this file.

Classes

class  my_basic_string< charT >
 The implementation for String, the ARTS string class. More...
 

Typedefs

using String = my_basic_string< char >
 The String type for ARTS. More...
 
using ArrayOfString = Array< String >
 An array of Strings. More...
 
using ArrayOfArrayOfString = Array< Array< String > >
 An array of Strings. More...
 

Functions

template<class T >
void extract (T &x, String &line, std::size_t n)
 Extract something from the beginning of a string. More...
 

Detailed Description

This file contains the definition of String, the ARTS string class.

Author
Stefan Buehler
Date
2001-09-14

Definition in file mystring.h.

Typedef Documentation

◆ ArrayOfArrayOfString

An array of Strings.

Definition at line 222 of file mystring.h.

◆ ArrayOfString

An array of Strings.

Definition at line 219 of file mystring.h.

◆ String

using String = my_basic_string<char>

The String type for ARTS.

Implementation see documentation of class my_basic_string.

Definition at line 216 of file mystring.h.

Function Documentation

◆ extract()

template<class T >
void extract ( T &  x,
String line,
std::size_t  n 
)

Extract something from the beginning of a string.

This is just a small helper function to safe some typing.

Return values
xWhat was extracted from the beginning of the line.
lineWhat was extracted is also cut away from line.
Parameters
nThe width of the stuff to extract.
Author
Stefan Buehler

Definition at line 233 of file mystring.h.

References nonstd::isspace(), and N.

Referenced by Absorption::ReadFromArtscat3Stream(), Absorption::ReadFromArtscat4Stream(), Absorption::ReadFromArtscat5Stream(), Absorption::ReadFromHitran2001Stream(), Absorption::ReadFromHitran2004Stream(), Absorption::ReadFromHitranOnlineStream(), Absorption::ReadFromJplStream(), and Absorption::ReadFromLBLRTMStream().