ARTS 2.5.11 (git: 725533f0)
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_concepts.h"

Go to the source code of this file.

Classes

class  my_basic_string< charT >
 The implementation for String, the ARTS string class. More...
 
struct  std::hash< String >
 

Namespaces

namespace  std
 

Typedefs

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

Functions

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

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 205 of file mystring.h.

◆ ArrayOfString

An array of Strings.

Definition at line 202 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 199 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 216 of file mystring.h.

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