Source-highlight Library
Public Member Functions | Public Attributes | List of all members
srchilite::FormatterParams Struct Reference

Additional parameters that can be passed to a formatter. More...

#include <formatterparams.h>

Inheritance diagram for srchilite::FormatterParams:
Inheritance graph
[legend]
Collaboration diagram for srchilite::FormatterParams:
Collaboration graph
[legend]

Public Member Functions

  FormatterParams (const std::string &n)
 
void  setParserInfo (const std::string &name, unsigned int l)
 
void  setParserInfo (const ParserInfo *p)
 

Public Attributes

std::string  fileNameNoPath
  file name without path
 
int  start
  The start position of the string to format within the whole string (line). More...
 
std::string  filename
 
unsigned int  line
 

Detailed Description

Additional parameters that can be passed to a formatter.

Constructor & Destructor Documentation

srchilite::FormatterParams::FormatterParams ( const std::string &  n )
inline
Parameters
the file name (possible path will be stripped)

Member Data Documentation

int srchilite::FormatterParams::start

The start position of the string to format within the whole string (line).

Note that this makes sense only for strings that are not to be formatted as normal. A negative value means "not specified" IMPORTANT: do not use this if formatting optimization is on.


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

AltStyle によって変換されたページ (->オリジナル) /