]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/bocsu.h
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / bocsu.h
index 26562b19948b37a0d89533daf78197899f2b6649..6b8ed5197097fdc959c952e76c93a9fe86d479e5 100644 (file)
@@ -1,10 +1,12 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 *******************************************************************************
-*   Copyright (C) 2001-2003, International Business Machines
+*   Copyright (C) 2001-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *******************************************************************************
-*   file name:  bocsu.c
-*   encoding:   US-ASCII
+*   file name:  bocsu.h
+*   encoding:   UTF-8
 *   tab size:   8 (not used)
 *   indentation:4
 *
 
 #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 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);
+U_CFUNC UChar32
+u_writeIdenticalLevelRun(UChar32 prev, const UChar *s, int32_t length, icu::ByteSink &sink);
 
 #endif /* #if !UCONFIG_NO_COLLATION */