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...
 

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.

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