ARTS 2.5.0 (git: 9ee3ac6c)
mystring.h File Reference

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

#include <algorithm>
#include <climits>
#include <sstream>
#include <string>
#include <string_view>
#include "array.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

typedef my_basic_string< char > String
 The String type for ARTS. More...
 
typedef Array< StringArrayOfString
 An array of Strings. More...
 
typedef Array< Array< String > > ArrayOfArrayOfString
 An array of Strings. More...
 

Functions

template<class T >
void extract (T &x, String &line, Index 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 293 of file mystring.h.

◆ ArrayOfString

An array of Strings.

Definition at line 290 of file mystring.h.

◆ String

typedef my_basic_string<char> String

The String type for ARTS.

Implementation see documentation of class my_basic_string.

Definition at line 287 of file mystring.h.

Function Documentation

◆ extract()

template<class T >
void extract ( T &  x,
String line,
Index  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 304 of file mystring.h.

Referenced by parse_a3_hitran(), parse_f51_hitran(), parse_i1_hitran(), parse_i2_hitran(), parse_i3_hitran(), Absorption::ReadFromArtscat3Stream(), Absorption::ReadFromArtscat4Stream(), Absorption::ReadFromArtscat5Stream(), Absorption::ReadFromHitran2001Stream(), Absorption::ReadFromHitran2004Stream(), Absorption::ReadFromHitran2012Stream(), Absorption::ReadFromHitranOnlineStream(), Absorption::ReadFromJplStream(), and Absorption::ReadFromLBLRTMStream().