• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revisiond20ffc30d5c51ad2e5dad4c1d4a366b650cdbb03 (tree)
Zeit2012-01-19 07:40:26
AutorMoriguchi, Hirokazu <umorigu@gmai...>
CommiterMoriguchi, Hirokazu

Log Message

Delete mbtoutf8 and encutf8 files

Ändern Zusammenfassung

  • delete: encutf8/ReadMe.txt
  • delete: encutf8/encutf8.cpp
  • delete: encutf8/encutf8.sln
  • delete: encutf8/encutf8.vcproj
  • delete: encutf8/stdafx.cpp
  • delete: encutf8/stdafx.h
  • delete: encutf8/targetver.h
  • delete: mbtoutf8.bat
  • delete: mbtoutf8.exe
  • delete: mbtoutf8/ReadMe.txt
  • delete: mbtoutf8/mbtoutf8.cpp
  • delete: mbtoutf8/mbtoutf8.sln
  • delete: mbtoutf8/mbtoutf8.vcproj
  • delete: mbtoutf8/stdafx.cpp
  • delete: mbtoutf8/stdafx.h
  • delete: mbtoutf8/targetver.h

Diff

--- a/encutf8/ReadMe.txt
+++ /dev/null
@@ -1,29 +0,0 @@
1-========================================================================
2- コンソール アプリケーション : encutf8 プロジェクトの概要
3-========================================================================
4-
5-この encutf8 アプリケーションは、AppWizard によって作成されました。
6-
7-このファイルには、encutf8 アプリケーションを構成する各ファイル
8-の内容の概略が記述されています。
9-
10-
11-encutf8.vcproj
12- これは、アプリケーション ウィザードを使用して生成された VC++ プロジェクトのメイン プロジェクト ファイルです。
13- ファイルを生成した Visual C++ のバージョンに関する情報と、アプリケーション ウィザードで選択されたプラットフォーム、構成、およびプロジェクト機能に関する情報が含まれています。
14-
15-encutf8.cpp
16- これは、メインのアプリケーション ソース ファイルです。
17-
18-/////////////////////////////////////////////////////////////////////////////
19-その他の標準ファイル :
20-
21-StdAfx.h, StdAfx.cpp
22- これらのファイルは、プリコンパイル済みヘッダー (PCH) ファイル encutf8.pch とプリコンパイル済み型ファイル StdAfx.obj をビルドするために使用されます。
23-
24-/////////////////////////////////////////////////////////////////////////////
25-その他のメモ :
26-
27-AppWizard では、ユーザーが追加またはカスタマイズする必要のあるソース コードの部分を示すために、"TODO:" コメントを使用します。
28-
29-/////////////////////////////////////////////////////////////////////////////
--- a/encutf8/encutf8.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
1-// encutf8.cpp : ƒRƒ“ƒ\[ƒ‹ ƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚̃Gƒ“ƒgƒŠ ƒ|ƒCƒ“ƒg‚ð’è‹`‚µ‚Ü‚·B
2-//
3-
4-#include "stdafx.h"
5-
6-
7-int _tmain(int argc, _TCHAR* argv[])
8-{
9- FILE* fpIn;
10- FILE* fpOut;
11- fpos_t Length;
12- int InLength;
13- char* pInBuffer;
14- int UTF16Length;
15- wchar_t* pUTF16Buffer;
16- int OutLength;
17- char* pOutBuffer;
18- _tsetlocale(LC_ALL, _T(""));
19- if(argc != 3)
20- {
21- _tprintf(_T("ƒ}ƒ‹ƒ`ƒoƒCƒg•¶ŽšiƒR[ƒhƒy[ƒW932‚Ü‚½‚ÍShift JISj‚ŏ‘‚©‚ꂽƒeƒLƒXƒgƒtƒ@ƒCƒ‹‚ðUTF-8‚ɃGƒ“ƒR[ƒh‚µ‚Ü‚·B\n"));
22- _tprintf(_T("ƒRƒ}ƒ“ƒhƒ‰ƒCƒ“\n"));
23- _tprintf(_T("encutf8 [in] [out]\n"));
24- _tprintf(_T("[in] Œ³‚̃\[ƒXƒtƒ@ƒCƒ‹‚̃tƒ@ƒCƒ‹–¼\n"));
25- _tprintf(_T("[out] •Û‘¶æ‚̃tƒ@ƒCƒ‹–¼\n"));
26- return 0;
27- }
28- fpIn = _tfopen(argv[1], _T("rb"));
29- if(!fpIn)
30- {
31- _tprintf(_T("ƒtƒ@ƒCƒ‹\"%s\"‚ªŠJ‚¯‚Ü‚¹‚ñB\n"), argv[1]);
32- return 0;
33- }
34- fseek(fpIn, 0, SEEK_END);
35- fgetpos(fpIn, &Length);
36- fseek(fpIn, 0, SEEK_SET);
37- InLength = Length / sizeof(char);
38- pInBuffer = new char[InLength];
39- UTF16Length = InLength;
40- pUTF16Buffer = new wchar_t[InLength];
41- OutLength = InLength * 4;
42- pOutBuffer = new char[OutLength];
43- if(!pInBuffer || !pUTF16Buffer || !pOutBuffer)
44- {
45- _tprintf(_T("ƒƒ‚ƒŠ‚ªŠm•Û‚Å‚«‚Ü‚¹‚ñB\n"));
46- return 0;
47- }
48- fread(pInBuffer, 1, InLength, fpIn);
49- fclose(fpIn);
50- fpOut = _tfopen(argv[2], _T("wb"));
51- if(!fpIn)
52- {
53- _tprintf(_T("ƒtƒ@ƒCƒ‹\"%s\"‚ªì¬‚Å‚«‚Ü‚¹‚ñB\n"), argv[2]);
54- return 0;
55- }
56- fwrite("\xEF\xBB\xBF", 1, 3, fpOut);
57- UTF16Length = MultiByteToWideChar(CP_ACP, 0, pInBuffer, InLength / sizeof(char), pUTF16Buffer, UTF16Length);
58- OutLength = WideCharToMultiByte(CP_UTF8, 0, pUTF16Buffer, UTF16Length, pOutBuffer, OutLength / sizeof(char), NULL, NULL);
59- fwrite(pOutBuffer, sizeof(char), OutLength, fpOut);
60- fclose(fpOut);
61- return 0;
62-}
63-
--- a/encutf8/encutf8.sln
+++ /dev/null
@@ -1,20 +0,0 @@
1-
2-Microsoft Visual Studio Solution File, Format Version 10.00
3-# Visual Studio 2008
4-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "encutf8", "encutf8.vcproj", "{655A8FD3-5998-472F-8906-F0A028B70C4F}"
5-EndProject
6-Global
7- GlobalSection(SolutionConfigurationPlatforms) = preSolution
8- Debug|Win32 = Debug|Win32
9- Release|Win32 = Release|Win32
10- EndGlobalSection
11- GlobalSection(ProjectConfigurationPlatforms) = postSolution
12- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Debug|Win32.ActiveCfg = Debug|Win32
13- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Debug|Win32.Build.0 = Debug|Win32
14- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Release|Win32.ActiveCfg = Release|Win32
15- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Release|Win32.Build.0 = Release|Win32
16- EndGlobalSection
17- GlobalSection(SolutionProperties) = preSolution
18- HideSolutionNode = FALSE
19- EndGlobalSection
20-EndGlobal
--- a/encutf8/encutf8.vcproj
+++ /dev/null
@@ -1,225 +0,0 @@
1-<?xml version="1.0" encoding="shift_jis"?>
2-<VisualStudioProject
3- ProjectType="Visual C++"
4- Version="9.00"
5- Name="encutf8"
6- ProjectGUID="{655A8FD3-5998-472F-8906-F0A028B70C4F}"
7- RootNamespace="encutf8"
8- Keyword="Win32Proj"
9- TargetFrameworkVersion="196613"
10- >
11- <Platforms>
12- <Platform
13- Name="Win32"
14- />
15- </Platforms>
16- <ToolFiles>
17- </ToolFiles>
18- <Configurations>
19- <Configuration
20- Name="Debug|Win32"
21- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
22- IntermediateDirectory="$(ConfigurationName)"
23- ConfigurationType="1"
24- CharacterSet="1"
25- >
26- <Tool
27- Name="VCPreBuildEventTool"
28- />
29- <Tool
30- Name="VCCustomBuildTool"
31- />
32- <Tool
33- Name="VCXMLDataGeneratorTool"
34- />
35- <Tool
36- Name="VCWebServiceProxyGeneratorTool"
37- />
38- <Tool
39- Name="VCMIDLTool"
40- />
41- <Tool
42- Name="VCCLCompilerTool"
43- Optimization="0"
44- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
45- MinimalRebuild="true"
46- BasicRuntimeChecks="3"
47- RuntimeLibrary="3"
48- UsePrecompiledHeader="2"
49- WarningLevel="3"
50- DebugInformationFormat="4"
51- />
52- <Tool
53- Name="VCManagedResourceCompilerTool"
54- />
55- <Tool
56- Name="VCResourceCompilerTool"
57- />
58- <Tool
59- Name="VCPreLinkEventTool"
60- />
61- <Tool
62- Name="VCLinkerTool"
63- LinkIncremental="2"
64- GenerateDebugInformation="true"
65- SubSystem="1"
66- TargetMachine="1"
67- />
68- <Tool
69- Name="VCALinkTool"
70- />
71- <Tool
72- Name="VCManifestTool"
73- />
74- <Tool
75- Name="VCXDCMakeTool"
76- />
77- <Tool
78- Name="VCBscMakeTool"
79- />
80- <Tool
81- Name="VCFxCopTool"
82- />
83- <Tool
84- Name="VCAppVerifierTool"
85- />
86- <Tool
87- Name="VCPostBuildEventTool"
88- />
89- </Configuration>
90- <Configuration
91- Name="Release|Win32"
92- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
93- IntermediateDirectory="$(ConfigurationName)"
94- ConfigurationType="1"
95- CharacterSet="1"
96- WholeProgramOptimization="1"
97- >
98- <Tool
99- Name="VCPreBuildEventTool"
100- />
101- <Tool
102- Name="VCCustomBuildTool"
103- />
104- <Tool
105- Name="VCXMLDataGeneratorTool"
106- />
107- <Tool
108- Name="VCWebServiceProxyGeneratorTool"
109- />
110- <Tool
111- Name="VCMIDLTool"
112- />
113- <Tool
114- Name="VCCLCompilerTool"
115- Optimization="2"
116- EnableIntrinsicFunctions="true"
117- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
118- RuntimeLibrary="2"
119- EnableFunctionLevelLinking="true"
120- UsePrecompiledHeader="2"
121- WarningLevel="3"
122- DebugInformationFormat="3"
123- />
124- <Tool
125- Name="VCManagedResourceCompilerTool"
126- />
127- <Tool
128- Name="VCResourceCompilerTool"
129- />
130- <Tool
131- Name="VCPreLinkEventTool"
132- />
133- <Tool
134- Name="VCLinkerTool"
135- LinkIncremental="1"
136- GenerateDebugInformation="true"
137- SubSystem="1"
138- OptimizeReferences="2"
139- EnableCOMDATFolding="2"
140- TargetMachine="1"
141- />
142- <Tool
143- Name="VCALinkTool"
144- />
145- <Tool
146- Name="VCManifestTool"
147- />
148- <Tool
149- Name="VCXDCMakeTool"
150- />
151- <Tool
152- Name="VCBscMakeTool"
153- />
154- <Tool
155- Name="VCFxCopTool"
156- />
157- <Tool
158- Name="VCAppVerifierTool"
159- />
160- <Tool
161- Name="VCPostBuildEventTool"
162- />
163- </Configuration>
164- </Configurations>
165- <References>
166- </References>
167- <Files>
168- <Filter
169- Name="ƒ\[ƒX ƒtƒ@ƒCƒ‹"
170- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
171- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
172- >
173- <File
174- RelativePath=".\encutf8.cpp"
175- >
176- </File>
177- <File
178- RelativePath=".\stdafx.cpp"
179- >
180- <FileConfiguration
181- Name="Debug|Win32"
182- >
183- <Tool
184- Name="VCCLCompilerTool"
185- UsePrecompiledHeader="1"
186- />
187- </FileConfiguration>
188- <FileConfiguration
189- Name="Release|Win32"
190- >
191- <Tool
192- Name="VCCLCompilerTool"
193- UsePrecompiledHeader="1"
194- />
195- </FileConfiguration>
196- </File>
197- </Filter>
198- <Filter
199- Name="ƒwƒbƒ_[ ƒtƒ@ƒCƒ‹"
200- Filter="h;hpp;hxx;hm;inl;inc;xsd"
201- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
202- >
203- <File
204- RelativePath=".\stdafx.h"
205- >
206- </File>
207- <File
208- RelativePath=".\targetver.h"
209- >
210- </File>
211- </Filter>
212- <Filter
213- Name="ƒŠƒ\[ƒX ƒtƒ@ƒCƒ‹"
214- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
215- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
216- >
217- </Filter>
218- <File
219- RelativePath=".\ReadMe.txt"
220- >
221- </File>
222- </Files>
223- <Globals>
224- </Globals>
225-</VisualStudioProject>
--- a/encutf8/stdafx.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
1-// stdafx.cpp : •W€ƒCƒ“ƒNƒ‹[ƒh encutf8.pch ‚Ì‚Ý‚ð
2-// ŠÜ‚Þƒ\[ƒX ƒtƒ@ƒCƒ‹‚́AƒvƒŠƒRƒ“ƒpƒCƒ‹Ï‚݃wƒbƒ_[‚É‚È‚è‚Ü‚·B
3-// stdafx.obj ‚ɂ̓vƒŠƒRƒ“ƒpƒCƒ‹Ï‚ÝŒ^î•ñ‚ªŠÜ‚Ü‚ê‚Ü‚·B
4-
5-#include "stdafx.h"
6-
7-// TODO: ‚±‚̃tƒ@ƒCƒ‹‚Å‚Í‚È‚­ASTDAFX.H ‚Å•K—v‚È
8-// ’ljÁƒwƒbƒ_[‚ðŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B
--- a/encutf8/stdafx.h
+++ /dev/null
@@ -1,19 +0,0 @@
1-// stdafx.h : •W€‚̃VƒXƒeƒ€ ƒCƒ“ƒNƒ‹[ƒh ƒtƒ@ƒCƒ‹‚̃Cƒ“ƒNƒ‹[ƒh ƒtƒ@ƒCƒ‹A‚Ü‚½‚Í
2-// ŽQÆ‰ñ”‚ª‘½‚­A‚©‚‚ ‚Ü‚è•ÏX‚³‚ê‚È‚¢AƒvƒƒWƒFƒNƒgê—p‚̃Cƒ“ƒNƒ‹[ƒh ƒtƒ@ƒCƒ‹
3-// ‚ð‹Lq‚µ‚Ü‚·B
4-//
5-
6-#pragma once
7-
8-#include "targetver.h"
9-
10-#include <stdio.h>
11-#include <tchar.h>
12-
13-
14-
15-// TODO: ƒvƒƒOƒ‰ƒ€‚É•K—v‚ȒljÁƒwƒbƒ_[‚ð‚±‚±‚ÅŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B
16-
17-#include <locale.h>
18-#include <windows.h>
19-
--- a/encutf8/targetver.h
+++ /dev/null
@@ -1,13 +0,0 @@
1-#pragma once
2-
3-// ˆÈ‰º‚̃}ƒNƒ‚́AÅ’áŒÀ•K—v‚ȃvƒ‰ƒbƒgƒtƒH[ƒ€‚ð’è‹`‚µ‚Ü‚·BÅ’áŒÀ•K—v‚ȃvƒ‰ƒbƒgƒtƒH[ƒ€‚Ƃ́A
4-// ƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚ðŽÀs‚·‚邽‚ß‚É•K—v‚È‹@”\‚ð”õ‚¦‚½Å‚àŒÃ‚¢ƒo[ƒWƒ‡ƒ“‚Ì Windows ‚â Internet Explorer ‚È‚Ç
5-// ‚ð‚¢‚¢‚Ü‚·B‚±‚ê‚ç‚̃}ƒNƒ‚́AŽw’肵‚½ƒo[ƒWƒ‡ƒ“‚ƁA‚»‚êˆÈ‘O‚̃o[ƒWƒ‡ƒ“‚̃vƒ‰ƒbƒgƒtƒH[ƒ€ã‚Å—˜—p‚Å‚«‚é‚·‚ׂĂ̋@”\‚ð—LŒø‚É‚·‚邱‚Æ‚É‚æ‚Á‚Ä
6-// “®ì‚µ‚Ü‚·B
7-
8-// ‰º‚ÅŽw’肳‚ꂽ’è‹`‚Ì‘O‚ɑΏۃvƒ‰ƒbƒgƒtƒH[ƒ€‚ðŽw’肵‚È‚¯‚ê‚΂Ȃç‚È‚¢ê‡AˆÈ‰º‚Ì’è‹`‚ð•ÏX‚µ‚Ä‚­‚¾‚³‚¢B
9-// ˆÙ‚È‚éƒvƒ‰ƒbƒgƒtƒH[ƒ€‚ɑΉž‚·‚é’l‚ÉŠÖ‚·‚éÅVî•ñ‚ɂ‚¢‚ẮAMSDN ‚ðŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B
10-#ifndef _WIN32_WINNT // Å’áŒÀ•K—v‚ȃvƒ‰ƒbƒgƒtƒH[ƒ€‚ª Windows Vista ‚Å‚ ‚邱‚Æ‚ðŽw’肵‚Ü‚·B
11-#define _WIN32_WINNT 0x0600 // ‚±‚ê‚ð Windows ‚Ì‘¼‚̃o[ƒWƒ‡ƒ“Œü‚¯‚É“KØ‚È’l‚ɕύX‚µ‚Ä‚­‚¾‚³‚¢B
12-#endif
13-
--- a/mbtoutf8.bat
+++ /dev/null
@@ -1,4 +0,0 @@
1-mbtoutf8 mesg-jpn.old.h mesg-jpn.h
2-mbtoutf8 mesg-eng.old.h mesg-eng.h
3-encutf8 mesg-jpn.h mesg-jpn.h
4-encutf8 mesg-eng.h mesg-eng.h
Binary files a/mbtoutf8.exe and /dev/null differ
--- a/mbtoutf8/ReadMe.txt
+++ /dev/null
@@ -1,29 +0,0 @@
1-========================================================================
2- コンソール アプリケーション : mbtoutf8 プロジェクトの概要
3-========================================================================
4-
5-この mbtoutf8 アプリケーションは、AppWizard によって作成されました。
6-
7-このファイルには、mbtoutf8 アプリケーションを構成する各ファイル
8-の内容の概略が記述されています。
9-
10-
11-mbtoutf8.vcproj
12- これは、アプリケーション ウィザードを使用して生成された VC++ プロジェクトのメイン プロジェクト ファイルです。
13- ファイルを生成した Visual C++ のバージョンに関する情報と、アプリケーション ウィザードで選択されたプラットフォーム、構成、およびプロジェクト機能に関する情報が含まれています。
14-
15-mbtoutf8.cpp
16- これは、メインのアプリケーション ソース ファイルです。
17-
18-/////////////////////////////////////////////////////////////////////////////
19-その他の標準ファイル :
20-
21-StdAfx.h, StdAfx.cpp
22- これらのファイルは、プリコンパイル済みヘッダー (PCH) ファイル mbtoutf8.pch とプリコンパイル済み型ファイル StdAfx.obj をビルドするために使用されます。
23-
24-/////////////////////////////////////////////////////////////////////////////
25-その他のメモ :
26-
27-AppWizard では、ユーザーが追加またはカスタマイズする必要のあるソース コードの部分を示すために、"TODO:" コメントを使用します。
28-
29-/////////////////////////////////////////////////////////////////////////////
--- a/mbtoutf8/mbtoutf8.cpp
+++ /dev/null
@@ -1,155 +0,0 @@
1-// mbtoutf8.cpp : ƒRƒ“ƒ\[ƒ‹ ƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚̃Gƒ“ƒgƒŠ ƒ|ƒCƒ“ƒg‚ð’è‹`‚µ‚Ü‚·B
2-//
3-
4-#include "stdafx.h"
5-
6-
7-int _tmain(int argc, _TCHAR* argv[])
8-{
9- FILE* fpIn;
10- FILE* fpOut;
11- char InBuffer[16384];
12- char OutBuffer[65536];
13- int InPosition;
14- int OutPosition;
15- bool bEscape;
16- bool bString;
17- bool bEncoded;
18- int Count;
19- int UTF8Count;
20- wchar_t UTF16Buffer[4];
21- char UTF8Buffer[8];
22- int i;
23- _tsetlocale(LC_ALL, _T(""));
24- if(argc != 3)
25- {
26- _tprintf(_T("ƒ}ƒ‹ƒ`ƒoƒCƒg•¶ŽšiƒR[ƒhƒy[ƒW932‚Ü‚½‚ÍShift JISj‚ŏ‘‚©‚ꂽCŒ¾Œêƒ\[ƒXƒtƒ@ƒCƒ‹“à‚Ì•¶Žš—ñƒŠƒeƒ‰ƒ‹‚ðUTF-8‚ɃGƒ“ƒR[ƒh‚µ‚Ü‚·B\n"));
27- _tprintf(_T("ƒRƒ}ƒ“ƒhƒ‰ƒCƒ“\n"));
28- _tprintf(_T("mbtoutf8 [in] [out]\n"));
29- _tprintf(_T("[in] Œ³‚̃\[ƒXƒtƒ@ƒCƒ‹‚̃tƒ@ƒCƒ‹–¼\n"));
30- _tprintf(_T("[out] •Û‘¶æ‚̃tƒ@ƒCƒ‹–¼\n"));
31- return 0;
32- }
33- fpIn = _tfopen(argv[1], _T("rt"));
34- if(!fpIn)
35- {
36- _tprintf(_T("ƒtƒ@ƒCƒ‹\"%s\"‚ªŠJ‚¯‚Ü‚¹‚ñB\n"), argv[1]);
37- return 0;
38- }
39- fpOut = _tfopen(argv[2], _T("wt"));
40- if(!fpIn)
41- {
42- _tprintf(_T("ƒtƒ@ƒCƒ‹\"%s\"‚ªì¬‚Å‚«‚Ü‚¹‚ñB\n"), argv[2]);
43- return 0;
44- }
45- while(fgets(InBuffer, sizeof(InBuffer) / sizeof(char), fpIn))
46- {
47- InPosition = 0;
48- OutPosition = 0;
49- bEscape = false;
50- bString = false;
51- bEncoded = false;
52- while(InBuffer[InPosition])
53- {
54- Count = max(mblen(&InBuffer[InPosition], 4), 1);
55- if(Count == 1)
56- {
57- switch(InBuffer[InPosition])
58- {
59- case '\\':
60- bEscape = !bEscape;
61- bEncoded = false;
62- strncpy(&OutBuffer[OutPosition], &InBuffer[InPosition], Count);
63- InPosition += Count;
64- OutPosition += Count;
65- break;
66- case '\"':
67- bEscape = false;
68- bString = !bString;
69- bEncoded = false;
70- strncpy(&OutBuffer[OutPosition], &InBuffer[InPosition], Count);
71- InPosition += Count;
72- OutPosition += Count;
73- break;
74- case '0':
75- case '1':
76- case '2':
77- case '3':
78- case '4':
79- case '5':
80- case '6':
81- case '7':
82- case '8':
83- case '9':
84- case 'A':
85- case 'B':
86- case 'C':
87- case 'D':
88- case 'E':
89- case 'F':
90- case 'a':
91- case 'b':
92- case 'c':
93- case 'd':
94- case 'e':
95- case 'f':
96- bEscape = false;
97- if(bEncoded)
98- {
99- for(i = 0; i < Count; i++)
100- {
101- sprintf(&OutBuffer[OutPosition], "\\x%02X", (unsigned char)InBuffer[InPosition]);
102- InPosition++;
103- OutPosition += 4;
104- }
105- }
106- else
107- {
108- strncpy(&OutBuffer[OutPosition], &InBuffer[InPosition], Count);
109- InPosition += Count;
110- OutPosition += Count;
111- break;
112- }
113- break;
114- default:
115- bEscape = false;
116- bEncoded = false;
117- strncpy(&OutBuffer[OutPosition], &InBuffer[InPosition], Count);
118- InPosition += Count;
119- OutPosition += Count;
120- break;
121- }
122- }
123- else
124- {
125- if(bString)
126- {
127- bEscape = false;
128- bEncoded = true;
129- UTF8Count = MultiByteToWideChar(CP_ACP, 0, &InBuffer[InPosition], Count, UTF16Buffer, sizeof(UTF16Buffer) / sizeof(wchar_t));
130- UTF8Count = WideCharToMultiByte(CP_UTF8, 0, UTF16Buffer, UTF8Count, UTF8Buffer, sizeof(UTF8Buffer) / sizeof(char), NULL, NULL);
131- InPosition += Count;
132- for(i = 0; i < UTF8Count; i++)
133- {
134- sprintf(&OutBuffer[OutPosition], "\\x%02X", (unsigned char)UTF8Buffer[i]);
135- OutPosition += 4;
136- }
137- }
138- else
139- {
140- bEscape = false;
141- bEncoded = false;
142- strncpy(&OutBuffer[OutPosition], &InBuffer[InPosition], Count);
143- InPosition += Count;
144- OutPosition += Count;
145- }
146- }
147- }
148- OutBuffer[OutPosition] = '\0';
149- fputs(OutBuffer, fpOut);
150- }
151- fclose(fpIn);
152- fclose(fpOut);
153- return 0;
154-}
155-
--- a/mbtoutf8/mbtoutf8.sln
+++ /dev/null
@@ -1,20 +0,0 @@
1-
2-Microsoft Visual Studio Solution File, Format Version 10.00
3-# Visual Studio 2008
4-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mbtoutf8", "mbtoutf8.vcproj", "{655A8FD3-5998-472F-8906-F0A028B70C4F}"
5-EndProject
6-Global
7- GlobalSection(SolutionConfigurationPlatforms) = preSolution
8- Debug|Win32 = Debug|Win32
9- Release|Win32 = Release|Win32
10- EndGlobalSection
11- GlobalSection(ProjectConfigurationPlatforms) = postSolution
12- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Debug|Win32.ActiveCfg = Debug|Win32
13- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Debug|Win32.Build.0 = Debug|Win32
14- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Release|Win32.ActiveCfg = Release|Win32
15- {655A8FD3-5998-472F-8906-F0A028B70C4F}.Release|Win32.Build.0 = Release|Win32
16- EndGlobalSection
17- GlobalSection(SolutionProperties) = preSolution
18- HideSolutionNode = FALSE
19- EndGlobalSection
20-EndGlobal
--- a/mbtoutf8/mbtoutf8.vcproj
+++ /dev/null
@@ -1,225 +0,0 @@
1-<?xml version="1.0" encoding="shift_jis"?>
2-<VisualStudioProject
3- ProjectType="Visual C++"
4- Version="9.00"
5- Name="mbtoutf8"
6- ProjectGUID="{655A8FD3-5998-472F-8906-F0A028B70C4F}"
7- RootNamespace="mbtoutf8"
8- Keyword="Win32Proj"
9- TargetFrameworkVersion="196613"
10- >
11- <Platforms>
12- <Platform
13- Name="Win32"
14- />
15- </Platforms>
16- <ToolFiles>
17- </ToolFiles>
18- <Configurations>
19- <Configuration
20- Name="Debug|Win32"
21- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
22- IntermediateDirectory="$(ConfigurationName)"
23- ConfigurationType="1"
24- CharacterSet="1"
25- >
26- <Tool
27- Name="VCPreBuildEventTool"
28- />
29- <Tool
30- Name="VCCustomBuildTool"
31- />
32- <Tool
33- Name="VCXMLDataGeneratorTool"
34- />
35- <Tool
36- Name="VCWebServiceProxyGeneratorTool"
37- />
38- <Tool
39- Name="VCMIDLTool"
40- />
41- <Tool
42- Name="VCCLCompilerTool"
43- Optimization="0"
44- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
45- MinimalRebuild="true"
46- BasicRuntimeChecks="3"
47- RuntimeLibrary="3"
48- UsePrecompiledHeader="2"
49- WarningLevel="3"
50- DebugInformationFormat="4"
51- />
52- <Tool
53- Name="VCManagedResourceCompilerTool"
54- />
55- <Tool
56- Name="VCResourceCompilerTool"
57- />
58- <Tool
59- Name="VCPreLinkEventTool"
60- />
61- <Tool
62- Name="VCLinkerTool"
63- LinkIncremental="2"
64- GenerateDebugInformation="true"
65- SubSystem="1"
66- TargetMachine="1"
67- />
68- <Tool
69- Name="VCALinkTool"
70- />
71- <Tool
72- Name="VCManifestTool"
73- />
74- <Tool
75- Name="VCXDCMakeTool"
76- />
77- <Tool
78- Name="VCBscMakeTool"
79- />
80- <Tool
81- Name="VCFxCopTool"
82- />
83- <Tool
84- Name="VCAppVerifierTool"
85- />
86- <Tool
87- Name="VCPostBuildEventTool"
88- />
89- </Configuration>
90- <Configuration
91- Name="Release|Win32"
92- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
93- IntermediateDirectory="$(ConfigurationName)"
94- ConfigurationType="1"
95- CharacterSet="1"
96- WholeProgramOptimization="1"
97- >
98- <Tool
99- Name="VCPreBuildEventTool"
100- />
101- <Tool
102- Name="VCCustomBuildTool"
103- />
104- <Tool
105- Name="VCXMLDataGeneratorTool"
106- />
107- <Tool
108- Name="VCWebServiceProxyGeneratorTool"
109- />
110- <Tool
111- Name="VCMIDLTool"
112- />
113- <Tool
114- Name="VCCLCompilerTool"
115- Optimization="2"
116- EnableIntrinsicFunctions="true"
117- PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
118- RuntimeLibrary="2"
119- EnableFunctionLevelLinking="true"
120- UsePrecompiledHeader="2"
121- WarningLevel="3"
122- DebugInformationFormat="3"
123- />
124- <Tool
125- Name="VCManagedResourceCompilerTool"
126- />
127- <Tool
128- Name="VCResourceCompilerTool"
129- />
130- <Tool
131- Name="VCPreLinkEventTool"
132- />
133- <Tool
134- Name="VCLinkerTool"
135- LinkIncremental="1"
136- GenerateDebugInformation="true"
137- SubSystem="1"
138- OptimizeReferences="2"
139- EnableCOMDATFolding="2"
140- TargetMachine="1"
141- />
142- <Tool
143- Name="VCALinkTool"
144- />
145- <Tool
146- Name="VCManifestTool"
147- />
148- <Tool
149- Name="VCXDCMakeTool"
150- />
151- <Tool
152- Name="VCBscMakeTool"
153- />
154- <Tool
155- Name="VCFxCopTool"
156- />
157- <Tool
158- Name="VCAppVerifierTool"
159- />
160- <Tool
161- Name="VCPostBuildEventTool"
162- />
163- </Configuration>
164- </Configurations>
165- <References>
166- </References>
167- <Files>
168- <Filter
169- Name="ƒ\[ƒX ƒtƒ@ƒCƒ‹"
170- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
171- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
172- >
173- <File
174- RelativePath=".\mbtoutf8.cpp"
175- >
176- </File>
177- <File
178- RelativePath=".\stdafx.cpp"
179- >
180- <FileConfiguration
181- Name="Debug|Win32"
182- >
183- <Tool
184- Name="VCCLCompilerTool"
185- UsePrecompiledHeader="1"
186- />
187- </FileConfiguration>
188- <FileConfiguration
189- Name="Release|Win32"
190- >
191- <Tool
192- Name="VCCLCompilerTool"
193- UsePrecompiledHeader="1"
194- />
195- </FileConfiguration>
196- </File>
197- </Filter>
198- <Filter
199- Name="ƒwƒbƒ_[ ƒtƒ@ƒCƒ‹"
200- Filter="h;hpp;hxx;hm;inl;inc;xsd"
201- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
202- >
203- <File
204- RelativePath=".\stdafx.h"
205- >
206- </File>
207- <File
208- RelativePath=".\targetver.h"
209- >
210- </File>
211- </Filter>
212- <Filter
213- Name="ƒŠƒ\[ƒX ƒtƒ@ƒCƒ‹"
214- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
215- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
216- >
217- </Filter>
218- <File
219- RelativePath=".\ReadMe.txt"
220- >
221- </File>
222- </Files>
223- <Globals>
224- </Globals>
225-</VisualStudioProject>
--- a/mbtoutf8/stdafx.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
1-// stdafx.cpp : •W€ƒCƒ“ƒNƒ‹[ƒh mbtoutf8.pch ‚Ì‚Ý‚ð
2-// ŠÜ‚Þƒ\[ƒX ƒtƒ@ƒCƒ‹‚́AƒvƒŠƒRƒ“ƒpƒCƒ‹Ï‚݃wƒbƒ_[‚É‚È‚è‚Ü‚·B
3-// stdafx.obj ‚ɂ̓vƒŠƒRƒ“ƒpƒCƒ‹Ï‚ÝŒ^î•ñ‚ªŠÜ‚Ü‚ê‚Ü‚·B
4-
5-#include "stdafx.h"
6-
7-// TODO: ‚±‚̃tƒ@ƒCƒ‹‚Å‚Í‚È‚­ASTDAFX.H ‚Å•K—v‚È
8-// ’ljÁƒwƒbƒ_[‚ðŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B
--- a/mbtoutf8/stdafx.h
+++ /dev/null
@@ -1,19 +0,0 @@
1-// stdafx.h : •W€‚̃VƒXƒeƒ€ ƒCƒ“ƒNƒ‹[ƒh ƒtƒ@ƒCƒ‹‚̃Cƒ“ƒNƒ‹[ƒh ƒtƒ@ƒCƒ‹A‚Ü‚½‚Í
2-// ŽQÆ‰ñ”‚ª‘½‚­A‚©‚‚ ‚Ü‚è•ÏX‚³‚ê‚È‚¢AƒvƒƒWƒFƒNƒgê—p‚̃Cƒ“ƒNƒ‹[ƒh ƒtƒ@ƒCƒ‹
3-// ‚ð‹Lq‚µ‚Ü‚·B
4-//
5-
6-#pragma once
7-
8-#include "targetver.h"
9-
10-#include <stdio.h>
11-#include <tchar.h>
12-
13-
14-
15-// TODO: ƒvƒƒOƒ‰ƒ€‚É•K—v‚ȒljÁƒwƒbƒ_[‚ð‚±‚±‚ÅŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B
16-
17-#include <locale.h>
18-#include <windows.h>
19-
--- a/mbtoutf8/targetver.h
+++ /dev/null
@@ -1,13 +0,0 @@
1-#pragma once
2-
3-// ˆÈ‰º‚̃}ƒNƒ‚́AÅ’áŒÀ•K—v‚ȃvƒ‰ƒbƒgƒtƒH[ƒ€‚ð’è‹`‚µ‚Ü‚·BÅ’áŒÀ•K—v‚ȃvƒ‰ƒbƒgƒtƒH[ƒ€‚Ƃ́A
4-// ƒAƒvƒŠƒP[ƒVƒ‡ƒ“‚ðŽÀs‚·‚邽‚ß‚É•K—v‚È‹@”\‚ð”õ‚¦‚½Å‚àŒÃ‚¢ƒo[ƒWƒ‡ƒ“‚Ì Windows ‚â Internet Explorer ‚È‚Ç
5-// ‚ð‚¢‚¢‚Ü‚·B‚±‚ê‚ç‚̃}ƒNƒ‚́AŽw’肵‚½ƒo[ƒWƒ‡ƒ“‚ƁA‚»‚êˆÈ‘O‚̃o[ƒWƒ‡ƒ“‚̃vƒ‰ƒbƒgƒtƒH[ƒ€ã‚Å—˜—p‚Å‚«‚é‚·‚ׂĂ̋@”\‚ð—LŒø‚É‚·‚邱‚Æ‚É‚æ‚Á‚Ä
6-// “®ì‚µ‚Ü‚·B
7-
8-// ‰º‚ÅŽw’肳‚ꂽ’è‹`‚Ì‘O‚ɑΏۃvƒ‰ƒbƒgƒtƒH[ƒ€‚ðŽw’肵‚È‚¯‚ê‚΂Ȃç‚È‚¢ê‡AˆÈ‰º‚Ì’è‹`‚ð•ÏX‚µ‚Ä‚­‚¾‚³‚¢B
9-// ˆÙ‚È‚éƒvƒ‰ƒbƒgƒtƒH[ƒ€‚ɑΉž‚·‚é’l‚ÉŠÖ‚·‚éÅVî•ñ‚ɂ‚¢‚ẮAMSDN ‚ðŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B
10-#ifndef _WIN32_WINNT // Å’áŒÀ•K—v‚ȃvƒ‰ƒbƒgƒtƒH[ƒ€‚ª Windows Vista ‚Å‚ ‚邱‚Æ‚ðŽw’肵‚Ü‚·B
11-#define _WIN32_WINNT 0x0600 // ‚±‚ê‚ð Windows ‚Ì‘¼‚̃o[ƒWƒ‡ƒ“Œü‚¯‚É“KØ‚È’l‚ɕύX‚µ‚Ä‚­‚¾‚³‚¢B
12-#endif
13-