|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73901 - sandbox/SOC/2011/checks/boost/checks
From: pierre.talbot.6114_at_[hidden]
Date: 2011-08-18 18:19:20
Author: trademark
Date: 2011-08-18 18:19:20 EDT (Thu, 18 Aug 2011)
New Revision: 73901
URL: http://svn.boost.org/trac/boost/changeset/73901
Log:
Add ISBN10 and ISBN13 forward declaration.
Text files modified:
sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
Modified: sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp
==============================================================================
--- sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp (original)
+++ sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp 2011-08-18 18:19:20 EDT (Thu, 18 Aug 2011)
@@ -63,6 +63,7 @@
#include <boost/checks/modulus11.hpp>
#include <boost/checks/modulus97.hpp>
#include <boost/checks/ean.hpp>
+#include <boost/checks/isbn.hpp>
#include <boost/checks/upc.hpp>
#include <boost/checks/amex.hpp>
#include <boost/checks/visa.hpp>
@@ -141,6 +142,20 @@
template <typename check_range>
typename boost::checks::ean_compute_algorithm::checkdigit<check_range>::type compute_ean8 (const check_range& check_seq);
+// IBSN-10 and ISBN-13
+
+template <typename check_range>
+bool check_isbn10 (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::mod11_compute_algorithm::checkdigit<check_range>::type compute_isbn10 (const check_range& check_seq) ;
+
+template <typename check_range>
+bool check_isbn13 (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::isbn13_compute_algorithm::checkdigit<check_range>::type compute_isbn13 (const check_range& check_seq) ;
+
// UPC-A
template <typename check_range>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk