]> granicus.if.org Git - icu/commitdiff
ICU-8575 move U_SENTINEL from utf.h to umachine.h (next to UChar32) so that just...
authorMarkus Scherer <markus.icu@gmail.com>
Thu, 28 Jul 2011 18:48:08 +0000 (18:48 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Thu, 28 Jul 2011 18:48:08 +0000 (18:48 +0000)
X-SVN-Rev: 30441

icu4c/source/common/unicode/umachine.h
icu4c/source/common/unicode/utf.h

index cd742ec43babb3a43fcd910f1a47482847eb8b6f..a8c8cc035a269dae9feed12228bee6442adb34ea 100644 (file)
@@ -297,6 +297,26 @@ typedef int8_t UBool;
  */
 typedef int32_t UChar32;
 
+/**
+ * This value is intended for sentinel values for APIs that
+ * (take or) return single code points (UChar32).
+ * It is outside of the Unicode code point range 0..0x10ffff.
+ * 
+ * For example, a "done" or "error" value in a new API
+ * could be indicated with U_SENTINEL.
+ *
+ * ICU APIs designed before ICU 2.4 usually define service-specific "done"
+ * values, mostly 0xffff.
+ * Those may need to be distinguished from
+ * actual U+ffff text contents by calling functions like
+ * CharacterIterator::hasNext() or UnicodeString::length().
+ *
+ * @return -1
+ * @see UChar32
+ * @stable ICU 2.4
+ */
+#define U_SENTINEL (-1)
+
 #include "unicode/urename.h"
 
 #endif
index 2f646013be0304bdd78fe6f072038ee1284d25a6..f5954fe9fe699893bd318e24772926c175a20c74 100644 (file)
 
 /* single-code point definitions -------------------------------------------- */
 
-/**
- * This value is intended for sentinel values for APIs that
- * (take or) return single code points (UChar32).
- * It is outside of the Unicode code point range 0..0x10ffff.
- * 
- * For example, a "done" or "error" value in a new API
- * could be indicated with U_SENTINEL.
- *
- * ICU APIs designed before ICU 2.4 usually define service-specific "done"
- * values, mostly 0xffff.
- * Those may need to be distinguished from
- * actual U+ffff text contents by calling functions like
- * CharacterIterator::hasNext() or UnicodeString::length().
- *
- * @return -1
- * @see UChar32
- * @stable ICU 2.4
- */
-#define U_SENTINEL (-1)
-
 /**
  * Is this code point a Unicode noncharacter?
  * @param c 32-bit code point