Skip to content

Commit

Permalink
code cleanup and documentation fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabish121 committed Oct 29, 2013
1 parent 5be7173 commit e348ac1
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 65 deletions.
6 changes: 3 additions & 3 deletions activemq-cpp/src/main/decaf/lang/CharSequence.h
Expand Up @@ -54,7 +54,7 @@ namespace lang {
*
* @throws IndexOutOfBoundsException if index is > than length() or negative
*/
virtual char charAt( int index ) const = 0;
virtual char charAt(int index) const = 0;

/**
* Returns a new CharSequence that is a subsequence of this sequence. The
Expand All @@ -71,10 +71,10 @@ namespace lang {
*
* @throws IndexOutOfBoundsException if start or end > length() or start or end are negative.
*/
virtual CharSequence* subSequence( int start, int end ) const = 0;
virtual CharSequence* subSequence(int start, int end) const = 0;

/**
* @returns the string representation of this CharSequence
* @returns the String representation of this CharSequence
*/
virtual std::string toString() const = 0;

Expand Down
11 changes: 9 additions & 2 deletions activemq-cpp/src/main/decaf/lang/Character.cpp
Expand Up @@ -22,7 +22,14 @@ using namespace decaf;
using namespace decaf::lang;

////////////////////////////////////////////////////////////////////////////////
Character::Character( char value ) : value(value) {
const int Character::MIN_RADIX = 2;
const int Character::MAX_RADIX = 36;
const char Character::MIN_VALUE = (char)0x7F;
const char Character::MAX_VALUE = (char)0x80;
const int Character::SIZE = 8;

////////////////////////////////////////////////////////////////////////////////
Character::Character(char value) : value(value) {
}

////////////////////////////////////////////////////////////////////////////////
Expand All @@ -31,7 +38,7 @@ std::string Character::toString() const {
}

////////////////////////////////////////////////////////////////////////////////
int Character::digit( char c, int radix ) {
int Character::digit(char c, int radix) {
if( radix >= MIN_RADIX && radix <= MAX_RADIX ) {
int result = -1;
if( '0' <= c && c <= '9' ) {
Expand Down

0 comments on commit e348ac1

Please sign in to comment.