Annotation of kernel/bsd/hfs/hfscommon/Unicode/UCStringComparePriv.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3:  *
                      4:  * @APPLE_LICENSE_HEADER_START@
                      5:  * 
                      6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7:  * Reserved.  This file contains Original Code and/or Modifications of
                      8:  * Original Code as defined in and that are subject to the Apple Public
                      9:  * Source License Version 1.1 (the "License").  You may not use this file
                     10:  * except in compliance with the License.  Please obtain a copy of the
                     11:  * License at http://www.apple.com/publicsource and read it before using
                     12:  * this file.
                     13:  * 
                     14:  * The Original Code and all software distributed under the License are
                     15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
                     19:  * License for the specific language governing rights and limitations
                     20:  * under the License.
                     21:  * 
                     22:  * @APPLE_LICENSE_HEADER_END@
                     23:  */
                     24: 
                     25: /*
                     26:        File:           UCStringComparePriv.h
                     27: 
                     28:        Contains:       xxx put contents here xxx
                     29: 
                     30:        Version:        HFS Plus 1.0
                     31: 
                     32:        Copyright:      � 1997 by Apple Computer, Inc., all rights reserved.
                     33: 
                     34:        File Ownership:
                     35: 
                     36:                DRI:                            Mark Day
                     37: 
                     38:                Other Contact:          xxx put other contact here xxx
                     39: 
                     40:                Technology:                     xxx put technology here xxx
                     41: 
                     42:        Writers:
                     43: 
                     44:                (djb)   Don Brady
                     45:                (msd)   Mark Day
                     46: 
                     47:        Change History (most recent first):
                     48: 
                     49:           <CS1>         4/24/97        djb             first checked in
                     50:          <HFS1>         2/13/97        msd             first checked in
                     51: */
                     52: 
                     53: /* File: UCStringComparePriv.h */
                     54: 
                     55: #if TARGET_OS_MAC
                     56: #include <Types.h>
                     57: #elif TARGET_OS_RHAPSODY
                     58: #include <MacOSTypes.h>
                     59: #endif         /* TARGET_OS_MAC */
                     60: 
                     61: 
                     62: typedef SInt32 UCCollateResult;
                     63: 
                     64: typedef OptionBits UCCollateOptions;
                     65: enum {
                     66:        kUCCollateComposeSensitiveBit   = 0,
                     67:        kUCCollateCaseSensitiveBit= 1
                     68: };
                     69: enum {
                     70:        kUCCollateComposeSensitiveMask = 1L << kUCCollateComposeSensitiveBit,
                     71:        kUCCollateCaseSensitiveMask     = 1L << kUCCollateCaseSensitiveBit
                     72: };
                     73: 
                     74: /* Return values follow standard C library conventions */
                     75: 
                     76: /* strcmp */
                     77: extern UCCollateResult UCSimpleCompareStrings (
                     78:        const UniChar str1[], ItemCount length1,
                     79:        const UniChar str2[], ItemCount length2,
                     80:        UCCollateOptions options );
                     81: 
                     82: extern Boolean UCSimpleEqualStrings (
                     83:        const UniChar str1[], ItemCount length1,
                     84:        const UniChar str2[], ItemCount length2,
                     85:        UCCollateOptions options );
                     86: 
                     87: /* strstr */
                     88: extern Boolean UCSimpleFindString (
                     89:        const UniChar src[], ItemCount srcLength,
                     90:        const UniChar sub[], ItemCount subLength,
                     91:        UCCollateOptions options );

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.