detect

Defined in header: <orcus/format_detection.hpp>

bool orcus::detect(std::string_view strm, format_t type)

Detect if a given document stream is of a specified format.

Note

The function will always return true if the specified format type is format_t::csv.

Parameters:
  • strm – Document stream to detect the format of.

  • type – Format type to check against.

Returns:

Whether or not the document stream is of the format specified by the caller.