Skip to main content

Formatter

Git Source

================== 🗒️ Formatter

Functions

toString

================== 🧩 Function

function toString(Function memory func) internal pure returns (string memory message);

toString

=============== 🗂️ Bundle

function toString(Bundle storage bundle) internal view returns (string memory message);

toLocation

================= ⛓️ Process

function toLocation(Process memory process) internal pure returns (string memory);

formatPid

function formatPid(uint256 pid) internal pure returns (string memory);

toStart

function toStart(Process memory process, uint256 pid) internal pure returns (string memory);

toFinish

function toFinish(Process memory process, uint256 pid) internal pure returns (string memory);

toMessage

function toMessage(string memory head, string memory body) internal pure returns (string memory);

append

=================== 🧱 Primitives

📝 String

function append(string memory str, string memory addition) internal pure returns (string memory);

append

function append(string memory str, address addr) internal pure returns (string memory);

append

function append(string memory str, bytes4 selector) internal pure returns (string memory);

append

function append(string memory str, uint256 num) internal pure returns (string memory);

br

function br(string memory str) internal pure returns (string memory);

sp

function sp(string memory str) internal pure returns (string memory);

indent

function indent(string memory str) internal pure returns (string memory);

comma

function comma(string memory str) internal pure returns (string memory);

comma

function comma(string memory str, string memory addition) internal pure returns (string memory);

comma

function comma(string memory str, bytes4 b4) internal pure returns (string memory);

comma

function comma(string memory str, address addr) internal pure returns (string memory);

dot

function dot(string memory str) internal pure returns (string memory);

addParens

function addParens(string memory str) internal pure returns (string memory);

parens

function parens(string memory str) internal pure returns (string memory);

brackL

function brackL(string memory str) internal pure returns (string memory);

brackR

function brackR(string memory str) internal pure returns (string memory);

toSequential

function toSequential(string memory str, uint256 i) internal pure returns (string memory);

toString

function toString(address addr) internal pure returns (string memory);

toBytes32

function toBytes32(address addr) internal pure returns (bytes32);

toString

function toString(bytes4 selector) internal pure returns (string memory);

toBytes

function toBytes(string memory str) internal pure returns (bytes memory);

substring

function substring(string memory str, uint256 n) internal pure returns (string memory);