Mercurial > illumos > onarm
view usr/src/cmd/man/src/util/nsgmls.src/include/CharsetRegistry.h @ 0:c9caec207d52 b86
Initial porting based on b86
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Tue, 02 Jun 2009 18:56:50 +0900 |
parents | |
children | 1a15d5aaf794 |
line wrap: on
line source
// Copyright (c) 1997 James Clark // See the file COPYING for copying permission. #pragma ident "@(#)CharsetRegistry.h 1.3 00/07/17 SMI" #ifndef CharsetRegistry_INCLUDED #define CharsetRegistry_INCLUDED 1 #ifdef __GNUG__ #pragma interface #endif #include "Boolean.h" #include "types.h" #include "StringC.h" #include "CharsetInfo.h" #ifdef SP_NAMESPACE namespace SP_NAMESPACE { #endif class SP_API CharsetRegistry { public: class SP_API Iter { public: virtual ~Iter(); virtual Boolean next(WideChar &min, WideChar &max, UnivChar &) = 0; }; enum ISORegistrationNumber { UNREGISTERED = 0, ISO646_ASCII_G0 = 6, ISO646_C0 = 1, ISO6429 = 77, ISO8859_1 = 100, ISO8859_2 = 101, ISO8859_3 = 109, ISO8859_4 = 110, ISO8859_5 = 144, ISO8859_6 = 127, ISO8859_7 = 126, ISO8859_8 = 138, ISO8859_9 = 148, ISO646_JIS_G0 = 14, JIS0201 = 13, JIS0208 = 168, JIS0212 = 159, KSC5601 = 149, GB2312 = 58, ISO10646_UCS2 = 176, ISO10646_UCS4 = 177, BIG5 = 65535 // not registered }; static ISORegistrationNumber getRegistrationNumber(const StringC &desig, const CharsetInfo &); static Iter *makeIter(ISORegistrationNumber); }; #ifdef SP_NAMESPACE } #endif #endif /* not CharsetRegistry_INCLUDED */