# cpcnv.h

`#include "dxlibp.h"`
cpcnv.hのインクルード依存関係図

ソースコードを見る。

## データ構造
struct | DXPCPTABLE_HEADER
struct | DXPCPTABLE
struct | DXPCPDATA
## マクロ定義
#define | DXPCPTABLE_MAX 20
#define | DXPCPTABLE_FILENAME "flash0:/vsh/etc/cptbl.dat"
#define | DXPCP_TOUCS2 0
#define | DXPCP_FROMUCS2 1
## 型定義
typedef u16 | dxpUcs2
typedef u8 | dxpChar
## 関数
void | dxpCpInit ()
int | dxpCpLoadTable (const char *filename, u8 cp, u8 direction)
int | MultiByteCharCheck (const char *Buf, int CharSet)
int | dxpCpSJIS_MultiByteCharCheck (dxpChar code)
int | dxpCpSJIS_Strlen (const dxpChar *str)
int | dxpCpSJIS_toUcs2 (dxpUcs2 *dst, u32 count, const dxpChar *src)
int | dxpCpSJIS_fromUcs2 (dxpChar *dst, u32 count, const dxpUcs2 *src)
int | dxpCpUTF8_toUcs2 (dxpUcs2 *dst, u32 count, const dxpChar *src)
int | dxpCpUTF8_fromUcs2 (dxpChar *dst, u32 count, const dxpUcs2 *src)
int | dxpCpUTF8_Strlen (const dxpChar *str)
static int | dxpCpUTF8_Charlen (const dxpChar *code)
int | dxpCpCode_Strlen (const dxpChar *str, u8 cp)
int | dxpCpCode_toUcs2 (dxpUcs2 *dst, u32 count, const dxpChar *src, u8 cp)
int | dxpCpCode_fromUcs2 (dxpChar *dst, u32 count, const dxpUcs2 *src, u8 cp)
int | dxpCpUCS2_Strlen (const dxpUcs2 *str)
## 変数
DXPCPDATA | dxpCpData

## マクロ定義

#define DXPCP_FROMUCS2 1

#define DXPCP_TOUCS2 0

#define DXPCPTABLE_FILENAME "flash0:/vsh/etc/cptbl.dat"

#define DXPCPTABLE_MAX 20

## 型定義

typedef u8 dxpChar

typedef u16 dxpUcs2

## 関数

int dxpCpCode_fromUcs2 | ( | dxpChar * | dst,
|  | u32 | count,
|  | const dxpUcs2 * | src,
|  | u8 | cp |
| ) |  |  |

int dxpCpCode_Strlen | ( | const dxpChar * | str,
|  | u8 | cp |
| ) |  |  |

int dxpCpCode_toUcs2 | ( | dxpUcs2 * | dst,
|  | u32 | count,
|  | const dxpChar * | src,
|  | u8 | cp |
| ) |  |  |

void dxpCpInit | ( |  | ) |

int dxpCpLoadTable | ( | const char * | filename,
|  | u8 | cp,
|  | u8 | direction |
| ) |  |  |

int dxpCpSJIS_fromUcs2 | ( | dxpChar * | dst,
|  | u32 | count,
|  | const dxpUcs2 * | src |
| ) |  |  |

int dxpCpSJIS_MultiByteCharCheck | ( | dxpChar | code | ) |

int dxpCpSJIS_Strlen | ( | const dxpChar * | str | ) |

int dxpCpSJIS_toUcs2 | ( | dxpUcs2 * | dst,
|  | u32 | count,
|  | const dxpChar * | src |
| ) |  |  |

int dxpCpUCS2_Strlen | ( | const dxpUcs2 * | str | ) |

static int dxpCpUTF8_Charlen | ( | const dxpChar * | code | ) | `[inline, static]`

int dxpCpUTF8_fromUcs2 | ( | dxpChar * | dst,
|  | u32 | count,
|  | const dxpUcs2 * | src |
| ) |  |  |

int dxpCpUTF8_Strlen | ( | const dxpChar * | str | ) |

int dxpCpUTF8_toUcs2 | ( | dxpUcs2 * | dst,
|  | u32 | count,
|  | const dxpChar * | src |
| ) |  |  |

int MultiByteCharCheck | ( | const char * | Buf,
|  | int | CharSet |
| ) |  |  |

## 変数

DXPCPDATA dxpCpData