coan  6.0.1
A C/C++ Configuration Analyzer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
eol.h File Reference
#include "traits.h"

Go to the source code of this file.

Functions

template<class CharSeq >
unsigned eol (CharSeq const &seq, size_t off)
 Test for a newline-sequence at an offset in a character sequence. More...
 

Detailed Description

This file defines free template function eol.

Definition in file eol.h.

Function Documentation

template<class CharSeq >
unsigned eol ( CharSeq const &  seq,
size_t  off 
)

Test for a newline-sequence at an offset in a character sequence.

Template Parameters
CharSeqA random access character sequence type
Parameters
seqA CharSeq
offOffset in seq at which to test for a newline-sequence
Returns
The length of the newline-sequence detected, if any, else 0

Definition at line 53 of file eol.h.