read_line_flags Struct Reference

#include <stlsoft/filesystem/read_line.hpp>

List of all members.


Detailed Description

Flags that moderate the behaviour of the stlsoft::read_line() function.

Each flag causes the stlsoft::read_line() function to recognise exactly one character sequence as a new line. To recognise combinations, they must be combined. For example, to recognise both '
' and "\r\n" as end-of-line sequences, both recogniseLfAsEOL and recogniseCrLfAsEOL must be specified.

Public Types

enum  flags_t {
  recogniseCrAsEOL = 0x0001,
  recogniseLfAsEOL = 0x0002,
  recogniseCrLfAsEOL = 0x0004,
  recogniseAll = (recogniseCrAsEOL | recogniseLfAsEOL | recogniseCrLfAsEOL),
  mask = 0x0007
}


Member Enumeration Documentation

enum flags_t

Enumerator:
recogniseCrAsEOL  Recognises a sole carriage return ('') character as the end-of-line marker.
recogniseLfAsEOL  Recognises a sole line feed ('') character as the end-of-line marker.
recogniseCrLfAsEOL  Recognises the carriage return + line feed sequence ("\r\n") as the end-of-line marker.
recogniseAll  Recognises a sole carriage return ('') character, or a sole line feed ('') character or the carriage return + line feed sequence ("\r\n") as the end-of-line marker.
mask  Flags mask.


The documentation for this struct was generated from the following file:

Generated on Thu Jun 10 08:58:45 2010 for STLSoft by  doxygen 1.5.6