1*f6217f89SApple OSS Distributions /* 2*f6217f89SApple OSS Distributions * Copyright (c) 2016-2023 Apple Inc. All rights reserved. 3*f6217f89SApple OSS Distributions * 4*f6217f89SApple OSS Distributions * @APPLE_LICENSE_HEADER_START@ 5*f6217f89SApple OSS Distributions * 6*f6217f89SApple OSS Distributions * This file contains Original Code and/or Modifications of Original Code 7*f6217f89SApple OSS Distributions * as defined in and that are subject to the Apple Public Source License 8*f6217f89SApple OSS Distributions * Version 2.0 (the 'License'). You may not use this file except in 9*f6217f89SApple OSS Distributions * compliance with the License. Please obtain a copy of the License at 10*f6217f89SApple OSS Distributions * http://www.opensource.apple.com/apsl/ and read it before using this 11*f6217f89SApple OSS Distributions * file. 12*f6217f89SApple OSS Distributions * 13*f6217f89SApple OSS Distributions * The Original Code and all software distributed under the License are 14*f6217f89SApple OSS Distributions * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15*f6217f89SApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16*f6217f89SApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17*f6217f89SApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18*f6217f89SApple OSS Distributions * Please see the License for the specific language governing rights and 19*f6217f89SApple OSS Distributions * limitations under the License. 20*f6217f89SApple OSS Distributions * 21*f6217f89SApple OSS Distributions * @APPLE_LICENSE_HEADER_END@ 22*f6217f89SApple OSS Distributions */ 23*f6217f89SApple OSS Distributions 24*f6217f89SApple OSS Distributions #ifndef unicode_h 25*f6217f89SApple OSS Distributions #define unicode_h 26*f6217f89SApple OSS Distributions 27*f6217f89SApple OSS Distributions #ifdef KERNEL_PRIVATE 28*f6217f89SApple OSS Distributions 29*f6217f89SApple OSS Distributions #include <sys/cdefs.h> 30*f6217f89SApple OSS Distributions #include <stdbool.h> 31*f6217f89SApple OSS Distributions 32*f6217f89SApple OSS Distributions /* 33*f6217f89SApple OSS Distributions * WARNING - callers that use the following Unicode normalization interface for on-disk 34*f6217f89SApple OSS Distributions * structures should be aware that the implementation will be periodically updated for 35*f6217f89SApple OSS Distributions * the latest Unicode standard version. 36*f6217f89SApple OSS Distributions */ 37*f6217f89SApple OSS Distributions 38*f6217f89SApple OSS Distributions enum { 39*f6217f89SApple OSS Distributions /* Maximum size of UTF32 reordering buffer for stream-safe format */ 40*f6217f89SApple OSS Distributions kNCFStreamSafeBufMax = 32 41*f6217f89SApple OSS Distributions }; 42*f6217f89SApple OSS Distributions 43*f6217f89SApple OSS Distributions /* 44*f6217f89SApple OSS Distributions * utf8_normalizeOptCaseFoldAndHash 45*f6217f89SApple OSS Distributions * 46*f6217f89SApple OSS Distributions * Convert a given UTF-8 string to UTF-32 in one of the following normalized forms, 47*f6217f89SApple OSS Distributions * as specified by the case_sens parameter, and feed the result incrementally to 48*f6217f89SApple OSS Distributions * the provided hash function callback: 49*f6217f89SApple OSS Distributions * - "canonical caseless form" (case-folded NFD, as described by definition D145 50*f6217f89SApple OSS Distributions * in chapter 3 of The Unicode Standard); for case-insensitive behavior. 51*f6217f89SApple OSS Distributions * - standard NFD; for case-sensitive behavior (if case_sens = true). 52*f6217f89SApple OSS Distributions * 53*f6217f89SApple OSS Distributions * The input string should be valid UTF-8 that meets the criteria for stream safe 54*f6217f89SApple OSS Distributions * text as described in http://unicode.org/reports/tr15/#Stream_Safe_Text_Format. 55*f6217f89SApple OSS Distributions * It should not contain ASCII 0x00 or '/'. 56*f6217f89SApple OSS Distributions * 57*f6217f89SApple OSS Distributions * str: The input UTF-8 string (need not be 0 terminated) 58*f6217f89SApple OSS Distributions * str_len: The byte length of the input string (excluding any 0 terminator) 59*f6217f89SApple OSS Distributions * case_sens: False for case-insensitive behavior; generates canonical caseless form. 60*f6217f89SApple OSS Distributions * True for case-sensitive behavior; generates standard NFD. 61*f6217f89SApple OSS Distributions * hash_func: A pointer to a hashing function to compute the hash of the 62*f6217f89SApple OSS Distributions * normalized/case-folded result. buf contains buf_len bytes 63*f6217f89SApple OSS Distributions * of data to be added to the hash using the caller-supplied 64*f6217f89SApple OSS Distributions * context (ctx). 65*f6217f89SApple OSS Distributions * hash_ctx: The context for the hash function. 66*f6217f89SApple OSS Distributions * 67*f6217f89SApple OSS Distributions * Returns: 0 on success, or 68*f6217f89SApple OSS Distributions * EILSEQ: The input string contains illegal ASCII-range characters 69*f6217f89SApple OSS Distributions * (0x00 or '/'), or is not well-formed stream-safe UTF-8, or 70*f6217f89SApple OSS Distributions * contains codepoints that are non-characters or unassigned in 71*f6217f89SApple OSS Distributions * the version of Unicode currently supported. 72*f6217f89SApple OSS Distributions */ 73*f6217f89SApple OSS Distributions int utf8_normalizeOptCaseFoldAndHash(const char *str, 74*f6217f89SApple OSS Distributions size_t str_len, 75*f6217f89SApple OSS Distributions bool case_sens, 76*f6217f89SApple OSS Distributions void (*hash_func)(void *buf, size_t buf_len, void *ctx), 77*f6217f89SApple OSS Distributions void *hash_ctx); 78*f6217f89SApple OSS Distributions 79*f6217f89SApple OSS Distributions /* 80*f6217f89SApple OSS Distributions * utf8_normalizeOptCaseFoldAndCompare 81*f6217f89SApple OSS Distributions * 82*f6217f89SApple OSS Distributions * Determine whether two UTF-8 strings are equal after converting each to one of the 83*f6217f89SApple OSS Distributions * following normalized forms, as specified by the case_sens parameter: 84*f6217f89SApple OSS Distributions * - "canonical caseless form" (case-folded NFD); for case-insensitive comparison. 85*f6217f89SApple OSS Distributions * - standard NFD; for case-sensitive comparison (if case_sens = true). 86*f6217f89SApple OSS Distributions * On success, sets are_equal to true if the strings are equal, or false if they are not. 87*f6217f89SApple OSS Distributions * 88*f6217f89SApple OSS Distributions * The input strings should be valid UTF-8 that meet the criteria for stream safe 89*f6217f89SApple OSS Distributions * text as described in http://unicode.org/reports/tr15/#Stream_Safe_Text_Format. 90*f6217f89SApple OSS Distributions * They should not contain ASCII 0x00 or '/'. 91*f6217f89SApple OSS Distributions * 92*f6217f89SApple OSS Distributions * strA: A UTF-8 string to be compared (need not be 0 terminated) 93*f6217f89SApple OSS Distributions * strA_len: The byte length of strA (excluding any 0 terminator) 94*f6217f89SApple OSS Distributions * strB: The second UTF-8 string to be compared (need not be 0 terminated) 95*f6217f89SApple OSS Distributions * strB_len: The byte length of strB (excluding any 0 terminator) 96*f6217f89SApple OSS Distributions * case_sens: False for case-insensitive behavior; compares canonical caseless forms. 97*f6217f89SApple OSS Distributions * True for case-sensitive behavior; compares standard NFD forms. 98*f6217f89SApple OSS Distributions * are_equal: On success, set to true if the strings are equal, or set to false 99*f6217f89SApple OSS Distributions * if they are not. 100*f6217f89SApple OSS Distributions * 101*f6217f89SApple OSS Distributions * Returns: 0 on success, or 102*f6217f89SApple OSS Distributions * EILSEQ: One or both of the input strings contains illegal ASCII-range 103*f6217f89SApple OSS Distributions * characters (0x00 or '/'), or is not well-formed stream-safe UTF-8, 104*f6217f89SApple OSS Distributions * or contains codepoints that are non-characters or unassigned in 105*f6217f89SApple OSS Distributions * the version of Unicode currently supported. 106*f6217f89SApple OSS Distributions * Note: The comparison may terminate early when a difference is 107*f6217f89SApple OSS Distributions * detected, and may return 0 and set *are_equal=false even 108*f6217f89SApple OSS Distributions * if one or both strings are invalid. 109*f6217f89SApple OSS Distributions */ 110*f6217f89SApple OSS Distributions int utf8_normalizeOptCaseFoldAndCompare(const char *strA, 111*f6217f89SApple OSS Distributions size_t strA_len, 112*f6217f89SApple OSS Distributions const char *strB, 113*f6217f89SApple OSS Distributions size_t strB_len, 114*f6217f89SApple OSS Distributions bool case_sens, 115*f6217f89SApple OSS Distributions bool *are_equal); 116*f6217f89SApple OSS Distributions 117*f6217f89SApple OSS Distributions /* 118*f6217f89SApple OSS Distributions * utf8_normalizeOptCaseFold 119*f6217f89SApple OSS Distributions * 120*f6217f89SApple OSS Distributions * Convert a given UTF-8 string to UTF-32 in one of the following normalized forms, 121*f6217f89SApple OSS Distributions * as specified by the case_sens parameter, and copy the result to the ustr 122*f6217f89SApple OSS Distributions * buffer: 123*f6217f89SApple OSS Distributions * - "canonical caseless form" (case-folded NFD, as described by definition D145 124*f6217f89SApple OSS Distributions * in chapter 3 of The Unicode Standard); for case-insensitive behavior. 125*f6217f89SApple OSS Distributions * - standard NFD; for case-sensitive behavior (if case_sens = true). 126*f6217f89SApple OSS Distributions * 127*f6217f89SApple OSS Distributions * The input string should be valid UTF-8 that meets the criteria for stream safe 128*f6217f89SApple OSS Distributions * text as described in http://unicode.org/reports/tr15/#Stream_Safe_Text_Format. 129*f6217f89SApple OSS Distributions * It should not contain ASCII 0x00 or '/'. 130*f6217f89SApple OSS Distributions * 131*f6217f89SApple OSS Distributions * str: The input UTF-8 string (need not be 0 terminated) 132*f6217f89SApple OSS Distributions * str_len: The byte length of the input string (excluding any 0 terminator) 133*f6217f89SApple OSS Distributions * case_sens: False for case-insensitive behavior; generates canonical caseless form. 134*f6217f89SApple OSS Distributions * True for case-sensitive behavior; generates standard NFD. 135*f6217f89SApple OSS Distributions * ustr: A pointer to a buffer for the resulting UTF-32 string. 136*f6217f89SApple OSS Distributions * ustr_size: The capacity of ustr, in UTF-32 units. 137*f6217f89SApple OSS Distributions * ustr_len: Pointer to a value that will be filled in with the actual length 138*f6217f89SApple OSS Distributions * in UTF-32 units of the string copied to ustr. 139*f6217f89SApple OSS Distributions * 140*f6217f89SApple OSS Distributions * Returns: 0 on success, or 141*f6217f89SApple OSS Distributions * EILSEQ: The input string contains illegal ASCII-range characters 142*f6217f89SApple OSS Distributions * (0x00 or '/'), or is not well-formed stream-safe UTF-8, or 143*f6217f89SApple OSS Distributions * contains codepoints that are non-characters or unassigned in 144*f6217f89SApple OSS Distributions * the version of Unicode currently supported. 145*f6217f89SApple OSS Distributions * ENOMEM: ustr_size is insufficient for the resulting string. In this 146*f6217f89SApple OSS Distributions * case the value returned in *ustr_len is invalid. 147*f6217f89SApple OSS Distributions */ 148*f6217f89SApple OSS Distributions int utf8_normalizeOptCaseFold(const char *str, 149*f6217f89SApple OSS Distributions size_t str_len, 150*f6217f89SApple OSS Distributions bool case_sens, 151*f6217f89SApple OSS Distributions int32_t *ustr, 152*f6217f89SApple OSS Distributions int32_t ustr_size, 153*f6217f89SApple OSS Distributions int32_t *ustr_len); 154*f6217f89SApple OSS Distributions 155*f6217f89SApple OSS Distributions /* 156*f6217f89SApple OSS Distributions * utf8_normalizeOptCaseFoldToUTF8 157*f6217f89SApple OSS Distributions * 158*f6217f89SApple OSS Distributions * Convert a given UTF-8 string to UTF-8 in one of the following normalized forms, 159*f6217f89SApple OSS Distributions * as specified by the case_sens parameter, and copy the result to the ustr 160*f6217f89SApple OSS Distributions * buffer: 161*f6217f89SApple OSS Distributions * - "canonical caseless form" (case-folded NFD, as described by definition D145 162*f6217f89SApple OSS Distributions * in chapter 3 of The Unicode Standard); for case-insensitive behavior. 163*f6217f89SApple OSS Distributions * - standard NFD; for case-sensitive behavior (if case_sens = true). 164*f6217f89SApple OSS Distributions * 165*f6217f89SApple OSS Distributions * The input string should be valid UTF-8 that meets the criteria for stream safe 166*f6217f89SApple OSS Distributions * text as described in http://unicode.org/reports/tr15/#Stream_Safe_Text_Format. 167*f6217f89SApple OSS Distributions * It should not contain ASCII 0x00 or '/'. 168*f6217f89SApple OSS Distributions * 169*f6217f89SApple OSS Distributions * str: The input UTF-8 string (need not be 0 terminated) 170*f6217f89SApple OSS Distributions * str_len: The byte length of the input string (excluding any 0 terminator) 171*f6217f89SApple OSS Distributions * case_sens: False for case-insensitive behavior; generates canonical caseless form. 172*f6217f89SApple OSS Distributions * True for case-sensitive behavior; generates standard NFD. 173*f6217f89SApple OSS Distributions * ustr: A pointer to a buffer for the resulting UTF-8 string. 174*f6217f89SApple OSS Distributions * ustr_size: The capacity of ustr, in bytes. 175*f6217f89SApple OSS Distributions * ustr_len: Pointer to a value that will be filled in with the actual length 176*f6217f89SApple OSS Distributions * in bytes of the string copied to ustr. 177*f6217f89SApple OSS Distributions * 178*f6217f89SApple OSS Distributions * Returns: 0 on success, or 179*f6217f89SApple OSS Distributions * EILSEQ: The input string contains illegal ASCII-range characters 180*f6217f89SApple OSS Distributions * (0x00 or '/'), or is not well-formed stream-safe UTF-8, or 181*f6217f89SApple OSS Distributions * contains codepoints that are non-characters or unassigned in 182*f6217f89SApple OSS Distributions * the version of Unicode currently supported. 183*f6217f89SApple OSS Distributions * ENOMEM: ustr_size is insufficient for the resulting string. In this 184*f6217f89SApple OSS Distributions * case the value returned in *ustr_len is invalid. 185*f6217f89SApple OSS Distributions */ 186*f6217f89SApple OSS Distributions int utf8_normalizeOptCaseFoldToUTF8(const char *str, 187*f6217f89SApple OSS Distributions size_t str_len, 188*f6217f89SApple OSS Distributions bool case_sens, 189*f6217f89SApple OSS Distributions char *ustr, 190*f6217f89SApple OSS Distributions size_t ustr_size, 191*f6217f89SApple OSS Distributions size_t *ustr_len); 192*f6217f89SApple OSS Distributions 193*f6217f89SApple OSS Distributions /* 194*f6217f89SApple OSS Distributions * utf8_normalizeOptCaseFoldToUTF8ForPath 195*f6217f89SApple OSS Distributions * 196*f6217f89SApple OSS Distributions * Convert a given UTF-8 path string to UTF-8 in one of the following normalized forms, 197*f6217f89SApple OSS Distributions * as specified by the case_sens parameter, and copy the result to the ustr 198*f6217f89SApple OSS Distributions * buffer: 199*f6217f89SApple OSS Distributions * - "canonical caseless form" (case-folded NFD, as described by definition D145 200*f6217f89SApple OSS Distributions * in chapter 3 of The Unicode Standard); for case-insensitive behavior. 201*f6217f89SApple OSS Distributions * - standard NFD; for case-sensitive behavior (if case_sens = true). 202*f6217f89SApple OSS Distributions * 203*f6217f89SApple OSS Distributions * The input string should be valid UTF-8 that meets the criteria for stream safe 204*f6217f89SApple OSS Distributions * text as described in http://unicode.org/reports/tr15/#Stream_Safe_Text_Format. 205*f6217f89SApple OSS Distributions * 206*f6217f89SApple OSS Distributions * str: The input UTF-8 path string 207*f6217f89SApple OSS Distributions * str_len: The byte length of the input path string (excluding any 0 terminator) 208*f6217f89SApple OSS Distributions * case_sens: False for case-insensitive behavior; generates canonical caseless form. 209*f6217f89SApple OSS Distributions * True for case-sensitive behavior; generates standard NFD. 210*f6217f89SApple OSS Distributions * ustr: A pointer to a buffer for the resulting UTF-8 string. 211*f6217f89SApple OSS Distributions * ustr_size: The capacity of ustr, in bytes. 212*f6217f89SApple OSS Distributions * ustr_len: Pointer to a value that will be filled in with the actual length 213*f6217f89SApple OSS Distributions * in bytes of the string copied to ustr. 214*f6217f89SApple OSS Distributions * 215*f6217f89SApple OSS Distributions * Returns: 0 on success, or 216*f6217f89SApple OSS Distributions * EILSEQ: The input string contains illegal ASCII-range characters 217*f6217f89SApple OSS Distributions * (0x00), or is not well-formed stream-safe UTF-8, or 218*f6217f89SApple OSS Distributions * contains codepoints that are non-characters or unassigned in 219*f6217f89SApple OSS Distributions * the version of Unicode currently supported. 220*f6217f89SApple OSS Distributions * ENOMEM: ustr_size is insufficient for the resulting string. In this 221*f6217f89SApple OSS Distributions * case the value returned in *ustr_len is invalid. 222*f6217f89SApple OSS Distributions */ 223*f6217f89SApple OSS Distributions int utf8_normalizeOptCaseFoldToUTF8ForPath(const char *str, 224*f6217f89SApple OSS Distributions size_t str_len, 225*f6217f89SApple OSS Distributions bool case_sens, 226*f6217f89SApple OSS Distributions char *ustr, 227*f6217f89SApple OSS Distributions size_t ustr_size, 228*f6217f89SApple OSS Distributions size_t *ustr_len); 229*f6217f89SApple OSS Distributions 230*f6217f89SApple OSS Distributions /* 231*f6217f89SApple OSS Distributions * utf8_normalizeOptCaseFoldAndMatchSubstring 232*f6217f89SApple OSS Distributions * 233*f6217f89SApple OSS Distributions * Determine whether the normalized UTF32 string derived from a specified UTF-8 string 234*f6217f89SApple OSS Distributions * strA contains another UTF32 string ustrB which has already been normalized, typically 235*f6217f89SApple OSS Distributions * with normalizeOptCaseFold. The normalization for both strings is one of the following, 236*f6217f89SApple OSS Distributions * as specified by the case_sens parameter: 237*f6217f89SApple OSS Distributions * - "canonical caseless form" (case-folded NFD); for case-insensitive comparison. 238*f6217f89SApple OSS Distributions * - standard NFD; for case-sensitive comparison (if case_sens = true). 239*f6217f89SApple OSS Distributions * On success, sets are_equal to true if strA contains ustrB, or false otherwise. 240*f6217f89SApple OSS Distributions * 241*f6217f89SApple OSS Distributions * The input string strA should be valid UTF-8 that meets the criteria for stream safe 242*f6217f89SApple OSS Distributions * text as described in http://unicode.org/reports/tr15/#Stream_Safe_Text_Format. 243*f6217f89SApple OSS Distributions * It should not contain ASCII 0x00 or '/'. 244*f6217f89SApple OSS Distributions * 245*f6217f89SApple OSS Distributions * strA: A UTF-8 string (need not be 0 terminated) in which to search for the 246*f6217f89SApple OSS Distributions * substring specified by ustrB. 247*f6217f89SApple OSS Distributions * strA_len: The byte length of strA (excluding any 0 terminator) 248*f6217f89SApple OSS Distributions * ustrB: A normalized UTF-32 substring (need not be 0 terminated) to be searched 249*f6217f89SApple OSS Distributions * for in the UTF-32 string resulting from converting strA to the normalized 250*f6217f89SApple OSS Distributions * UTF-32 form specified by the case_sens parameter; ustrB must already be 251*f6217f89SApple OSS Distributions * in that form. Normally this will be produced using normalizeOptCaseFold. 252*f6217f89SApple OSS Distributions * ustrB_len: The length of ustrB in UTF-32 units (excluding any 0 terminator). 253*f6217f89SApple OSS Distributions * case_sens: False for case-insensitive matching; compares canonical caseless forms. 254*f6217f89SApple OSS Distributions * True for case-sensitive matching; compares standard NFD forms. 255*f6217f89SApple OSS Distributions * buf: Pointer to caller-supplied working memory for storing the portion of 256*f6217f89SApple OSS Distributions * strA which has been converted to normalized UTF-32. 257*f6217f89SApple OSS Distributions * buf_size: The size of buf. 258*f6217f89SApple OSS Distributions * has_match: On success, set to true if strA (when converter to UTF-32 and normalized 259*f6217f89SApple OSS Distributions * per case_sens) contains ustrB, set to false otherwise. 260*f6217f89SApple OSS Distributions * 261*f6217f89SApple OSS Distributions * Returns: 0 on success, or 262*f6217f89SApple OSS Distributions * EILSEQ: strA contains illegal ASCII-range characters (0x00 or '/'), or is 263*f6217f89SApple OSS Distributions * not well-formed stream-safe UTF-8, or contains codepoints that are 264*f6217f89SApple OSS Distributions * non-characters or unassigned in the version of Unicode currently 265*f6217f89SApple OSS Distributions * supported. 266*f6217f89SApple OSS Distributions * Note: The search may terminate early when a match is detected, and 267*f6217f89SApple OSS Distributions * may return 0 and set *has_match=true even if strA is invalid. 268*f6217f89SApple OSS Distributions * ENOMEM: buf_size is insufficient. 269*f6217f89SApple OSS Distributions */ 270*f6217f89SApple OSS Distributions int utf8_normalizeOptCaseFoldAndMatchSubstring(const char *strA, 271*f6217f89SApple OSS Distributions size_t strA_len, 272*f6217f89SApple OSS Distributions const int32_t *ustrB, 273*f6217f89SApple OSS Distributions int32_t ustrB_len, 274*f6217f89SApple OSS Distributions bool case_sens, 275*f6217f89SApple OSS Distributions void *buf, 276*f6217f89SApple OSS Distributions size_t buf_size, 277*f6217f89SApple OSS Distributions bool *has_match); 278*f6217f89SApple OSS Distributions 279*f6217f89SApple OSS Distributions /* 280*f6217f89SApple OSS Distributions * utf8_normalizeOptCaseFoldGetUVersion 281*f6217f89SApple OSS Distributions * 282*f6217f89SApple OSS Distributions * Get the Unicode and code version currently associated with the normalizeOptCaseFold 283*f6217f89SApple OSS Distributions * functions. The caller allocates the version array and passes it to the function, 284*f6217f89SApple OSS Distributions * which will fill out the array as follows: 285*f6217f89SApple OSS Distributions * version[0] = Unicode major version; for Unicode 6.3.0 this would be 6 286*f6217f89SApple OSS Distributions * version[1] = Unicode minor version; for Unicode 6.3.0 this would be 3 287*f6217f89SApple OSS Distributions * version[2] = Unicode patch version; for Unicode 6.3.0 this would be 0 288*f6217f89SApple OSS Distributions * version[3] = Code revision level; for any given Unicode version, this value starts 289*f6217f89SApple OSS Distributions * at 0 and is incremented for each significant revision to the 290*f6217f89SApple OSS Distributions * normalizeOptCaseFold functions. 291*f6217f89SApple OSS Distributions */ 292*f6217f89SApple OSS Distributions void utf8_normalizeOptCaseFoldGetUVersion(unsigned char version[4]); 293*f6217f89SApple OSS Distributions 294*f6217f89SApple OSS Distributions #endif /* KERNEL_PRIVATE */ 295*f6217f89SApple OSS Distributions 296*f6217f89SApple OSS Distributions #endif /* unicode_h */ 297