Lolly 1.4.27
Loading...
Searching...
No Matches
Namespaces | Functions
numeral.hpp File Reference
#include "basic.hpp"
#include "string.hpp"
#include <stdint.h>
Include dependency graph for numeral.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  lolly
 
namespace  lolly::data
 

Functions

string lolly::data::to_roman (int32_t nr)
 Generates a Roman numeral string for an integer.
 
string lolly::data::to_Roman (int32_t nr)
 Generates an uppercase Roman numeral string for an integer.
 
string lolly::data::to_hanzi (int32_t nr)
 Generates a Chinese numeral for a given integer.
 
string lolly::data::to_padded_hex (uint8_t i)
 Converts an 8-bit unsigned integer to a fixed-length (2) hex string.
 
string lolly::data::to_hex (int i)
 Converts an integer to a hexadecimal string.
 
string lolly::data::to_Hex (int i)
 
string lolly::data::to_hex (pointer ptr)
 Converts a pointer to a hexadecimal string.
 
string lolly::data::to_Hex (pointer ptr)
 
int lolly::data::from_hex (string s)
 Converts a hexadecimal string to an integer.
 
string lolly::data::as_hexadecimal (int i, int length)
 Converts an unsigned integer to a hexadecimal string with a fixed length.
 
string lolly::data::uint32_to_Hex (uint32_t i)
 Converts an unsigned integer to a hexadecimal string.
 
string lolly::data::binary_to_hexadecimal (string bin)
 Converts a binary stream to its hexadecimal represention.