omni::getline

Defined in omni/String.h

std::basic_istream<char, std::char_traits<char>> &omni::getline(std::basic_istream<char, std::char_traits<char>> &&input, string &str, char delim)

Reads characters from the input stream input and places them in the string str.

Characters are read until end-of-file is reached on input, the next character in the input is delim, or max_size() characters have been extracted.

Parameters
  • input – Stream to get input from.

  • str – The string to put input into.

  • delim – Character that indicates that extraction should end.

Returns

input.