Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

unicdcm.h

Go to the documentation of this file.
00001 /*
00002 *****************************************************************************************
00003 * Copyright © {1997-1999}, International Business Machines Corporation and others. All Rights Reserved.
00004 *                                                                                       *
00005 *****************************************************************************************
00006 *
00007 * File UNICDCM.H
00008 *
00009 * UnicodeClassMapping maps characters to state change inputs for WordBreakTable.
00010 *
00011 * @package  Text and International
00012 * @category Text Scanning
00013 *
00014 * Modification History:
00015 *
00016 *   Date        Name        Description
00017 *   02/18/97    aliu        Converted from OpenClass.
00018 *   05/06/97    aliu        Made SpecialMapping an array of objects instead of pointers,
00019 *                           to help out non-compliant compilers.
00020 *****************************************************************************************
00021 */
00022 
00023 #ifndef UNICDCM_H
00024 #define UNICDCM_H
00025 
00026 #include "spclmap.h"
00027 #include "unicode/unicode.h"
00028 
00038 class UnicodeClassMapping {
00039 public:
00040     // For convenience
00041     typedef TextBoundaryData::Type Type;
00042 
00048     UnicodeClassMapping(Type* mappedValue, 
00049             int32_t mappedValue_length,
00050                         const SpecialMapping* exceptionChars, 
00051             int32_t exceptionChars_length,
00052                         const UBool* hasException,
00053                         Type* asiiValues );
00054     
00060     Type mappedChar(UChar ch) const;
00061 
00062 private:
00063     const UBool            *fHasException;
00064     const Type*             fMappedValue;
00065     const int32_t           fMappedValue_length;
00066     const SpecialMapping*   fExceptionChars;
00067     const int32_t           fExceptionChars_length;
00068     const Type*             fAsciiValues;
00069 };
00070 
00071 #endif // _UNICDCM
00072 //eof

Generated at Tue Dec 5 17:55:35 2000 for ICU by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000