Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
steppable::prettyPrint Namespace Reference

The namespace containing utilities for pretty printing. More...

Namespaces

namespace  printers
 The custom-implemented printer engines for outputting expressions.

Classes

class  ConsoleOutput
 Represents a console output buffer. More...
struct  Position
 Represents a position in the console. More...

Enumerations

enum class  HorizontalAlignment : std::uint8_t { LEFT = 0 , CENTER = 1 , RIGHT = 2 }

Functions

size_t getStringWidth (const std::string &s)
 Gets the minimal width needed to print a string.
size_t getStringHeight (const std::string &s)
 Gets the minimal height needed to print a string.

Detailed Description

The namespace containing utilities for pretty printing.

Enumeration Type Documentation

◆ HorizontalAlignment

enum class steppable::prettyPrint::HorizontalAlignment : std::uint8_t
strong
Enumerator
LEFT 
CENTER 
RIGHT 

Function Documentation

◆ getStringHeight()

size_t steppable::prettyPrint::getStringHeight ( const std::string & s)

Gets the minimal height needed to print a string.

Parameters
sThe string.
Returns
The height of the string.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStringWidth()

size_t steppable::prettyPrint::getStringWidth ( const std::string & s)

Gets the minimal width needed to print a string.

Parameters
sThe string.
Returns
The width of the string.
Here is the call graph for this function:
Here is the caller graph for this function:
Untitled