KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KICAD_FORMAT Namespace Reference

Functions

void FormatBool (OUTPUTFORMATTER *aOut, int aNestLevel, const wxString &aKey, bool aValue, char aSuffix='\n')
 Writes a boolean to the formatter, in the style (aKey [yes|no])
 
void FormatUuid (OUTPUTFORMATTER *aOut, const KIID &aUuid, char aSuffix)
 
void Prettify (std::string &aSource, char aQuoteChar)
 

Function Documentation

◆ FormatBool()

KICOMMON_API void KICAD_FORMAT::FormatBool ( OUTPUTFORMATTER aOut,
int  aNestLevel,
const wxString &  aKey,
bool  aValue,
char  aSuffix = '\n' 
)

Writes a boolean to the formatter, in the style (aKey [yes|no])

Parameters
aOutis the output formatter to write to
aNestLevelis passed to the output formatter to control indentation
aKeyis the name of the boolean flag
aValueis the value to write
aSuffixis the character to format after the end of the boolean (after the close paren)

Definition at line 29 of file kicad_io_utils.cpp.

References OUTPUTFORMATTER::Print().

Referenced by PCB_IO_KICAD_SEXPR::format(), PCB_PLOT_PARAMS::Format(), PCB_IO_KICAD_SEXPR::formatGeneral(), PCB_IO_KICAD_SEXPR::formatSetup(), and PCB_IO_KICAD_SEXPR::formatTeardropParameters().

◆ FormatUuid()

◆ Prettify()

KICOMMON_API void KICAD_FORMAT::Prettify ( std::string &  aSource,
char  aQuoteChar 
)

Definition at line 65 of file kicad_io_utils.cpp.

References cursor, and next().

Referenced by BOOST_FIXTURE_TEST_CASE(), and PRETTIFIED_FILE_OUTPUTFORMATTER::Finish().