# cpcnv.c

`#include <pspkernel.h>`
`#include <string.h>`
`#include <malloc.h>`
`#include <libc/stdio.h>`
`#include "../cpcnv.h"`
`#include "liblzr.h"`
cpcnv.cのインクルード依存関係図

## 関数
int | dxpCpSetTable (void *ptr, u32 bytesize, u8 cp, u8 direction)
int | dxpCpReleaseTable (u8 cp, u8 direction)
int | dxpCpLoadTable (const char *filename, u8 cp, u8 direction)
void | dxpCpInit ()
void | dxpCpShutDown (void)
dxpUcs2 | dxpCpSetErrorCharUCS2 (dxpUcs2 code)
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 | dxpCpCode_Strlen (const dxpChar *str, u8 cp)
## 変数
DXPCPDATA | dxpCpData = {0,0}

## 関数

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 dxpCpReleaseTable | ( | u8 | cp,
|  | u8 | direction |
| ) |  |  |

dxpUcs2 dxpCpSetErrorCharUCS2 | ( | dxpUcs2 | code | ) |

int dxpCpSetTable | ( | void * | ptr,
|  | u32 | bytesize,
|  | u8 | cp,
|  | u8 | direction |
| ) |  |  |

void dxpCpShutDown | ( | void |  | ) |

## 変数

DXPCPDATA dxpCpData = {0,0}