tfel
Loading...
Searching...
No Matches
FCString.ixx File Reference
#include <array>
#include <string>
#include <cstring>
#include <stdexcept>
#include <algorithm>
#include "TFEL/Raise.hxx"

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.

Functions

template<std::size_t N, typename CharT>
CStringNarrowedView< N, CharT > tfel::utilities::narrow (const CharT *)
 an helper function to build a CStringNarrowedView object;
template<std::size_t N, typename CharT, typename Traits>
std::ostream & tfel::utilities::operator<< (std::ostream &, const basic_fcstring< N, CharT, Traits > &)
 output operator
template<std::size_t N, typename CharT, typename Traits>
std::istream & tfel::utilities::operator>> (std::istream &, basic_fcstring< N, CharT, Traits > &)
 output operator
template<std::size_t N, std::size_t N2, typename CharT, typename Traits>
bool tfel::utilities::operator== (const basic_fcstring< N, CharT, Traits > &, const basic_fcstring< N2, CharT, Traits > &)
 comparison operator
template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator== (const basic_fcstring< N, CharT, Traits > &, const std::basic_string< CharT, Traits, Alloc > &)
 comparison operator
template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator== (const std::basic_string< CharT, Traits, Alloc > &, const basic_fcstring< N, CharT, Traits > &)
 comparison operator
template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator== (const basic_fcstring< N, CharT, Traits > &, const CharT *)
 comparison operator
template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator== (const CharT *, const basic_fcstring< N, CharT, Traits > &)
 comparison operator
template<std::size_t N, std::size_t N2, typename CharT, typename Traits>
bool tfel::utilities::operator!= (const basic_fcstring< N, CharT, Traits > &, const basic_fcstring< N2, CharT, Traits > &)
 comparison operator
template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator!= (const basic_fcstring< N, CharT, Traits > &, const std::basic_string< CharT, Traits, Alloc > &)
 comparison operator
template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator!= (const std::basic_string< CharT, Traits, Alloc > &, const basic_fcstring< N, CharT, Traits > &)
 comparison operator
template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator!= (const basic_fcstring< N, CharT, Traits > &, const CharT *)
 comparison operator
template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator!= (const CharT *, const basic_fcstring< N, CharT, Traits > &)
 comparison operator

Detailed Description

Author
Thomas Helfer
Date
23 janv. 2017

Function Documentation

◆ narrow()

template<std::size_t N, typename CharT>
CStringNarrowedView< N, CharT > tfel::utilities::narrow ( const CharT * s)

an helper function to build a CStringNarrowedView object;

Parameters
[in]sC-string
Returns
a restricted view of the input

◆ operator!=() [1/5]

template<std::size_t N, std::size_t N2, typename CharT, typename Traits>
bool tfel::utilities::operator!= ( const basic_fcstring< N, CharT, Traits > & lhs,
const basic_fcstring< N2, CharT, Traits > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator!=() [2/5]

template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator!= ( const basic_fcstring< N, CharT, Traits > & lhs,
const CharT * rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator!=() [3/5]

template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator!= ( const basic_fcstring< N, CharT, Traits > & lhs,
const std::basic_string< CharT, Traits, Alloc > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator!=() [4/5]

template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator!= ( const CharT * lhs,
const basic_fcstring< N, CharT, Traits > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator!=() [5/5]

template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator!= ( const std::basic_string< CharT, Traits, Alloc > & lhs,
const basic_fcstring< N, CharT, Traits > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator<<()

template<std::size_t N, typename CharT, typename Traits>
std::ostream & tfel::utilities::operator<< ( std::ostream & os,
const basic_fcstring< N, CharT, Traits > & s )

output operator

Parameters
[out]osoutput stream
[in]sfixed sized string

◆ operator==() [1/5]

template<std::size_t N, std::size_t N2, typename CharT, typename Traits>
bool tfel::utilities::operator== ( const basic_fcstring< N, CharT, Traits > & lhs,
const basic_fcstring< N2, CharT, Traits > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator==() [2/5]

template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator== ( const basic_fcstring< N, CharT, Traits > & lhs,
const CharT * rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator==() [3/5]

template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator== ( const basic_fcstring< N, CharT, Traits > & lhs,
const std::basic_string< CharT, Traits, Alloc > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator==() [4/5]

template<std::size_t N, typename CharT, typename Traits>
bool tfel::utilities::operator== ( const CharT * lhs,
const basic_fcstring< N, CharT, Traits > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator==() [5/5]

template<std::size_t N, typename CharT, typename Traits, typename Alloc>
bool tfel::utilities::operator== ( const std::basic_string< CharT, Traits, Alloc > & lhs,
const basic_fcstring< N, CharT, Traits > & rhs )

comparison operator

Parameters
[in]lhsleft hand side
[in]rhsleft hand side

◆ operator>>()

template<std::size_t N, typename CharT, typename Traits>
std::istream & tfel::utilities::operator>> ( std::istream & os,
basic_fcstring< N, CharT, Traits > & s )

output operator

Parameters
[out]osoutput stream
[out]sfixed sized string