18#ifndef _DECAF_LANG_CHARACTER_H_
19#define _DECAF_LANG_CHARACTER_H_
73 return this->value < c.value ? -1 : (this->value > c.value) ? 1 : 0;
85 return this->value == c.value;
98 return this->value < c.value;
113 return this->value < c ? -1 : (this->value > c) ? 1 : 0;
125 return this->value == c;
138 return this->value < c;
145 return this->value == c.value;
152 return this->value == c;
166 return (
double) this->value;
175 return (
float) this->value;
184 return (
unsigned char) this->value;
193 return (
short) this->value;
202 return (
int) this->value;
211 return (
long long) this->value;
259 return c >=
'0' && c <=
'9';
271 return c >=
'a' && c <=
'z';
284 return c >=
'A' && c <=
'Z';
321 return (c >= 0 && c <= 0x1f) || ((
unsigned char) c >= 0x7f && (
unsigned char) c <= 0x9f);
349 static int digit(
char c,
int radix);
363 if (
'A' <= value && value <=
'Z') {
364 return (
char) (value + (
'a' -
'A'));
382 if (
'a' <= value && value <=
'z') {
383 return (
char) (value - (
'a' -
'A'));
virtual bool operator==(const char &c) const
Compares equality between this object and the one passed.
Definition Character.h:124
static bool isISOControl(char c)
Answers whether the character is an ISO control character, which is a char that lays in the range of ...
Definition Character.h:320
static bool isLowerCase(char c)
Indicates whether or not the given character is a lower case character.
Definition Character.h:270
static const int SIZE
The size of the primitive character in bits.
Definition Character.h:52
virtual int intValue() const
Answers the int value which the receiver represents.
Definition Character.h:201
static const char MIN_VALUE
The minimum value that a signed char can take on.
Definition Character.h:46
virtual double doubleValue() const
Answers the double value which the receiver represents.
Definition Character.h:165
virtual short shortValue() const
Answers the short value which the receiver represents.
Definition Character.h:192
static const int MIN_RADIX
The minimum radix available for conversion to and from strings.
Definition Character.h:40
virtual float floatValue() const
Answers the float value which the receiver represents.
Definition Character.h:174
virtual unsigned char byteValue() const
Answers the byte value which the receiver represents.
Definition Character.h:183
virtual long long longValue() const
Answers the long value which the receiver represents.
Definition Character.h:210
static bool isLetter(char c)
Indicates whether or not the given character is a letter.
Definition Character.h:295
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...
Definition Character.h:137
static bool isDigit(char c)
Indicates whether or not the given character is a digit.
Definition Character.h:258
static bool isLetterOrDigit(char c)
Indicates whether or not the given character is either a letter or a digit.
Definition Character.h:308
static bool isUpperCase(char c)
Indicates whether or not the given character is a upper case character.
Definition Character.h:283
bool equals(const char &c) const
Definition Character.h:151
static bool isWhitespace(char c)
Indicates whether or not the given character is considered whitespace.
Definition Character.h:237
std::string toString() const
static int digit(char c, int radix)
Returns the numeric value of the character ch in the specified radix.
virtual bool operator==(const Character &c) const
Compares equality between this object and the one passed.
Definition Character.h:84
static char toUpperCase(char value)
Returns the upper case equivalent for the specified character if the character is a lower case letter...
Definition Character.h:381
static Character valueOf(char value)
Returns a Character instance representing the specified char value.
Definition Character.h:224
static const char MAX_VALUE
The maximum value that a signed char can take on.
Definition Character.h:49
virtual int compareTo(const char &c) const
Compares this Character instance with a char type.
Definition Character.h:112
virtual int compareTo(const Character &c) const
Compares this Character instance with another.
Definition Character.h:72
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...
Definition Character.h:97
static char toLowerCase(char value)
Returns the lower case equivalent for the specified character if the character is an upper case lette...
Definition Character.h:362
static const int MAX_RADIX
The maximum radix available for conversion to and from strings.
Definition Character.h:43
bool equals(const Character &c) const
Definition Character.h:144
This interface imposes a total ordering on the objects of each class that implements it.
Definition Comparable.h:33
The abstract class Number is the superclass of classes Byte, Double, Float, Integer,...
Definition Number.h:35
#define DECAF_API
Definition Config.h:29
Definition ThreadingTypes.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25