Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

core_str.cpp File Reference

String <-> MPN conversion functions. More...

#include <string>
#include <stdexcept>
#include <cmath>
#include <cctype>
#include <mpn.h>

Namespaces

namespace  mp

Functions

string::size_type isNum (const string &s, radix_type b)
 Count the number of digits in a valid number.
radix_type guessbase (const string &s, radix_type b)
 Guess the base of a number in a string.
char isPow2 (char b)
void setchunk (mpn_::radix_type b, string::size_type &chunksize, mpn_::limb_type &chunk)
void stringclean (string &s, mpn_::radix_type b, int clear_zero)
 Clean out the strings that will be converted with mpn_::setString().


Detailed Description

String <-> MPN conversion functions.


Function Documentation

char isPow2 char  b  ) 
 

void setchunk mpn_::radix_type  b,
string::size_type chunksize,
mpn_::limb_type chunk
 


Generated on Fri Feb 4 16:17:55 2005 for LibMP++ by  doxygen 1.4.1