You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/08/15 18:57:04 UTC
svn commit: r566262 -
/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Character.h
Author: tabish
Date: Wed Aug 15 09:57:03 2007
New Revision: 566262
URL: http://svn.apache.org/viewvc?view=rev&rev=566262
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103
Implementing the Primitive Wrappers fully
Modified:
activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Character.h
Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Character.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Character.h?view=diff&rev=566262&r1=566261&r2=566262
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Character.h (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Character.h Wed Aug 15 09:57:03 2007
@@ -257,6 +257,17 @@
}
/**
+ * 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
+ * @param c - the character, including supplementary characters
+ * @return true if the char is an ISO control character
+ */
+ static bool isISOControl( char c ) {
+ return ( c >= 0 && c <= 0x1f ) ||
+ ( (unsigned char)c >= 0x7f && (unsigned char)c <= 0x9f );
+ }
+
+ /**
* 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