-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwsex.h
39 lines (31 loc) · 822 Bytes
/
wsex.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// AYA version 5
//
// stl::wstringをchar*風に使うための関数など
// written by umeici. 2004
//
#ifndef WSEXH
#define WSEXH
#ifndef POSIX
# include "stdafx.h"
#else
# include <string>
# include <stdio.h>
using namespace std;
#endif
//----
#define WS_MAXLEN 1024
#define WS_EOF -1
int ws_atoi(const wstring &str, int base);
double ws_atof(const wstring &str);
void ws_itoa(wstring &str, int num, int base);
void ws_ftoa(wstring &str, double num);
void ws_eraseend(wstring &str, wchar_t c);
void ws_replace(wstring &str, const wstring &before, const wstring &after);
FILE *w_fopen(const wchar_t *fname, const wchar_t *mode);
//void write_utf8bom(FILE *fp);
int ws_fgets(wstring &str, FILE *stream, int charset, int ayc, int lc);
void cutbom(wstring &wstr);
inline void decodecipher(int &c);
//----
#endif