Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / icu / source / i18n / bocsu.h
index 26562b1..37165b5 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-*   Copyright (C) 2001-2003, International Business Machines
+*   Copyright (C) 2001-2011, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
 *   file name:  bocsu.c
 
 #if !UCONFIG_NO_COLLATION
 
+U_NAMESPACE_BEGIN
+
+class ByteSink;
+
+U_NAMESPACE_END
+
 /*
  * "BOCSU"
  * Binary Ordered Compression Scheme for Unicode
     } \
 }
 
-U_CFUNC int32_t
-u_writeIdenticalLevelRun(const UChar *s, int32_t length, uint8_t *p);
+U_CFUNC void
+u_writeIdenticalLevelRun(const UChar *s, int32_t length, icu::ByteSink &sink);
 
 U_CFUNC int32_t
 u_writeIdenticalLevelRunTwoChars(UChar32 first, UChar32 second, uint8_t *p);
 
-U_CFUNC int32_t
-u_lengthOfIdenticalLevelRun(const UChar *s, int32_t length);
-
 U_CFUNC uint8_t *
 u_writeDiff(int32_t diff, uint8_t *p);