CodingSystem.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef CodingSystem_INCLUDED
#define CodingSystem_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "types.h"
#include "Boolean.h"
#include "StringC.h"
#include "OutputByteStream.h"
#include <stddef.h>
#ifdef SP_NAMESPACE
#endif
// Decoder assumes that for every decoded Char there must be at least
// minBytesPerChar bytes
unsigned minBytesPerChar() const;
unsigned minBytesPerChar_;
};
};
Encoder();
// This outputs a byte order mark with Unicode.
};
void setUnencodableHandler(Handler *);
};
};
virtual unsigned fixedBytesPerChar() const;
};
};
inline
unsigned Decoder::minBytesPerChar() const
{
return minBytesPerChar_;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not CodingSystem_INCLUDED */