1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/Text/ASCIIEncoding.h
Halofreak1990 8f089dc2ab Added the current XFX directory tree.
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
2010-12-04 16:14:34 +00:00

36 lines
1.1 KiB
C++

/********************************************************
* ASCIIEncoding.h *
* *
* XFX ASCIIEncoding class definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _ASCIIENCODING_
#define _ASCIIENCODING_
#include "Encoding.h"
namespace System
{
namespace Text
{
/// <summary>
/// Represents an ASCII character encoding of Unicode characters.
/// </summary>
class ASCIIEncoding : public Encoding
{
public:
ASCIIEncoding();
int GetByteCount(char chars[], int index, int count);
int GetByteCount(String &chars);
int GetBytes(char chars[], int charIndex, int charCount, byte bytes[], int byteIndex);
int GetBytes(String &chars, int charIndex, int charCount, byte bytes[], int byteIndex);
int GetCharCount(byte bytes[], int index, int count);
int GetChars(byte bytes[], int byteIndex, int byteCount, char chars[], int charIndex);
int GetMaxByteCount(int charCount);
int GetMaxCharCount(int byteCount);
};
}
}
#endif //_ASCIIENCODING_