CharsetInfo.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994, 1997 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef CharsetInfo_INCLUDED
#define CharsetInfo_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include <limits.h>
#include "UnivCharsetDesc.h"
#include "Boolean.h"
#include "types.h"
#include "StringC.h"
#include "ISet.h"
#include "CharMap.h"
#ifdef SP_NAMESPACE
#endif
CharsetInfo();
CharsetInfo(const UnivCharsetDesc &);
void set(const UnivCharsetDesc &);
// Use only for characters guaranteed to me in the C basic execution
// character set and which have been verified to be in this
// character set.
Char execToDesc(char) const;
StringC execToDesc(const char *s) const;
// Return 0 for no matches, 1 for 1, 2 for more than 1
// to gets the first character; toSet gets all the characters
// if there's more than 1.
const;
const;
int digitWeight(Char) const;
int hexDigitWeight(Char) const;
const UnivCharsetDesc &desc() const;
void init();
};
inline
const
{
if (n == Unsigned32(-1))
return 0;
if (n != Unsigned32(-2)) {
return 1;
}
}
}
inline
const
{
if (n == Unsigned32(-1)) {
return 0;
}
if (n != Unsigned32(-2)) {
return 1;
}
}
}
inline
{
}
inline
{
return execToDesc_[(unsigned char)c];
}
inline
{
}
inline
{
return desc_;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not CharsetInfo_INCLUDED */