Loxahatchee  v0.0.1-1346
Lox Convenience C++ Library
LoxPrices.hpp File Reference

Common functions to work with dollar amounts. More...

#include "string"
Include dependency graph for LoxPrices.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 Lox
 Common methods and functionality easily shared between projects.
 
 Lox::Prices
 Common functions to work with dollar amounts.
 

Functions

std::string Lox::Prices::format (const double &price)
 Format a numeric price into a standard price string. More...
 
bool Lox::Prices::nearlyTheSame (const double a, const double b)
 Determine if the two values are nearly the same. More...
 
bool Lox::Prices::parse (const std::string &str, double &price)
 Parse a text string and get back price information. More...
 
bool Lox::Prices::parse (const std::string &str, double &dollars, double &cents)
 Parse a text string and get back price information. More...
 
std::string Lox::Prices::reformatStr (const std::string &str)
 If the input string is a valid price, reformat the string. Make no change if the string is not a valid price. More...
 
bool Lox::Prices::validate (const std::string &str)
 Determine if the text is a valid dollar string. More...
 

Detailed Description

Common functions to work with dollar amounts.