Fortran SFF API to data I/O streams in C++

◆ stringfromfstring()

std::string fapidxx::stringfromfstring ( char *  fstring,
ftnlen  slen 
)

create a C++ string from a Fortran string

Definition at line 51 of file helper.cc.

References trimws_end().

Referenced by freeblock(), fapidxx::WID2container::setwid2(), sff_new__(), sff_prepwid2__(), sff_ropen__(), sff_ropenfs__(), sff_ropens__(), sff_select_format__(), sff_select_input_format__(), sff_select_output_format__(), sff_wopen__(), sff_wopenfs__(), sff_wopens__(), and SRCEdate().

52  {
53  std::string cxxstring(fstring, slen);
54  return(trimws_end(cxxstring));
55  } // std::string stringfromfstring(char *fstring, ftnlen slen)
std::string trimws_end(std::string s)
remove whitespace at end of string
Definition: helper.cc:105
Here is the call graph for this function:
Here is the caller graph for this function: