Kstars

rapidcsv::SeparatorParams Struct Reference

#include <rapidcsv.h>

Public Member Functions

 SeparatorParams (const char pSeparator=',', const bool pTrim=false, const bool pHasCR=sPlatformHasCR, const bool pQuotedLinebreaks=false, const bool pAutoQuote=true)
 

Public Attributes

bool mAutoQuote
 
bool mHasCR
 
bool mQuotedLinebreaks
 
char mSeparator
 
bool mTrim
 

Detailed Description

Datastructure holding parameters controlling how the CSV data fields are separated.

Definition at line 292 of file rapidcsv.h.

Constructor & Destructor Documentation

◆ SeparatorParams()

rapidcsv::SeparatorParams::SeparatorParams ( const char pSeparator = ',',
const bool pTrim = false,
const bool pHasCR = sPlatformHasCR,
const bool pQuotedLinebreaks = false,
const bool pAutoQuote = true )
inlineexplicit

Constructor.

Parameters
pSeparatorspecifies the column separator (default ',').
pTrimspecifies whether to trim leading and trailing spaces from cells read (default false).
pHasCRspecifies whether a new document (i.e. not an existing document read) should use CR/LF instead of only LF (default is to use standard behavior of underlying platforms - CR/LF for Win, and LF for others).
pQuotedLinebreaksspecifies whether to allow line breaks in quoted text (default false)
pAutoQuotespecifies whether to automatically dequote data during read, and add quotes during write (default true).

Definition at line 306 of file rapidcsv.h.

Member Data Documentation

◆ mAutoQuote

bool rapidcsv::SeparatorParams::mAutoQuote

specifies whether to automatically dequote cell data.

Definition at line 338 of file rapidcsv.h.

◆ mHasCR

bool rapidcsv::SeparatorParams::mHasCR

specifies whether new documents should use CR/LF instead of LF.

Definition at line 328 of file rapidcsv.h.

◆ mQuotedLinebreaks

bool rapidcsv::SeparatorParams::mQuotedLinebreaks

specifies whether to allow line breaks in quoted text.

Definition at line 333 of file rapidcsv.h.

◆ mSeparator

char rapidcsv::SeparatorParams::mSeparator

specifies the column separator.

Definition at line 318 of file rapidcsv.h.

◆ mTrim

bool rapidcsv::SeparatorParams::mTrim

specifies whether to trim leading and trailing spaces from cells read.

Definition at line 323 of file rapidcsv.h.


The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.