|  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 | | |  |  |  | 
 XMLBigInteger Class ReferenceInheritance diagram for XMLBigInteger: [legend]List of all members. 
|  |  | 
 Public Member Functions |  |  | XMLBigInteger (const XMLCh *const strValue, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |  |  | Constructs a newly allocated XMLBigIntegerobject that represents the value represented by the string.
 |  |  | ~XMLBigInteger () |  |  | XMLBigInteger (const XMLBigInteger &toCopy) |  | void | multiply (const unsigned int byteToShift) |  | void | divide (const unsigned int byteToShift) |  | int | getTotalDigit () const |  | XMLCh * | toString () const |  |  | Deprecated: please use getRawData. 
 |  | XMLCh * | getRawData () const |  |  | Return a copy of the fMagnitue. 
 |  | bool | operator== (const XMLBigInteger &toCompare) const |  |  | Compares this object to the specified object. 
 |  | int | getSign () const |  |  | Returns the signum function of this number (i.e., -1, 0 or 1 as the value of this number is negative, zero or positive). 
 |  | int | intValue () const |  | 
 Static Public Member Functions |  | static XMLCh * | getCanonicalRepresentation (const XMLCh *const rawData, MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager, bool isNonPositiveInteger=false) |  | static void | parseBigInteger (const XMLCh *const toConvert, XMLCh *const retBuffer, int &signValue, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |  | static int | compareValues (const XMLBigInteger *const lValue, const XMLBigInteger *const rValue, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |  | static int | compareValues (const XMLCh *const lString, const int &lSign, const XMLCh *const rString, const int &rSign, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager) |  
 Constructor & Destructor Documentation
 
  
    |  | 
Constructs a newly allocated XMLBigIntegerobject that represents the value represented by the string. 
The string is converted to an int value as if by the valueOfmethod. 
 Parameters:
  
    |  | strValue | the Stringto be converted to anXMLBigInteger. |  |  | manager | Pointer to the memory manager to be used to allocate objects. | 
 Exceptions:
  
    |  | NumberFormatException | if the Stringdoes not contain a parsable XMLBigInteger. | 
 |  
 
 
 Member Function Documentation
 
 
 
  
    | 
        
          | void XMLBigInteger::divide | ( | const unsigned int | byteToShift | ) |  |  |  
 
 
  
    | 
        
          | XMLCh * XMLBigInteger::getRawData | ( |  | ) | const |  |  
  
    |  | 
Return a copy of the fMagnitue. 
 
This is similar to toString, except the internal buffer is returned directly Caller is not required to delet the returned memory.      |  
 
  
    | 
        
          | int XMLBigInteger::getSign | ( |  | ) | const |  |  
  
    |  | 
Returns the signum function of this number (i.e., -1, 0 or 1 as the value of this number is negative, zero or positive). 
 
     |  
 
  
    | 
        
          | int XMLBigInteger::getTotalDigit | ( |  | ) | const |  |  
 
  
    | 
        
          | int XMLBigInteger::intValue | ( |  | ) | const |  |  
 
  
    | 
        
          | void XMLBigInteger::multiply | ( | const unsigned int | byteToShift | ) |  |  |  
 
  
    | 
        
          | bool XMLBigInteger::operator== | ( | const XMLBigInteger & | toCompare | ) | const |  |  
  
    |  | 
Compares this object to the specified object. 
 
The result is trueif and only if the argument is notnulland is anXMLBigIntegerobject that contains the sameintvalue as this object. 
 Parameters:
  
    |  | toCompare | the object to compare with. | 
 Returns:trueif the objects are the same;falseotherwise.
 |  
 
 
  
    | 
        
          | XMLCh * XMLBigInteger::toString | ( |  | ) | const |  |  
  
    |  | 
Deprecated: please use getRawData. 
 
Return a copy of the fMagnitue. A leading sign is ALWAYS in place and the caller of this method is responsible for the de-allocation of the memory.      |  The documentation for this class was generated from the following file:
 | 
 
 | 
 |