|
activemq-cpp-3.3.0
|
#include <src/main/decaf/lang/Character.h>

Public Member Functions | |
| Character (char value) | |
| virtual int | compareTo (const Character &c) const |
| Compares this Character instance with another. | |
| virtual bool | operator== (const Character &c) const |
| Compares equality between this object and the one passed. | |
| virtual bool | operator< (const Character &c) const |
| Compares this object to another and returns true if this object is considered to be less than the one passed. | |
| virtual int | compareTo (const char &c) const |
| Compares this Character instance with a char type. | |
| virtual bool | operator== (const char &c) const |
| Compares equality between this object and the one passed. | |
| virtual bool | operator< (const char &c) const |
| Compares this object to another and returns true if this object is considered to be less than the one passed. | |
| bool | equals (const Character &c) const |
| bool | equals (const char &c) const |
| std::string | toString () const |
| virtual double | doubleValue () const |
| Answers the double value which the receiver represents. | |
| virtual float | floatValue () const |
| Answers the float value which the receiver represents. | |
| virtual unsigned char | byteValue () const |
| Answers the byte value which the receiver represents. | |
| virtual short | shortValue () const |
| Answers the short value which the receiver represents. | |
| virtual int | intValue () const |
| Answers the int value which the receiver represents. | |
| virtual long long | longValue () const |
| Answers the long value which the receiver represents. | |
Static Public Member Functions | |
| static Character | valueOf (char value) |
| Returns a Character instance representing the specified char value. | |
| static bool | isWhitespace (char c) |
| Indicates whether or not the given character is considered whitespace. | |
| static bool | isDigit (char c) |
| Indicates whether or not the given character is a digit. | |
| static bool | isLowerCase (char c) |
| Indicates whether or not the given character is a lower case character. | |
| static bool | isUpperCase (char c) |
| Indicates whether or not the given character is a upper case character. | |
| static bool | isLetter (char c) |
| Indicates whether or not the given character is a letter. | |
| static bool | isLetterOrDigit (char c) |
| Indicates whether or not the given character is either a letter or a digit. | |
| static bool | isISOControl (char c) |
| Answers whether the character is an ISO control character, which is a char that lays in the range of 0 to 1f and 7f to 9f. | |
| static int | digit (char c, int radix) |
| Returns the numeric value of the character ch in the specified radix. | |
Static Public Attributes | |
| static const int | MIN_RADIX = 2 |
| The minimum radix available for conversion to and from strings. | |
| static const int | MAX_RADIX = 36 |
| The maximum radix available for conversion to and from strings. | |
| static const char | MIN_VALUE = (char)0x7F |
| The minimum value that a signed char can take on. | |
| static const char | MAX_VALUE = (char)0x80 |
| The maximum value that a signed char can take on. | |
| static const int | SIZE = 8 |
| The size of the primitive charactor in bits. | |
| decaf::lang::Character::Character | ( | char | value | ) |
| value | - char to wrap. |
| virtual unsigned char decaf::lang::Character::byteValue | ( | ) | const [inline, virtual] |
Answers the byte value which the receiver represents.
Reimplemented from decaf::lang::Number.
| virtual int decaf::lang::Character::compareTo | ( | const char & | c | ) | const [inline, virtual] |
Compares this Character instance with a char type.
| c | - the char instance to be compared |
Implements decaf::lang::Comparable< char >.
| virtual int decaf::lang::Character::compareTo | ( | const Character & | c | ) | const [inline, virtual] |
Compares this Character instance with another.
| c | - the Character instance to be compared |
Implements decaf::lang::Comparable< Character >.
| static int decaf::lang::Character::digit | ( | char | c, |
| int | radix | ||
| ) | [static] |
Returns the numeric value of the character ch in the specified radix.
If the radix is not in the range MIN_RADIX <= radix <= MAX_RADIX or if the value of ch is not a valid digit in the specified radix, -1 is returned. A character is a valid digit if at least one of the following is true:
* The method isDigit is true of the character and the single-character decomposition is less than the specified radix. In this case the decimal digit value is returned. * The character is one of the uppercase Latin letters 'A' through 'Z' and its code is less than radix + 'A' - 10. In this case, ch - 'A' + 10 is returned. * The character is one of the lowercase Latin letters 'a' through 'z' and its code is less than radix + 'a' - 10. In this case, ch - 'a' + 10 is returned.
| c | - the char to be converted |
| radix | - the radix of the number |
| virtual double decaf::lang::Character::doubleValue | ( | ) | const [inline, virtual] |
Answers the double value which the receiver represents.
Implements decaf::lang::Number.
| bool decaf::lang::Character::equals | ( | const char & | c | ) | const [inline, virtual] |
Implements decaf::lang::Comparable< char >.
| bool decaf::lang::Character::equals | ( | const Character & | c | ) | const [inline, virtual] |
Implements decaf::lang::Comparable< Character >.
| virtual float decaf::lang::Character::floatValue | ( | ) | const [inline, virtual] |
Answers the float value which the receiver represents.
Implements decaf::lang::Number.
| virtual int decaf::lang::Character::intValue | ( | ) | const [inline, virtual] |
Answers the int value which the receiver represents.
Implements decaf::lang::Number.
| static bool decaf::lang::Character::isDigit | ( | char | c | ) | [inline, static] |
Indicates whether or not the given character is a digit.
| static bool decaf::lang::Character::isISOControl | ( | char | c | ) | [inline, static] |
Answers whether the character is an ISO control character, which is a char that lays in the range of 0 to 1f and 7f to 9f.
| c | - the character, including supplementary characters |
| static bool decaf::lang::Character::isLetter | ( | char | c | ) | [inline, static] |
Indicates whether or not the given character is a letter.
| static bool decaf::lang::Character::isLetterOrDigit | ( | char | c | ) | [inline, static] |
Indicates whether or not the given character is either a letter or a digit.
| static bool decaf::lang::Character::isLowerCase | ( | char | c | ) | [inline, static] |
Indicates whether or not the given character is a lower case character.
| static bool decaf::lang::Character::isUpperCase | ( | char | c | ) | [inline, static] |
Indicates whether or not the given character is a upper case character.
| static bool decaf::lang::Character::isWhitespace | ( | char | c | ) | [inline, static] |
Indicates whether or not the given character is considered whitespace.
| virtual long long decaf::lang::Character::longValue | ( | ) | const [inline, virtual] |
Answers the long value which the receiver represents.
Implements decaf::lang::Number.
| virtual bool decaf::lang::Character::operator< | ( | const Character & | c | ) | const [inline, virtual] |
Compares this object to another and returns true if this object is considered to be less than the one passed.
This
| c | - the value to be compared to this one. |
Implements decaf::lang::Comparable< Character >.
| virtual bool decaf::lang::Character::operator< | ( | const char & | c | ) | const [inline, virtual] |
Compares this object to another and returns true if this object is considered to be less than the one passed.
This
| c | - the value to be compared to this one. |
Implements decaf::lang::Comparable< char >.
| virtual bool decaf::lang::Character::operator== | ( | const Character & | c | ) | const [inline, virtual] |
Compares equality between this object and the one passed.
| c | - the value to be compared to this one. |
Implements decaf::lang::Comparable< Character >.
| virtual bool decaf::lang::Character::operator== | ( | const char & | c | ) | const [inline, virtual] |
Compares equality between this object and the one passed.
| c | - the value to be compared to this one. |
Implements decaf::lang::Comparable< char >.
| virtual short decaf::lang::Character::shortValue | ( | ) | const [inline, virtual] |
Answers the short value which the receiver represents.
Reimplemented from decaf::lang::Number.
| std::string decaf::lang::Character::toString | ( | ) | const |
| static Character decaf::lang::Character::valueOf | ( | char | value | ) | [inline, static] |
Returns a Character instance representing the specified char value.
| value | - the primitive char to wrap. |
const int decaf::lang::Character::MAX_RADIX = 36 [static] |
The maximum radix available for conversion to and from strings.
const char decaf::lang::Character::MAX_VALUE = (char)0x80 [static] |
The maximum value that a signed char can take on.
const int decaf::lang::Character::MIN_RADIX = 2 [static] |
The minimum radix available for conversion to and from strings.
const char decaf::lang::Character::MIN_VALUE = (char)0x7F [static] |
The minimum value that a signed char can take on.
const int decaf::lang::Character::SIZE = 8 [static] |
The size of the primitive charactor in bits.