20 static void copyWithBlank(
char* dst,
size_t dstlen,
const char* src,
25 bool ifEq(
const char* src,
size_t len)
const;
49 copyWithBlank(m_b, size(), src, Len);
61 return ifEq(src, Len);
bool operator==(const char *src) const
Returns true if two strings are equal.
FortranStringView(char *src, size_t len)
Constructs with a char pointer and the reserved length of the Fortran string.
bool operator==(const FortranStringView &src) const
Returns true if two strings are equal.
std::string trim() const
Returns a string without the trailing whitespaces.
FortranStringView operator()(int begin1, int back1) const
Analogous to Fortran str(x:y) syntax.
bool operator==(const char(&src)[Len]) const
Returns true if two strings are equal.
Definition: iofortstr.h:59
FortranStringView & operator=(const char(&src)[Len])
Assigned by a C/C++ style string. Ignores the trailing characters if the source is too long.
Definition: iofortstr.h:47
FortranStringView & operator=(const char *src)
Assigned by a C/C++ style string. Ignores the trailing characters if the source is too long.
bool operator==(const std::string &src) const
Returns true if two strings are equal.
size_t len_trim() const
Returns the length of string, ignoring the trailing whitespaces.
FortranStringView(char(&src)[Len])
Constructs with a char pointer and the reserved length of the Fortran string.
Definition: iofortstr.h:36
FortranStringView operator()(int begin1) const
Analogous to Fortran str(x:) syntax.
FortranStringView & operator=(const std::string &src)
Assigned by a C/C++ style string. Ignores the trailing characters if the source is too long.
Reference to the non-NULL-terminated Fortran strings. Provides a few std::string-style methods to han...
Definition: iofortstr.h:10