Compare commits

..
928 Commits
Author SHA1 Message Date
nobody 32e69fe2dd This commit was manufactured by cvs2svn to create tag 'MONO_0_16'.
svn path=/tags/MONO_0_16/mono/; revision=7930
2002-10-02 00:11:58 +00:00
Duncan Mak 336e8da2a6 More build fixes
svn path=/trunk/mono/; revision=7929
2002-10-02 00:11:58 +00:00
Rodrigo Moya 5d1f26a554 2002-10-01 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (Open): commented code from
	last commit, which wasn't supposed to be in CVS yet.

svn path=/trunk/mcs/; revision=7924
2002-10-01 23:14:53 +00:00
Duncan Mak 6afb083663 Flush
svn path=/trunk/mono/; revision=7923
2002-10-01 22:24:59 +00:00
Rodrigo Moya 454dcdbf14 2002-10-01 Luis Fernandez <[email protected]>
* System.Data/DataColumn.cs:
	* System.Data/DataRow.cs:
	* System.Data/DataRowCollection.cs:
	* System.Data/DataTable.cs: some fixes and implementation.

svn path=/trunk/mcs/; revision=7921
2002-10-01 22:24:31 +00:00
Duncan Mak f1e2dea617 2002-10-01 Duncan Mak <[email protected]>
* mono/os/Makefile.am: Add gc_wrapper.h.

svn path=/trunk/mono/; revision=7920
2002-10-01 22:19:18 +00:00
Duncan Mak aeb0f402b0 2002-10-01 Duncan Mak <[email protected]>
* runtime/Makefile.am: Fix the path for monoresgen.exe.

svn path=/trunk/mono/; revision=7919
2002-10-01 22:11:33 +00:00
Rodrigo Moya a9c99094e5 2002-09-28 Vladimir Vukicevic� <[email protected]>
* System.Data.OleDb/OleDbConnection.cs: Close
	reader properly in call to ExecuteScalar().

svn path=/trunk/mcs/; revision=7918
2002-10-01 22:09:43 +00:00
Miguel de Icaza 07dadd18e6 Bump release to 0.16
svn path=/trunk/mono/; revision=7917
2002-10-01 21:32:16 +00:00
Miguel de Icaza dfacc317bb Update NEWS file
svn path=/trunk/mono/; revision=7916
2002-10-01 21:31:55 +00:00
Miguel de Icaza 50d954e407 2002-10-01 Miguel de Icaza <[email protected]>
* expression.cs (Binary.ResolveOperator): Catch the case where
	DoNumericPromotions returns true,

	(Binary.DoNumericPromotions): Simplify the code, and the tests.

svn path=/trunk/mcs/; revision=7915
2002-10-01 21:19:19 +00:00
Gonzalo Paniagua Javier d3654afcba removed double topdir definition
svn path=/trunk/mcs/; revision=7914
2002-10-01 19:24:03 +00:00
Gonzalo Paniagua Javier 055226227b little fixes
svn path=/trunk/mcs/; revision=7913
2002-10-01 19:22:01 +00:00
Miguel de Icaza 4df4036832 Sorry
svn path=/trunk/mcs/; revision=7912
2002-10-01 19:13:26 +00:00
Miguel de Icaza 0e54ff0114 Fix
svn path=/trunk/mcs/; revision=7911
2002-10-01 19:06:01 +00:00
Miguel de Icaza fdac2e4440 Add to the build
svn path=/trunk/mcs/; revision=7910
2002-10-01 18:55:18 +00:00
Martin Baulig de5d618bba 2002-10-01 Martin Baulig <[email protected]>
* debug.c: Don't create an .il file for the dynamic symbol file.

svn path=/trunk/mono/; revision=7908
2002-10-01 18:44:01 +00:00
Martin Baulig f5895c6858 2002-10-01 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Don't emit methods and line numbers for
	the dynamic symbol file, just write the type table.  We can easily
	have an external helper program which creates a symbol file for an
	IL file.

svn path=/trunk/mono/; revision=7907
2002-10-01 18:42:50 +00:00
Gonzalo Paniagua Javier b927f644a1 2002-10-01 Gonzalo Paniagua Javier <[email protected]>
* MonoProperty.cs:
	* PropertyInfo.cs: fixed bug #31535.

svn path=/trunk/mcs/; revision=7906
2002-10-01 16:15:12 +00:00
Dick Porter eea28c3d23 2002-10-01 Dick Porter <[email protected]>
* timed-thread.c: Kludge for CREATE_SUSPENDED thread creation.
	Unfortunately libgc uses the same thread suspend technique that I
	want to, and the two don't mix: libgc will deadlock when it tries
	to stop the world if a thread has already been suspended by
	someone else.  Just do the simple suspended create rather than the
	general purpose thread suspension for now.

	* threads.c: Pass create flags to the timed_thread create call, to
	implement suspended thread creation.  ResumeThread() partially
	implemented, to cope with the case where a newly created but
	suspended thread is launched.

2002-10-01  Dick Porter  <[email protected]>

	* threads.c (ves_icall_System_Threading_Thread_Start_internal):
	Only add the handle to the cleanup array when we're about to
	launch the thread.  Bug 31425 deadlocked when the test was run on
	mono under w32.

svn path=/trunk/mono/; revision=7905
2002-10-01 15:59:52 +00:00
Martin Baulig 8574ac82b3 2002-10-01 Martin Baulig <[email protected]>
* debug.c (MonoDebuggerInfo): Added mono_runtime_invoke().

svn path=/trunk/mono/; revision=7904
2002-10-01 13:38:49 +00:00
Martin Baulig 391cd6613a 2002-10-01 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Added support for properties.

svn path=/trunk/mono/; revision=7903
2002-10-01 13:37:49 +00:00
Rodrigo Moya 3dfe241caa 2002-10-01 Rodrigo Moya <[email protected]>
* System.Data.SqlClient/AllTests.cs: added SqlBoolean test.

2002-10-01  ville <[email protected]>

	* System.Data.SqlClient/SqlBooleanTest.cs: new test suite for
	SqlBoolean class.

svn path=/trunk/mcs/; revision=7899
2002-10-01 09:18:23 +00:00
Gonzalo Paniagua Javier 8be3df2b99 2002-09-30 Gonzalo Paniagua Javier <[email protected]>
* list: added new files in System.Web.

	* System.Web/HttpApplication.cs: use the static file handler.
	* System.Web/HttpForbiddenHandler.cs: handler to forbid access.
	* System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
	allowed.

	* System.Web/HttpUtility.cs: finished all UrlDecode methods.
	* System.Web/MimeTypes.cs: map from file extension to MIME type.
	* System.Web/StaticFileHandler.cs: serves static files

svn path=/trunk/mcs/; revision=7897
2002-09-30 23:38:44 +00:00
Dick Porter 1c4c28a73b 2002-09-30 Dick Porter <[email protected]>
* sockets.c (ioctlsocket): Set non-blocking mode in a better way,
	with fcntl.

svn path=/trunk/mono/; revision=7896
2002-09-30 14:43:10 +00:00
Dick Porter 367d52afe7 2002-09-30 Dick Porter <[email protected]>
* Win32Exception.cs: Sorted the errors, added EINPROGRESS

svn path=/trunk/mcs/; revision=7895
2002-09-30 14:42:48 +00:00
Dietmar Maurer 10fbbd6de6 2002-09-30 Dietmar Maurer <[email protected]>
* monoburg.c (main): add option to specify default costs, added
	experimental code to handle several input files.

svn path=/trunk/mono/; revision=7894
2002-09-30 13:58:49 +00:00
John Sohn 783ac37230 * Form.cs: Site property now calls base class
* FormTest.cs: set label position on test form
	* Label.cs: implemented more methods
	* makefile: stub no longer links to gc library

svn path=/trunk/mcs/; revision=7893
2002-09-30 04:27:56 +00:00
Nick Drochak cf85b96e59 2002-09-29 Nick Drochak <[email protected]>
* XmlTextReaderTest.cs (AssertEndDocument): Add messages for Asserts()
	so we can tell where this is failing.

svn path=/trunk/mcs/; revision=7890
2002-09-29 15:00:18 +00:00
Nick Drochak bb5893fd12 2002-09-29 Nick Drochak <[email protected]>
* DecimalTest.cs: Change from Assert() with == to AssertEquals(). This
	gets the tests to pass on linux, but they shouldn't need that.  Now
	to find out why.  This seems deep...

svn path=/trunk/mcs/; revision=7889
2002-09-29 14:42:31 +00:00
Gonzalo Paniagua Javier f2e90236bb 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
* list: added PageHandlerFactory.

	* System.Web/HttpApplication.cs:
	* System.Web/HttpApplicationFactory.cs:
	* System.Web/HttpRequest.cs:
	* System.Web/HttpRuntime.cs:
	* System.Web.Compilation/AspElements.cs:
	* System.Web.Compilation/AspGenerator.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateFactory.cs: Modified file.
	* System.Web.Configuration/HttpCapabilitiesBase.cs:
	* System.Web.Hosting/SimpleWorkerRequest.cs:
	* System.Web.UI/PageHandlerFactory.cs:
	* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControlParser.cs: we are now able to compile
	pages and use HttpApplication, HttpRuntime and SimpleWorkerRequest.

svn path=/trunk/mcs/; revision=7880
2002-09-28 07:44:14 +00:00
Gonzalo Paniagua Javier 7a2d262277 2002-09-28 Gonzalo Paniagua Javier <[email protected]>
* ThreadPool.cs: set IsThreadPoolThread before starting the worker.

svn path=/trunk/mcs/; revision=7879
2002-09-28 07:08:58 +00:00
Gonzalo Paniagua Javier 2cf49db82d 2002-09-27 Gonzalo Paniagua Javier <[email protected]>
* StreamReader.cs: give more information when wrong parameters passed.

svn path=/trunk/mcs/; revision=7878
2002-09-27 23:28:45 +00:00
Martin Baulig 12b25d25c1 2002-09-27 Martin Baulig <[email protected]>
* debug.c (debug_load_method_lines): Don't use sigaction() on win32.

svn path=/trunk/mono/; revision=7876
2002-09-27 19:11:06 +00:00
Dick Porter bb16b9c077 cygwin needs to link another library now
svn path=/trunk/mono/; revision=7875
2002-09-27 18:04:02 +00:00
Paolo Molaro 8edca8c7e4 Fri Sep 27 18:55:01 CEST 2002 Paolo Molaro <[email protected]>
* reflection.c: unaligned store fix from Mark Crichton
	<[email protected]>.

svn path=/trunk/mono/; revision=7873
2002-09-27 16:57:46 +00:00
Paolo Molaro c01ccfa6f9 Dum de dum, need to escape %.
svn path=/trunk/mono/; revision=7870
2002-09-27 14:56:19 +00:00
Paolo Molaro 139aad4a64 Make it print the unknown operator value.
svn path=/trunk/mono/; revision=7869
2002-09-27 14:53:20 +00:00
Martin Baulig bf97c0f83d 2002-09-27 Martin Baulig <[email protected]>
* Assembly.cs (Assembly.GetReferencedAssemblies): Implemented.

svn path=/trunk/mcs/; revision=7868
2002-09-27 14:51:16 +00:00
Martin Baulig 2ef83b66ab 2002-09-27 Martin Baulig <[email protected]>
* icall.c ("System.Reflection.Assembly::GetReferencedAssemblies"):
	New interncall.

svn path=/trunk/mono/; revision=7867
2002-09-27 14:49:22 +00:00
Dick Porter 604542bea7 2002-09-27 Dick Porter <[email protected]>
* configure.in: Check for semaphore.h.  Patch for BSD from
	[email protected] (Julio Merino).

2002-09-27  Dick Porter  <[email protected]>

	* semaphores.c: Only include semaphore.h if it's present. Patch
	for BSD from [email protected] (Julio Merino).

svn path=/trunk/mono/; revision=7865
2002-09-27 13:54:16 +00:00
Paolo Molaro 71178114f2 Fri Sep 27 15:38:31 CEST 2002 Paolo Molaro <[email protected]>
* assembly.h, assembly.c: use a sane API to hook into the assembly
	loading process instead of a useless special-purpouse hack
	(ngen needs a hook, too, for example).

svn path=/trunk/mono/; revision=7864
2002-09-27 13:42:47 +00:00
Paolo Molaro e000f7dd39 Fri Sep 27 15:06:29 CEST 2002 Paolo Molaro <[email protected]>
* MonoCustomAttrs.cs: applied patch by "Si Jingnan"
	<[email protected]> to return also derived types.

svn path=/trunk/mcs/; revision=7863
2002-09-27 13:09:06 +00:00
Dick Porter dd1e6a5c10 2002-09-27 Dick Porter <[email protected]>
* processes.c: Pass environment and working directory to the
	daemon when forking.  Don't let argv[0] be duplicated when looking
	for the program name.  Implement EnumProcessModules (simple
	version for now, lsof-style later if needed), GetModuleBaseName,
	{Get,Set}ProcessWorkingSetSize (just faked, because the vm hints
	aren't available on Linux).

	* process-private.h: Store the process name, and the working set
	min and max

	* handles.c:
	* handles-private.h: New functions to store and retrieve an array
	of strings in the scratch space

	* daemon.c: Don't miss deleting some handles when a client exits
	(we used to rely on the client doing the final cleanup, but
	obviously if the client is no longer there the daemon has to do
	it).

	Process forking now sets the environment and the working
	directory.

	* io.c: Don't confuse fd 0 with an unassigned handle struct

	* atomic.h: Add a google cache alternative to the msdn URL

2002-09-27  Dick Porter  <[email protected]>

	* threads.c (mono_thread_init): Call GetCurrentProcess() so
	io-layer can set up some process handle info.  Not needed on w32,
	but doesn't hurt either.

	* process.c: Pass the program name in the second parameter to
	CreateProcess, so the path is searched.  Include the working
	directory. Implemented process name, process enumeration, and some
	process detail internal calls.

	* icall.c: Added internal calls for process lookup, and some
	process details

svn path=/trunk/mono/; revision=7858
2002-09-27 12:02:56 +00:00
Dick Porter 2203f51858 2002-09-27 Dick Porter <[email protected]>
* interp.c: Tell glib what the program name is, by passing it the
	name of the managed file we're executing

2002-09-27  Dick Porter  <[email protected]>

	* mono.c: Tell glib what the program name is, by passing it the
	name of the managed file we're executing

svn path=/trunk/mono/; revision=7857
2002-09-27 11:44:02 +00:00
Dick Porter 0037b58a94 2002-09-27 Dick Porter <[email protected]>
* Process.cs: Implemented {get_,set_}{Min,Max}WorkingSet,
	ProcessName, GetProcessById, GetProcesses, GetProcessesByName.
	Pass the working directory to Start.  Pass the program and args in
	one string to be used with the second arg of CreateProcess, so it
	will search the path.

svn path=/trunk/mcs/; revision=7856
2002-09-27 11:39:50 +00:00
Miguel de Icaza d481bfdf60 2002-09-27 Miguel de Icaza <[email protected]>
* ecore.cs (EventExpr.Emit): Instead of emitting an exception,
	report error 70.

svn path=/trunk/mcs/; revision=7854
2002-09-27 05:13:57 +00:00
Martin Baulig 4bb37638b2 2002-09-26 Martin Baulig <[email protected]>
* trampoline.c (x86_magic_trampoline): Don't insert the breakpoint
	trampoline into the vtable, also use it for non-virtual methods,
	remove the breakpoint when done.

svn path=/trunk/mono/; revision=7850
2002-09-26 21:45:46 +00:00
Martin Baulig e04dfe9f14 2002-09-26 Martin Baulig <[email protected]>
* debug.c (debug_load_method_lines): Block SIGCHLD while running
	monodis.

svn path=/trunk/mono/; revision=7848
2002-09-26 20:31:18 +00:00
Miguel de Icaza 5f0e61d090 2002-09-26 Miguel de Icaza <[email protected]>
* ecore.cs (ConvertNumericExplicit): It is not enough that the
	conversion exists, but it is also required that the conversion be
	performed.  This manifested in "(Type64Enum) 2".

svn path=/trunk/mcs/; revision=7847
2002-09-26 20:18:07 +00:00
Martin Baulig 0eb502a6bd Incremented version number.
svn path=/trunk/mono/; revision=7844
2002-09-26 19:41:44 +00:00
Martin Baulig 7487ebe7dc 2002-09-26 Martin Baulig <[email protected]>
* debug.c: Reworked the whole debugging stuff.  We have now one
	single `mono_debug_handle' which keeps a hashtable of
	`AssemblyDebugInfo's (which may have different debugging formats).
	The AssemblyDebugInfo is now created when the assembly is loaded,
	but never when adding a class/type.

	* mono.c: Initialize debugging stuff after corlib and the assembly
	have been loaded.

svn path=/trunk/mono/; revision=7843
2002-09-26 19:41:20 +00:00
Martin Baulig 519d06df66 2002-09-26 Martin Baulig <[email protected]>
* assembly.c (mono_install_open_assembly_hook): New global
	function to install a function to be invoked each time a new
	assembly is loaded.
	(mono_assembly_open): Run this callback function if set.

	* debug-mono-symfile.c: Put back line numbers for the dynamic
	symbol file and also record the .il file as source file.  This
	allows us to install the temporary symbol file as `file.dbg' just
	like a compiler-generated one.

svn path=/trunk/mono/; revision=7842
2002-09-26 19:40:56 +00:00
Nick Zigarovich a1f03ed082 Corrected typo in gc.c (BOHEM vs BOEHM)
svn path=/trunk/mono/; revision=7841
2002-09-26 19:40:15 +00:00
Miguel de Icaza 110f012a21 2002-09-26 Miguel de Icaza <[email protected]>
* class.cs (TypeManager.AddMethod): The fix is not to change
	AddEnum, because that one was using a fully qualified name (every
	DeclSpace derivative does), but to change the AddMethod routine
	that was using an un-namespaced name.  This now correctly reports
	the duplicated name.

svn path=/trunk/mcs/; revision=7840
2002-09-26 18:33:24 +00:00
Miguel de Icaza ad25b25d96 Small hack to avoid the make -f makefile.gnu
svn path=/trunk/mcs/; revision=7839
2002-09-26 18:22:30 +00:00
Gonzalo Paniagua Javier ee5cee70b6 2002-09-26 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs:
	* SimpleWorkerRequest.cs: workaround for bug #31245.

svn path=/trunk/mcs/; revision=7838
2002-09-26 18:01:06 +00:00
Gonzalo Paniagua Javier 61ed992ec2 2002-09-26 Gonzalo Paniagua Javier <[email protected]>
* Activator.cs: little fix in CreateInstance (Type, bool).

svn path=/trunk/mcs/; revision=7837
2002-09-26 17:55:05 +00:00
Dietmar Maurer eb89850b2e 2002-09-26 Dietmar Maurer <[email protected]>
* monoburg.c (emit_state): include additional fields to handle
	register allocation in dag_mode

svn path=/trunk/mono/; revision=7836
2002-09-26 13:35:51 +00:00
Miguel de Icaza e80c1f995b 2002-09-26 Miguel de Icaza <[email protected]>
* class.cs: Revert patch until I can properly fix it.  The issue
	is that we have a shared Type space across all namespaces
	currently, which is wrong.

	Options include making the Namespace a DeclSpace, and merge
	current_namespace/current_container in the parser.

svn path=/trunk/mcs/; revision=7833
2002-09-26 05:30:03 +00:00
Miguel de Icaza 643cb4cece Fix the build
svn path=/trunk/mcs/; revision=7832
2002-09-26 04:19:13 +00:00
Gonzalo Paniagua Javier c04e247ac7 oops
svn path=/trunk/mcs/; revision=7831
2002-09-26 01:36:38 +00:00
Gonzalo Paniagua Javier a71b02136a 2002-09-25 Gonzalo Paniagua Javier <[email protected]>
* HttpApplication.cs: added some missing methods.
	* HttpApplicationFactory.cs: get event handlers for the application.
	* HttpAsyncResult.cs: little fixes.
	* HttpRequest.cs: make Encoding work even with no worker request.

svn path=/trunk/mcs/; revision=7830
2002-09-26 01:33:33 +00:00
Gonzalo Paniagua Javier 2e92d252d3 2002-09-25 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: implemented ObBubbleEvent.
	* Page.cs: temporary workaround to make POST work with xsp server.

svn path=/trunk/mcs/; revision=7829
2002-09-26 00:56:48 +00:00
Gonzalo Paniagua Javier 73094fe20a 2002-09-25 Gonzalo Paniagua Javier <[email protected]>
* ListControl.cs: fixed OnDataBinding.

svn path=/trunk/mcs/; revision=7828
2002-09-26 00:51:05 +00:00
Gonzalo Paniagua Javier f3cf15ac50 2002-09-25 Gonzalo Paniagua Javier <[email protected]>
* icall.c: fixed bug #31235 by copying a few lines from GetMethods to
	GetProperties. Also avoid calling g_slist_length in GetProperties and
	GetMethods.

svn path=/trunk/mono/; revision=7827
2002-09-25 23:46:37 +00:00
Miguel de Icaza e90b829c52 2002-09-25 Miguel de Icaza <[email protected]>
* cs-parser.jay: Improve error reporting when we get a different
	kind of expression in local_variable_type and
	local_variable_pointer_type.

	Propagate this to avoid missleading errors being reported.

svn path=/trunk/mcs/; revision=7823
2002-09-25 22:34:49 +00:00
Martin Baulig ad95a40a96 Always create a line entry for the last line.
svn path=/trunk/mono/; revision=7822
2002-09-25 21:49:31 +00:00
Martin Baulig 5fef166878 2002-09-25 Martin Baulig <[email protected]>
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Use pointers
	instead of guint64 for addresses and added prologue/epilogue info.

svn path=/trunk/mono/; revision=7819
2002-09-25 21:43:08 +00:00
Miguel de Icaza ebcbb5fca0 2002-09-25 Miguel de Icaza <[email protected]>
* ecore.cs (ImplicitReferenceConversion): treat
	TypeManager.value_type as a target just like object_type.   As
	code like this:

	ValueType v = 1;

	Is valid, and needs to result in the int 1 being boxed before it
	is assigned to the value type v.

svn path=/trunk/mcs/; revision=7818
2002-09-25 21:41:33 +00:00
Miguel de Icaza 8403be52d1 2002-09-25 Miguel de Icaza <[email protected]>
* class.cs (TypeContainer.AddEnum): Use the basename, not the name
	to validate the enumeration name.

svn path=/trunk/mcs/; revision=7817
2002-09-25 21:10:06 +00:00
Miguel de Icaza a657e86da3 2002-09-25 Miguel de Icaza <[email protected]>
* expression.cs (ArrayAccess.EmitAssign): Mimic the same test from
	EmitDynamicInitializers for the criteria to use Ldelema.  Thanks
	to [email protected] for finding the bug and providing a patch.

svn path=/trunk/mcs/; revision=7816
2002-09-25 20:58:38 +00:00
Gonzalo Paniagua Javier e94b7baef0 2002-09-25 Gonzalo Paniagua Javier <[email protected]>
* sockets.c:
	(_wapi_recvfrom): added ECONNRESET to the switch.

svn path=/trunk/mono/; revision=7815
2002-09-25 20:35:17 +00:00
Paolo Molaro b3aabafaa5 Wed Sep 25 22:18:03 CEST 2002 Paolo Molaro <[email protected]>
* reflection.c: avoid unaligned stores (bug spotted by
	Mark Crichton  <[email protected]>).

svn path=/trunk/mono/; revision=7814
2002-09-25 20:21:28 +00:00
Martin Baulig e0063d14b3 2002-09-25 Martin Baulig <[email protected]>
* debug-private.h (DebugLineNumberInfo): Removed.  There's now a
	MonoDebugLineNumberEntry type in debug-mono-symfile.h which we're
	using instead of it.
	(DebugMethodInfo): Removed `line_numbers'.

	* debug.c: Reworked the line number generation; we're now using
	the MonoDebugLineNumberEntry try for all debugging formats.  This
	type also includes the line number and IL offset, this allows the
	JIT to produce better line number info: we only emit line number
	information for source lines which actually have code.

svn path=/trunk/mono/; revision=7812
2002-09-25 18:51:19 +00:00
Martin Baulig a1e50dc4c2 2002-09-25 Martin Baulig <[email protected]>
* debug-mono-symfile.h (MonoDebugLineNumberEntry): New type to
	store line number info.  For the dynamic symbol file, we only need
	to provide the JIT generated dynamic line number info for the dynamic
	symbol file.

svn path=/trunk/mono/; revision=7811
2002-09-25 18:50:48 +00:00
Miguel de Icaza e742eb5e0e More assemblies
svn path=/trunk/mono/; revision=7810
2002-09-25 17:30:08 +00:00
Martin Baulig 6034ab0b3e 2002-09-25 Martin Baulig <[email protected]>
* debug.h: Removed external declaration of all functions which
	should only be called from the Mono Debugger and also made them
	static.  Since the debugger gets their address from the
	`MONO_DEBUGGER__debugger_info' vtable, there's no need to export
	these functions.

svn path=/trunk/mono/; revision=7807
2002-09-25 13:48:41 +00:00
Martin Baulig da6130fc83 2002-09-25 Martin Baulig <[email protected]>
Improved breakpoint support, we can now dynamically insert and
	remove breakpoints at runtime and when called from withing the
	Mono Debugger, we're using a special breakpoint trampoline.

	* debug.h (mono_method_has_breakpoint): New method to check
	whether to insert a breakpoint for a method.
	(mono_insert_breakpoint): New method to insert a breakpoint.
	(mono_insert_breakpoint_full): New method to insert a breakpoint,
	takes a MonoMethodDesc.
	(mono_remove_breakpoint): New method to remove a breakpoint.

	* debug.c (mono_debugger_insert_breakpoint): New function for the
	debugger.  Should only be called from the debugger.
	(mono_debugger_remove_breakpoint): Likewise.

	* mono.c (main): Use mono_insert_breakpoint() to insert breakpoints.

	* trampoline.c (get_breakpoint_trampoline): New static function to
	create a special breakpoint trampoline for the debugger.
	(x86_magic_trampoline): If we're running inside the Mono Debugger
	and a breakpoint was requested for the method, generate a special
	breakpoint trampoline.

	* jit.c (mono_debug_methods): Removed, use mono_insert_breakpoint()
	to insert a breakpoint.
	(mono_debug_last_breakpoint_address): Removed.
	(match_debug_method): Removed, use mono_method_has_breakpoint().

svn path=/trunk/mono/; revision=7806
2002-09-25 13:39:49 +00:00
Martin Baulig 2de418a43d 2002-09-25 Martin Baulig <[email protected]>
* debug-mono-symfile.h: Incremented version number.

svn path=/trunk/mono/; revision=7805
2002-09-25 13:37:07 +00:00
Martin Baulig 2386cc7881 Use g_message() here, not g_warning().
svn path=/trunk/mono/; revision=7804
2002-09-25 13:27:37 +00:00
Paolo Molaro 9056983301 Wed Sep 25 12:04:08 CEST 2002 Paolo Molaro <[email protected]>
* jit.c: reorder mono_runtime_cleanup () call since it needs the
	engine still fully working.

svn path=/trunk/mono/; revision=7803
2002-09-25 10:06:41 +00:00
Gaurav Vaish 78cefb0f7b 2002-09-25 Gaurav Vaish <[email protected]>
* RegextEditorDialog.cs   : Added a few more methods.
* BaseDataListComponentEditor.cs
                          : Completed.
* DataListComponentEditor.cs
                          : Completed
* BaseDataListPageInternal.cs,
* GeneralPageDataListInternal.cs,
* FormatPageInternal.cs,
* BordersPageInternal.cs  : Added private classes. Initial implementation.

svn path=/trunk/mcs/; revision=7802
2002-09-25 10:01:55 +00:00
Dietmar Maurer 6a89f19c0d 2002-09-25 Dietmar Maurer <[email protected]>
* added -p and -e options. monoburg is now able to work with DAGs.

svn path=/trunk/mono/; revision=7801
2002-09-25 08:03:19 +00:00
Mark Crichton 4e22c5b894 Stupid off-by-one error fixed.
The problem was that I incremented gr as if we were on a PPC box.  Sparc
doesn't need such "alignment" of the registers.

svn path=/trunk/mono/; revision=7800
2002-09-25 04:50:10 +00:00
Miguel de Icaza 6c03dfc7f7 2002-09-25 Miguel de Icaza <[email protected]>
* ecore.cs (TryImplicitIntConversion): When doing an
	implicit-enumeration-conversion, check if the type is 64-bits and
	perform a conversion before passing to EnumConstant.

svn path=/trunk/mcs/; revision=7799
2002-09-25 04:20:49 +00:00
Mark Crichton dbb66e9867 arch/sparc/tramp.c: Fixed once again. Now works, mostly.
io-layer/atomic.h: It's sparc on gcc/solaris, and __sparc__ on gcc/linux.
	           had to add an #ifdef.

svn path=/trunk/mono/; revision=7798
2002-09-25 01:52:30 +00:00
Adam Treat 62cc2c3017 * Added tageditor, a context menu for inserting monodoc tags
* Updated the GUI to handle the changes in the lib

svn path=/trunk/mcs/; revision=7794
2002-09-24 21:29:10 +00:00
Adam Treat fb12a3e446 * Added emember.cs and seealso.cs which help to flesh out the dtd
* Reworked Type.cs to support the full range of the monodoc.dtd

* Added support for the full monodoc.dtd to parser.cs

svn path=/trunk/mcs/; revision=7792
2002-09-24 21:27:49 +00:00
Martin Baulig 2021462e95 Small improvement.
svn path=/trunk/mono/; revision=7787
2002-09-24 20:32:46 +00:00
Martin Baulig 86d6940fac 2002-09-24 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_GetType): New method to get a Type
	from its metadata token.  This should only be used by the debugger.

svn path=/trunk/mcs/; revision=7784
2002-09-24 20:04:10 +00:00
Martin Baulig 4e1aed55c0 2002-09-24 Martin Baulig <[email protected]>
* debug.c (mono_debug_open): When we're invoked from inside the
	Mono Debugger, set mono_debugger_class_init_func (exported in
	metadata/class.c) to mono_add_type().
	(mono_add_type): Call mono_debug_symfile_add_type().

svn path=/trunk/mono/; revision=7783
2002-09-24 20:02:35 +00:00
Martin Baulig 688cde0904 2002-09-24 Martin Baulig <[email protected]>
* class.c (mono_debugger_class_init_func): New global function
	pointer variable.
	(mono_class_init): If mono_debugger_class_init_func is non-NULL,
	call it.

	* debug-mono-symfile.c (mono_debug_symfile_add_type): New
	function.  This is called via the mono_debugger_class_init_func
	hook to add all types to the dynamic type table.
	(ves_icall_MonoDebugger_GetType): New interncall to get a class
	from its metadata token.

	* icall.c ("System.Reflection.Assembly::MonoDebugger_GetType"):
	New interncall for the debugger.

svn path=/trunk/mono/; revision=7782
2002-09-24 20:02:10 +00:00
Miguel de Icaza ffa9b1f8a4 Update files
svn path=/trunk/mcs/; revision=7781
2002-09-24 18:25:09 +00:00
Miguel de Icaza e135755a10 Add WarningException.cs
svn path=/trunk/mcs/; revision=7780
2002-09-24 18:23:42 +00:00
Nick Drochak e976db7f29 2002-09-24 Nick Drochak <[email protected]>
* icall.c (ves_icall_System_Enum_ToObject): validate the type parameter
	before using it in case it is null.

svn path=/trunk/mono/; revision=7779
2002-09-24 15:21:19 +00:00
Gonzalo Paniagua Javier 7c83de8e4b 2002-09-24 Gonzalo Paniagua Javier <[email protected]>
* PathTest.cs: added test for null argument in IsPathRooted.

svn path=/trunk/mcs/; revision=7778
2002-09-24 15:05:32 +00:00
Martin Baulig 5d8eab5ec8 Don't include static fields.
svn path=/trunk/mono/; revision=7777
2002-09-24 14:14:01 +00:00
Nick Drochak 0032d48b02 2002-09-24 Nick Drochak <[email protected]>
* ArrayList.cs: Make enumerator throw exception if the ArrayList is
	mutated (Insert, Delete, etc.). Also, fix bug in InsertRange() when
	this was passed as parameter.

svn path=/trunk/mcs/; revision=7775
2002-09-24 14:11:07 +00:00
Nick Drochak 734d904e3e 2002-09-24 Nick Drochak <[email protected]>
* ArrayListTest.cs: Add test for InsertRange() for the case where an
	ArrayList is passed to itself to be insterted.

svn path=/trunk/mcs/; revision=7774
2002-09-24 14:10:33 +00:00
Martin Baulig 06c96bb5d1 Added support for structs and classes.
svn path=/trunk/mono/; revision=7772
2002-09-24 11:31:47 +00:00
Paolo Molaro b8bdaccfda Tue Sep 24 13:24:56 CEST 2002 Paolo Molaro <[email protected]>
* metadata.c: allow custom modifiers in local var signatures
	(bug spotted by Zoltan Varga).

svn path=/trunk/mono/; revision=7771
2002-09-24 11:27:44 +00:00
Gaurav Vaish 3e7f3ae17c 2002-09-24
* RegexTypeEditor.cs      : Completed
* RegexEditorDialog.cs    : Initial implementation.

svn path=/trunk/mcs/; revision=7770
2002-09-24 11:20:57 +00:00
Paolo Molaro c1595a2d68 Tue Sep 24 12:12:16 CEST 2002 Paolo Molaro <[email protected]>
* class.c: deal with the <Module> class that may have a NULL vtable.
	Eliminate warnings.

svn path=/trunk/mono/; revision=7769
2002-09-24 10:14:55 +00:00
Paolo Molaro 3ee422999e Tue Sep 24 11:48:53 CEST 2002 Paolo Molaro <[email protected]>
* main.c: use mono_type_size () to get the size of
	a blob of data for a type (Zoltan Varga spotted the bug).

svn path=/trunk/mono/; revision=7768
2002-09-24 09:52:02 +00:00
Paolo Molaro a2a8d1547f Tue Sep 24 11:34:02 CEST 2002 Paolo Molaro <[email protected]>
* jit.c: avoid including cil-coff.h (again). Optimize typeof (type).
	Run finalize on domain cleanup.
	* mono.c: call setlocale ().
	* trampoline.c: clearer error message for invalid trampoline.

svn path=/trunk/mono/; revision=7767
2002-09-24 09:38:38 +00:00
Paolo Molaro e2440e9757 Tue Sep 24 11:28:46 CEST 2002 Paolo Molaro <[email protected]>
* image.c, image.h: more strong name helpers.
	* monosn.c: more work: convert pem keys to cryptoapi format.

svn path=/trunk/mono/; revision=7766
2002-09-24 09:31:42 +00:00
Paolo Molaro 4ba3ae74aa Tue Sep 24 11:27:38 CEST 2002 Paolo Molaro <[email protected]>
* string-icalls.c: speedup IndexOf.

svn path=/trunk/mono/; revision=7765
2002-09-24 09:29:48 +00:00
Paolo Molaro b5f0912fcd 2002-09-21 Zoltan Varga <[email protected]>
* CallConvCdecl.cs: new file

	* CallConvFastcall.cs: new file

	* CallConvThiscall.cs: new file

	* CallConvStdcall.cs: new file

	* RuntimeHelpers.cs: Implemented OffsetToStringData, GetObjectValue and
	RunClassConstructor.

svn path=/trunk/mcs/; revision=7764
2002-09-24 09:20:39 +00:00
Paolo Molaro c94963533c Tue Sep 24 11:17:13 CEST 2002 Paolo Molaro <[email protected]>
* icall.c: updates from [email protected].

svn path=/trunk/mono/; revision=7763
2002-09-24 09:19:59 +00:00
Paolo Molaro 72e36542ad Updates.
svn path=/trunk/mcs/; revision=7762
2002-09-24 09:18:12 +00:00
Paolo Molaro 02253ae5cd Tue Sep 24 11:09:17 CEST 2002 Paolo Molaro <[email protected]>
* icall.c: cleanup: use mono_object_domain ().

svn path=/trunk/mono/; revision=7761
2002-09-24 09:11:30 +00:00
Paolo Molaro 7997efba36 2002-09-21 Zoltan Varga <[email protected]>
* AllTests.cs: new file

	* RuntimeHelpersTest.cs: new file

svn path=/trunk/mcs/; revision=7760
2002-09-24 09:09:35 +00:00
John Sohn 68e9564374 *** empty log message ***
svn path=/trunk/mcs/; revision=7759
2002-09-24 06:09:20 +00:00
John Sohn 7ef9bfb6a3 2002-9-24 John Sohn <[email protected]>
* Application.cs: Run method now creates the Form
	* ContainerControl.cs: no implementation but made sure overridden
	methods call the base class
	* Control.cs: Implemented several more methods in the implementation
	of this class. Implemented ControlCollection, allowing controls
	to be added and removed from the Form.
	* Form.cs: Implemented more methods of the Form class
	* FormTest.cs: Added code to draw and display a Label
	* Label.cs: Initial implementation of Label class. The Label can
	be added and displayed on a Form.
	* NativeWindow.cs: modified debugging (console) output
	* ScrollableControl.cs: no implementation but made sure overridden
	methods call the base class
	* Win32.cs: added more Win32 imports and definitions
	* monostub.c: now store the application HINSTANCE
	* makefile: added Label.cs to makefile

svn path=/trunk/mcs/; revision=7758
2002-09-24 06:06:39 +00:00
Adam Treat a20fc7fc78 * Broke up our monodoc source file so it's easier to extend. It was
getting to big ;)

svn path=/trunk/mcs/; revision=7757
2002-09-24 04:17:40 +00:00
Adam Treat 89b878c5df * Damn, I couldn't fine this anywhere... thanks gonzalo ;)
svn path=/trunk/mcs/; revision=7754
2002-09-24 01:58:58 +00:00
Adam Treat e751b881bf * Thanks gonzalo ;)
svn path=/trunk/mcs/; revision=7753
2002-09-24 01:50:05 +00:00
Adam Treat 31d8c204a5 * Hook up the options dialog
svn path=/trunk/mcs/; revision=7752
2002-09-24 01:11:15 +00:00
Miguel de Icaza 49efecf987 2002-09-23 Miguel de Icaza <[email protected]>
* decl.cs (Error_AmbiguousTypeReference); New routine used to
	report ambiguous type references.  Unlike the MS version, we
	report what the ambiguity is.   Innovation at work ;-)

svn path=/trunk/mcs/; revision=7751
2002-09-24 00:54:24 +00:00
Miguel de Icaza 73b75c4bef 2002-09-23 Miguel de Icaza <[email protected]>
* decl.cs (DeclSpace.FindType): Require a location argument to
	display when we display an ambiguous error.

	* ecore.cs: (SimpleName.DoResolveType): Pass location to FindType.

	* interface.cs (GetInterfaceTypeByName): Pass location to FindType.

svn path=/trunk/mcs/; revision=7748
2002-09-24 00:32:57 +00:00
Martin Baulig 6c3be28a21 More work on the type stuff.
svn path=/trunk/mono/; revision=7746
2002-09-23 23:21:14 +00:00
Miguel de Icaza 0544e9c682 2002-09-23 Miguel de Icaza <[email protected]>
* expression.cs (EmitDynamicInitializers): Apply patch from
	[email protected] that fixes the order in which we emit our
	initializers.

svn path=/trunk/mcs/; revision=7745
2002-09-23 22:39:52 +00:00
Duncan Mak 23bb65c7a5 2002-09-23 Duncan Mak <[email protected]>
* XslTransform.cs (Laod): Implemented the simple version that
	takes one XPathNavigator as argument.
	(Save): New private method for recreating the XML in text from a
	XPathNavigator
	(WriteCurrentNode):
	(WriteTree): private methods for generating the text XML from the
	XPathNavigator tree.

svn path=/trunk/mcs/; revision=7744
2002-09-23 22:19:25 +00:00
Mark Crichton 4372c15832 Added information about the new LCC 4.2 release that supports compiling to
MSIL.

svn path=/trunk/mono/; revision=7743
2002-09-23 18:19:51 +00:00
Andrew Birkett a724359910 2002-09-23 Andrew Birkett <[email protected]>
* RijndaelManagedTest.cs: Fixed initialization order problem
	to match MS behaviour.

svn path=/trunk/mcs/; revision=7742
2002-09-23 18:07:38 +00:00
Andrew Birkett ff4ec3d133 2002-09-23 Andrew Birkett <[email protected]>
* corlib_linux_test.args: Added MD5Test

svn path=/trunk/mcs/; revision=7741
2002-09-23 18:06:10 +00:00
Gonzalo Paniagua Javier 26c28da391 2002-09-23 Gonzalo Paniagua Javier <[email protected]>
* HtmlAnchor.cs:
	* HtmlButton.cs:
	* HtmlContainerControl.cs:
	* HtmlControl.cs:
	* HtmlForm.cs:
	* HtmlGenericControl.cs:
	* HtmlImage.cs:
	* HtmlInputButton.cs:
	* HtmlInputCheckBox.cs:
	* HtmlInputControl.cs:
	* HtmlInputFile.cs:
	* HtmlInputHidden.cs:
	* HtmlInputImage.cs:
	* HtmlInputRadioButton.cs:
	* HtmlInputText.cs:
	* HtmlSelect.cs:
	* HtmlTable.cs:
	* HtmlTableCell.cs:
	* HtmlTableRow.cs:
	* HtmlTextArea.cs: added almost all missing attributes.

svn path=/trunk/mcs/; revision=7740
2002-09-23 17:59:02 +00:00
Martin Baulig b55c75b6e8 Added support for enum types.
svn path=/trunk/mono/; revision=7739
2002-09-23 16:42:25 +00:00
Martin Baulig 469bc8f420 Multi-dimensional arrays ...
svn path=/trunk/mono/; revision=7736
2002-09-23 15:51:17 +00:00
Nick Drochak 5877256e30 2002-09-24 Nick Drochak <[email protected]>
* ArrayListTest.cs: Add check that enumerator is invalidated after a
	method that changes the list, such as Add(), Remove(), etc.

svn path=/trunk/mcs/; revision=7735
2002-09-23 15:17:31 +00:00
Gonzalo Paniagua Javier b2d22b5280 Little fix to clean target for PEToolkit
svn path=/trunk/mcs/; revision=7733
2002-09-23 14:52:50 +00:00
Nick Drochak f9b5964873 2002-09-23 Nick Drochak <[email protected]>
* TraceTest.cs: Default level and size are 0 & 4, respectively.

svn path=/trunk/mcs/; revision=7732
2002-09-23 14:44:48 +00:00
Martin Baulig 8423c62e96 2002-09-23 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Improved type support.

svn path=/trunk/mono/; revision=7730
2002-09-23 14:36:08 +00:00
Paolo Molaro 64dc6f0c67 Update.
svn path=/trunk/mono/; revision=7729
2002-09-23 09:04:50 +00:00
Mark Crichton 2399ceea61 Starting rewrite of trampolining for SPARC. It needed some cleanup.
It doesn't work at all now.  GO PROGRESS!

svn path=/trunk/mono/; revision=7728
2002-09-23 02:25:43 +00:00
Gonzalo Paniagua Javier 7b6b950e75 2002-09-22 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: fixed InvokeEventMethod now that Type.GetMethod does not
	return pvt methods.

svn path=/trunk/mcs/; revision=7727
2002-09-23 01:42:48 +00:00
Gonzalo Paniagua Javier b3c0ac9e01 2002-09-22 Gonzalo Paniagua Javier <[email protected]>
* System.IO/BinaryReaderTest.cs: more tests.

	* System.Security.Cryptography/AllTests.cs:
	* System.Security.Cryptography/ChangeLog:
	* System.Security.Cryptography/MD5Test.cs: added new MD5Test.cs.

	Patch from Eduardo Garc�a Cebollero ([email protected]).

svn path=/trunk/mcs/; revision=7726
2002-09-23 01:00:15 +00:00
Gonzalo Paniagua Javier 59d02c87d9 2002-09-22 Gonzalo Paniagua Javier <[email protected]>
* XmlConvert.cs: IsInvalid is now internal.
	* XmlNamespaceManager.cs: implemented RemoveNamespace
	* XmlTextReader.cs: return BaseURI and Encoding from the parser.
	* XmlTextWriter.cs: implemented WriteName and WriteNmToken.

svn path=/trunk/mcs/; revision=7725
2002-09-23 00:39:30 +00:00
Gonzalo Paniagua Javier 593854090b 2002-09-22 Gonzalo Paniagua Javier <[email protected]>
* get.c: closes bug #30814. Thanks to Zoltan Varga.

svn path=/trunk/mono/; revision=7724
2002-09-22 17:31:53 +00:00
Andrew Birkett 1a166dda7f 2002-09-22 Andrew Birkett <[email protected]>
* RijndaelManaged.cs: Added faster case for multiplication by 2 in GF(8)

svn path=/trunk/mcs/; revision=7723
2002-09-22 16:05:55 +00:00
Andrew Birkett 26e16e4f03 2002-09-22 Andrew Birkett <[email protected]>
* System.Security.Cryptography/RijndaelManagedTest.cs: BlockSize
	measured in bytes, not bits.

svn path=/trunk/mcs/; revision=7722
2002-09-22 15:28:10 +00:00
Andrew Birkett cc02964701 2002-09-22 Andrew Birkett <[email protected]>
* RijndaelManaged.cs: BlockSize now reports size in bytes.
	* ICryptoTransform.cs: Updated comments - BlockSizes are in bytes, unlike elsewhere.

svn path=/trunk/mcs/; revision=7721
2002-09-22 15:26:50 +00:00
Nick Drochak 279b42114e 2002-09-22 Nick Drochak <[email protected]>
* Parser.cs: Remove extraneous "using" that was stopping the build.

svn path=/trunk/mcs/; revision=7720
2002-09-22 14:35:04 +00:00
Martin Baulig 149657947f 2002-09-22 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Added support for reference types and strings.

svn path=/trunk/mono/; revision=7718
2002-09-22 13:46:42 +00:00
Martin Baulig 357528fd8f Removed another g_message().
svn path=/trunk/mono/; revision=7717
2002-09-22 13:45:54 +00:00
Johannes Roith 5e66030ed3 fix ximian link.
svn path=/trunk/mono/; revision=7715
2002-09-22 09:15:58 +00:00
Martin Baulig 0860aa1384 Removed this g_message().
svn path=/trunk/mono/; revision=7713
2002-09-21 23:25:29 +00:00
Martin Baulig 281f0d64b0 2002-09-22 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Started to work on the type table.

svn path=/trunk/mono/; revision=7712
2002-09-21 23:24:50 +00:00
Miguel de Icaza 447eb0ca67 2002-09-17 Asier Llano Palacios <[email protected]>
* CancelEventArgs.cs
	* CancelEventHandler.cs
	* PropertyChangedEventHandler.cs
	* IExtenderProvider.cs: Implemented

svn path=/trunk/mcs/; revision=7711
2002-09-21 21:39:37 +00:00
Miguel de Icaza e335c3c1a5 2002-09-21 Miguel de Icaza <[email protected]>
* FileStream.cs: Do not call FSync on the file.

svn path=/trunk/mcs/; revision=7710
2002-09-21 21:27:59 +00:00
Martin Baulig 062b365f91 2002-09-21 Martin Baulig <[email protected]>
* delegate.cs (Delegate.VerifyApplicability): Make this work if the
	delegate takes no arguments.

svn path=/trunk/mcs/; revision=7692
2002-09-21 18:42:24 +00:00
Piers Haken e3df4e4f28 2002-09-21 Piers Haken <[email protected]>
* XPathNavigatorEvaluateTests.cs: enable more tests, XPathException is now used properly.

svn path=/trunk/mcs/; revision=7691
2002-09-21 18:28:40 +00:00
Piers Haken e05854d185 2002-09-21 Piers Haken <[email protected]>
* XPathException: implementation
	* Expression.cs:
	* Iterator.cs:
	* Parser.jay:
	* Tokenizer.jay:
	* XPathNavigator.jay:
		use XPathException.

svn path=/trunk/mcs/; revision=7690
2002-09-21 18:26:49 +00:00
Martin Baulig 6500bbb03b 2002-09-21 Martin Baulig <[email protected]>
* debug.c (MonoDebuggerSymbolFileTable): Use an actual typedef for this
	instead of writing a byte blob.
	(mono_debug_make_symbols): This doesn't touch the symbol tables anymore.
	(mono_debug_add_method): Incrementally add the new method to the symbol
	table.

	* exception.c (arch_handle_exception): If we have debugging support,
	call mono_debugger_update_symbol_file_table () as well.

svn path=/trunk/mono/; revision=7686
2002-09-21 17:16:34 +00:00
Martin Baulig 6f85fc7bd9 2002-09-21 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Largely reworked the symbol table format.
	The symbol table is now incrementally updated each time a new
	method is added.  We're now also using our own magic and version
	so that you don't need to recompile all your classes if the
	dynamic table changes.
	(mono_debug_update_mono_symbol_file): Removed.
	(mono_debug_symfile_add_method): New function to add a method.

svn path=/trunk/mono/; revision=7685
2002-09-21 17:14:47 +00:00
Martin Baulig 3c63374b42 2002-09-21 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Set version number to 26.  Removed all the dynamic
	stuff, this library now just deals with the compiler generated symbol table.
	The dynamic stuff is private between the JIT and the debugger.

svn path=/trunk/mcs/; revision=7684
2002-09-21 17:12:30 +00:00
Matt Hunter afcfff04a2 implementing tests: XmlElementTests.TestSetAttributeNode
and XmlAttributeCollectionTest.TestAppend

svn path=/trunk/mcs/; revision=7681
2002-09-21 04:21:44 +00:00
Matt Hunter 07aae53fac implementing XmlElement.SetAttributeNode(localName, namespaceURI) and
implementing XmlAttributeCollection.Append(XmlAttribute)

svn path=/trunk/mcs/; revision=7680
2002-09-21 04:20:31 +00:00
Miguel de Icaza 73692dfb45 2002-09-20 Miguel de Icaza <[email protected]>
* constant.cs: Use Conv_U8 instead of Conv_I8 when loading longs
	from integers.

	* expression.cs: Extract the underlying type.

	* ecore.cs (StoreFromPtr): Use TypeManager.IsEnumType instad of IsEnum

svn path=/trunk/mcs/; revision=7679
2002-09-21 04:12:05 +00:00
Adam Treat ff90b8ddf9 * Refactored some code
* Added archiver.cs

svn path=/trunk/mcs/; revision=7678
2002-09-21 03:49:26 +00:00
Adam Treat 711cd36714 * Integrated the flush methods and refactored some code.
svn path=/trunk/mcs/; revision=7677
2002-09-21 03:48:27 +00:00
Duncan Mak 7e5aeaec40 2002-09-20 Duncan Mak <[email protected]>
* data/config.in: Added reference to libxslt.

svn path=/trunk/mono/; revision=7676
2002-09-21 03:19:10 +00:00
Duncan Mak 8db33b5870 2002-09-16 Duncan Mak <[email protected]>
* Uri.cs (GetObjectData):
	(Uri): The key should be "AbsoluteUri", not "Uri".

2002-09-20  Duncan Mak  <[email protected]>

	* XslTransform.cs (Load): Implemented the  methods, not
	including the ones that deal with XPathNavigator (hopefully those
	will come later).
	(Transform): Implemented the version that saves directly to a file.
	(Save): New private method for recreating the XML in text from
	from an XmlReader

	We're now P/Invoking libxslt for doing XSLT work.

svn path=/trunk/mcs/; revision=7675
2002-09-21 03:18:17 +00:00
John Sohn 848e0d00ed added settings menu and initial configure dialog
svn path=/trunk/mcs/; revision=7674
2002-09-21 03:14:23 +00:00
Miguel de Icaza 80e1821593 2002-09-20 Miguel de Icaza <[email protected]>
* expression.cs: Extract the underlying type.

svn path=/trunk/mcs/; revision=7672
2002-09-21 00:02:02 +00:00
Miguel de Icaza e9d574a279 2002-09-20 Miguel de Icaza <[email protected]>
* ecore.cs (StoreFromPtr): Use TypeManager.IsEnumType instad of IsEnum

svn path=/trunk/mcs/; revision=7671
2002-09-20 23:53:34 +00:00
Martin Baulig 6b24be88df 2002-09-21 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_GetLocalTypeFromSignature): New method to
	get the type of a local variable from its signature.  This should only
	be used by the debugger.

svn path=/trunk/mcs/; revision=7669
2002-09-20 23:41:46 +00:00
Martin Baulig 72e148a30f 2002-09-21 Martin Baulig <[email protected]>
* icall.c
	("System.Reflection.Assembly::MonoDebugger_GetLocalTypeFromSignature"):
	New interncall.

	* debug-mono-symfile.c (ves_icall_MonoDebugger_GetLocalTypeFromSignature):
	New interncall to get a method from its metadata token.

svn path=/trunk/mono/; revision=7668
2002-09-20 23:40:47 +00:00
Martin Baulig b5f6dcaa76 Ooops, fixed a typo in my last commit.
svn path=/trunk/mono/; revision=7667
2002-09-20 23:39:21 +00:00
Martin Baulig b6688165af 2002-09-21 Martin Baulig <[email protected]>
* ModuleBuilder.cs (ModuleBuilder.symbol_writer): Make this
	field internal, not private.
	(ModuleBuilder.SymWriter_DefineLocalVariable): Removed.

	* LocalBuilder.cs (LocalBuilder.SetLocalSymInfo): Use the
	ISymbolWriter's DefineLocalVariable() method instead of the
	IMonoSymbolWriter hack.

svn path=/trunk/mcs/; revision=7666
2002-09-20 23:16:47 +00:00
Martin Baulig ba422481d9 2002-09-21 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Create type table.

svn path=/trunk/mono/; revision=7664
2002-09-20 23:13:33 +00:00
Martin Baulig dda30d78db 2002-09-21 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Set version number to 25.  Added information about
	local variables.

svn path=/trunk/mcs/; revision=7663
2002-09-20 23:12:48 +00:00
Adam Treat 0d05c3f3ad * Eliminate pesky carriage returns
svn path=/trunk/mcs/; revision=7662
2002-09-20 22:39:04 +00:00
Martin Baulig 12f74ca39f 2002-09-20 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Reflect latest Mono.CSharp.Debugger changes.

svn path=/trunk/mono/; revision=7661
2002-09-20 22:01:55 +00:00
Martin Baulig 6a7f5875ba 2002-09-20 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Set version number to 24.  Added a type index
	table.  Write the type of a local variable or a parameter as an index
	into this table.

svn path=/trunk/mcs/; revision=7660
2002-09-20 22:00:52 +00:00
Martin Baulig afd46500d4 2002-09-20 Martin Baulig <[email protected]>
* IMonoSymbolWriter.cs: Remove all the unused interfaces.

svn path=/trunk/mcs/; revision=7659
2002-09-20 21:05:41 +00:00
Miguel de Icaza 8e90ead220 Provide location informtaion
svn path=/trunk/mcs/; revision=7658
2002-09-20 20:58:19 +00:00
Miguel de Icaza 6706e60bd6 2002-09-20 Miguel de Icaza <[email protected]>
* decl.cs (FindType): Sorry about this, fixed the type lookup bug.

svn path=/trunk/mcs/; revision=7657
2002-09-20 20:47:34 +00:00
Mark Crichton 62f353dcb1 More Solaris/BSD fixes. This now allows shared handles to work on BSD
and BSD like systems.

Please test this code.  The only thing left is to fix POSIX shared threads
on Solaris...

svn path=/trunk/mono/; revision=7650
2002-09-20 17:10:02 +00:00
Martin Baulig 9a47cec765 2002-09-20 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Set version number to 23, include the size
	of a variable.

svn path=/trunk/mcs/; revision=7647
2002-09-20 15:01:25 +00:00
Martin Baulig 162bc3d1f5 2002-09-20 Martin Baulig <[email protected]>
* debug.c (mono_debug_add_method): The `MonoDebugVarInfo' now includes
	the size of the variable.

svn path=/trunk/mono/; revision=7646
2002-09-20 15:00:46 +00:00
Martin Baulig bd17401c0b 2002-09-20 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Set version number to 22.  Provide information
	about parameters and local variables.

svn path=/trunk/mcs/; revision=7645
2002-09-20 14:42:33 +00:00
Martin Baulig 079e9ba377 2002-09-20 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Provide information about params and locals.

svn path=/trunk/mono/; revision=7644
2002-09-20 14:41:55 +00:00
Martin Baulig 7b119ca3dd 2002-09-20 Martin Baulig <[email protected]>
* Assembly.cs (MonoDebugger_GetMethod): New method to get a MethodBase
	from its metadata token.  This should only be used by the debugger.

svn path=/trunk/mcs/; revision=7642
2002-09-20 13:38:00 +00:00
Martin Baulig 7b72546da7 2002-09-20 Martin Baulig <[email protected]>
* icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
	New interncall.

	* debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
	interncall to get a method from its metadata token.

svn path=/trunk/mono/; revision=7641
2002-09-20 13:36:05 +00:00
Paolo Molaro 14043542c4 Wed Sep 4 18:09:58 CEST 2002 Paolo Molaro <[email protected]>
* configure.in: add some needed defines to fix support of
	threads in the GC.

svn path=/trunk/mono/; revision=7640
2002-09-20 13:34:35 +00:00
Adam Treat 99dc6fbb98 * Begin the implementation of the Archive methods and extend the parser
to parse the go-mono.org/monodoc.dtd

* Added additional metadata to the data representation

svn path=/trunk/mcs/; revision=7638
2002-09-20 05:03:26 +00:00
Adam Treat 0d5c1c0dd8 * Begin the implementation of the Archive methods Sync and Flush.
* Set the FileRoot for the loaded Master.xml and allow the forms to flush to
the specified path.

svn path=/trunk/mcs/; revision=7637
2002-09-20 05:01:31 +00:00
Adam Treat ae4a470206 * Another fix to the Depth property to handle a more complex heirarchy.
svn path=/trunk/mcs/; revision=7636
2002-09-20 04:36:16 +00:00
Adam Treat ec02f3a0bc * The Depth property was not implemented correctly and the Read method did not
take the newline character into account.  The whitespace handling is very preliminary
but it is better than before, where every NON-AREA was being treated as NodeType.Text
example: <Foo name="Blah"> NON-AREA <Bar> TEXT </Bar> NON-AREA </Foo>  The text reader
now correctly performs the Depth example found here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmltextreaderclassdepthtopic.asp

svn path=/trunk/mcs/; revision=7635
2002-09-20 04:25:39 +00:00
Miguel de Icaza 6947f0572d 2002-09-19 Miguel de Icaza <[email protected]>
* class.cs (TypeContainer.DefineType): We can not use the nice
	PackingSize with the size set to 1 DefineType method, because it
	will not allow us to define the interfaces that the struct
	implements.

	This completes the fixing of bug 27287

	* ecore.cs (Expresion.ImplicitReferenceConversion): `class-type S'
	means also structs.  This fixes part of the problem.
	(Expresion.ImplicitReferenceConversionExists): ditto.

svn path=/trunk/mcs/; revision=7633
2002-09-19 23:23:32 +00:00
Martin Baulig eb13c3c328 2002-09-20 Martin Baulig <[email protected]>
* IMonoSymbolWriter.cs: Use fullly qualified name for
	System.Diagnostics.SymbolStore.ISymbolWriter rather than `using' this
	namespace.  This allows us to use the name `ISymbolWriter' in our own
	code.

svn path=/trunk/mcs/; revision=7632
2002-09-19 22:58:38 +00:00
Martin Baulig 38cee46306 2002-09-20 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Added a few checks for method->header
	being non-NULL.  This should never happen, but for the moment
	let's use a g_warning() rather than a g_assert().

svn path=/trunk/mono/; revision=7631
2002-09-19 22:26:53 +00:00
Miguel de Icaza b007341324 2002-09-19 Miguel de Icaza <[email protected]>
* decl.cs (DeclSparce.ResolveType): Only report the type-not-found
	error if there were no errors reported during the type lookup
	process, to avoid duplicates or redundant errors.  Without this
	you would get an ambiguous errors plus a type not found.  We have
	beaten the user enough with the first error.

	(DeclSparce.FindType): Emit a warning if we have an ambiguous
	reference.

	* ecore.cs (SimpleName.DoResolveType): If an error is emitted
	during the resolution process, stop the lookup, this avoids
	repeated error reports (same error twice).

	* rootcontext.cs: Emit a warning if we have an ambiguous reference.

svn path=/trunk/mcs/; revision=7630
2002-09-19 22:25:47 +00:00
Miguel de Icaza 045eaf1f77 Add new test
svn path=/trunk/mcs/; revision=7629
2002-09-19 22:08:21 +00:00
Miguel de Icaza 14d6027ca5 Improve test
svn path=/trunk/mcs/; revision=7628
2002-09-19 21:48:10 +00:00
Miguel de Icaza 3ce9a0001a 2002-09-19 Miguel de Icaza <[email protected]>
* typemanager.cs (LookupType): Redo the type lookup code to match
	the needs of System.Reflection.

	The issue is that System.Reflection requires references to nested
	types to begin with a "+" sign instead of a dot.  So toplevel
	types look like: "NameSpace.TopLevelClass", and nested ones look
	like "Namespace.TopLevelClass+Nested", with arbitrary nesting
	levels.

svn path=/trunk/mcs/; revision=7627
2002-09-19 21:42:00 +00:00
Andrew Birkett 79f8741a6f * System.Security.Cryptography/RijndaelManagedTest.cs: New test
* System.Security.Cryptography/AllTests.cs: Added RijndaelManagedTest
	* corlib_linux_test.args: Added RijndaelManagedTest

svn path=/trunk/mcs/; revision=7626
2002-09-19 19:32:22 +00:00
Andrew Birkett df0838678e * Rijndael.cs: Create() now gives you a RijndaelManaged object
* RijndaelManaged.cs: Added dummy GenerateKey until we have a proper RNG.
* SymmetricAlgorithm.cs: Updated comments

svn path=/trunk/mcs/; revision=7625
2002-09-19 19:31:14 +00:00
Martin Baulig dba32d8363 2002-09-19 Martin Baulig <[email protected]>
* test-154.cs: Added testcase from bug #30487.

svn path=/trunk/mcs/; revision=7624
2002-09-19 18:53:06 +00:00
Martin Baulig e9e273a33b 2002-09-19 Martin Baulig <[email protected]>
* codegen.cs (EmitContext.EmitTopBlock): If control flow analysis
	says that a method always returns or always throws an exception,
	don't report the CS0161.

	* statement.cs (FlowBranching.UsageVector.MergeChildren): Always
	set `Returns = new_returns'.

svn path=/trunk/mcs/; revision=7623
2002-09-19 18:52:46 +00:00
Mark Crichton 3eedd84b18 Beginning to add support for Solaris. Tested on Solaris 9.
Shared handles are still not working, will be addressed soon.

Trampoline code still broken, expect a rewrite.

svn path=/trunk/mono/; revision=7622
2002-09-19 18:30:56 +00:00
Duncan Mak 0a7663f9d5 2002-09-19 Duncan Mak <[email protected]>
* Array.cs (CopyTo): Revert back to 1.40, this is stopping
	I18N/Common from building right now.

svn path=/trunk/mcs/; revision=7621
2002-09-19 17:50:33 +00:00
Nick Drochak 999104f3d0 2002-09-19 Nick Drochak <[email protected]>
* StreamReaderTest.cs: Pinpoint error closing streams

svn path=/trunk/mcs/; revision=7620
2002-09-19 14:11:54 +00:00
Nick Drochak 9736241ce6 2002-09-19 Nick Drochak <[email protected]>
* ArrayTest.cs: Report errors with CopyTo().

svn path=/trunk/mcs/; revision=7619
2002-09-19 14:10:02 +00:00
Nick Drochak 0bcab3f27c 2002-09-19 Nick Drochak <[email protected]>
* Array.cs (CopyTo): Account for Object type and base (primitive) types
	* Type.cs (IsAssignableFrom): return false for a null parameter

svn path=/trunk/mcs/; revision=7618
2002-09-19 14:04:42 +00:00
Nick Drochak c556617566 2002-09-19 Nick Drochak <[email protected]>
* Array.cs (CopyTo): Check that source type can be cast automatically
	to the destination type.

svn path=/trunk/mcs/; revision=7617
2002-09-19 12:11:59 +00:00
Nick Drochak 6d07086de5 2002-09-19 Nick Drochak <[email protected]>
* ArrayTest.cs: Can check for exception throw now on CopyTo(). Re-
	enable test.

svn path=/trunk/mcs/; revision=7616
2002-09-19 12:05:06 +00:00
Martin Baulig e9f6f3b943 2002-09-19 Martin Baulig <[email protected]>
* expression.cs (MemberAccess.ResolveMemberAccess): When resolving
	to an enum constant, check for a CS0176.

svn path=/trunk/mcs/; revision=7615
2002-09-19 11:49:22 +00:00
Dietmar Maurer d8b7637801 2002-09-18 Dietmar Maurer <[email protected]>
* linear-scan.c (mono_analyze_liveness): we can save 30% of needed
	iterations if we visit blocks in reverse order.

svn path=/trunk/mono/; revision=7614
2002-09-19 09:17:09 +00:00
Gaurav Vaish c55b3d8237 2002-09-16 Gaurav Vaish <[email protected]>
* AdRotatorDesigner.cs    : GetDesignTimeHtml() - Removed "MonoTODO"
* ButtonDesigner.cs       : Completed.
* CalendarAutoFormatDialog.cs
                          : Initial implementation.
  	* CalendarDesigner.cs     : Initial implementation.
* CheckBoxDesigner.cs     : Completed.
* HyperLinkDesigner.cs    : Almost completed. See "FIXME".
* LabelDesigner.cs        : Completed.
* LinkButtonDesigner.cs   : Completed.
* TableCellsCollectionEditor.cs
                          : Completed
  	* TableDesigner.cs        : Initial implementation.

2002-09-16     Gaurav Vaish <[email protected]>

* TODO                    : TODO Updates. Found some undocumented
                            classes.

svn path=/trunk/mcs/; revision=7613
2002-09-19 08:25:02 +00:00
Gonzalo Paniagua Javier 7b527404dd 2002-09-19 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: fixed #30239.
	* XmlTextWriter.cs: fixed #30240.

svn path=/trunk/mcs/; revision=7612
2002-09-19 07:55:56 +00:00
Gonzalo Paniagua Javier f9fcc1d75e 2002-09-19 Gonzalo Paniagua Javier <[email protected]>
* XmlCustomFormatter.cs: finished.
	* XmlSerializationReader.cs: implemented some more methods.

svn path=/trunk/mcs/; revision=7611
2002-09-19 07:16:01 +00:00
Gonzalo Paniagua Javier 7faec3f1be 2002-09-19 Gonzalo Paniagua Javier <[email protected]>
* XmlConvert.cs: finished implementation.

svn path=/trunk/mcs/; revision=7610
2002-09-19 07:11:24 +00:00
Nick Drochak f6e3aaa0b1 Forgot one...
svn path=/trunk/mcs/; revision=7609
2002-09-19 06:59:15 +00:00
Nick Drochak e1a0fb9915 2002-09-19 Nick Drochak <[email protected]>
* TraceImpl.cs: Remove debug prints

svn path=/trunk/mcs/; revision=7608
2002-09-19 06:56:12 +00:00
Nick Drochak 7a11028c33 2002-09-19 Nick Drochak <[email protected]>
* TraceListenerCollection.cs: Set Indet level and size to default
	values.  The values from TraceImpl might have been changed.

svn path=/trunk/mcs/; revision=7607
2002-09-19 06:48:05 +00:00
Nick Drochak 4d00f22660 2002-09-19 Nick Drochak <[email protected]>
* TraceTest.cs: Clear list of listeners before each test.

svn path=/trunk/mcs/; revision=7606
2002-09-19 06:47:14 +00:00
Miguel de Icaza 021524678e Update index
svn path=/trunk/mono/; revision=7605
2002-09-19 06:12:26 +00:00
Miguel de Icaza f22633ce5f 2002-09-18 Miguel de Icaza <[email protected]>
* class.cs (TypeContainer.CheckPairedOperators): Now we check
	for operators that must be in pairs and report errors.

svn path=/trunk/mcs/; revision=7603
2002-09-19 01:17:25 +00:00
Martin Baulig e58b64a8f7 2002-09-19 Martin Baulig <[email protected]>
* debug-mono-symfile.c (read_string, write_string): Reflect latest
	changes in the symbol file format.

svn path=/trunk/mono/; revision=7598
2002-09-19 00:40:39 +00:00
Miguel de Icaza c1728ca2d8 2002-09-18 Miguel de Icaza <[email protected]>
* ecore.cs (SimpleName.DoResolveType): During the initial type
	resolution process, when we define types recursively, we must
	check first for types in our current scope before we perform
	lookups in the enclosing scopes.

svn path=/trunk/mcs/; revision=7596
2002-09-18 23:47:26 +00:00
Miguel de Icaza 31891eac8e 2002-09-18 Miguel de Icaza <[email protected]>
* expression.cs (MakeByteBlob): Handle Decimal blobs.

svn path=/trunk/mcs/; revision=7595
2002-09-18 22:46:26 +00:00
Gonzalo Paniagua Javier 709edea6bc Make it build on unix
svn path=/trunk/mcs/; revision=7587
2002-09-18 15:20:59 +00:00
Martin Baulig f7fa3e9881 2002-09-18 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Set version number to 21.

svn path=/trunk/mono/; revision=7586
2002-09-18 14:00:52 +00:00
Martin Baulig 8125abef6b 2002-09-18 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Set version number to 21.  Encode the source file
	as a 4-byte length field followed by the UTF8 encoded string.

svn path=/trunk/mcs/; revision=7585
2002-09-18 13:59:31 +00:00
Martin Baulig 0c2ce64528 2002-09-18 Martin Baulig <[email protected]>
* IMonoBinaryReader.cs: New interface.

	* MonoSymbolTable.cs: Use IMonoBinaryReader instead of binary reader.

svn path=/trunk/mcs/; revision=7582
2002-09-18 13:13:26 +00:00
Dick Porter 4786e2ce84 2002-09-18 Dick Porter <[email protected]>
* threads.c (mon_new): Use the GC_MALLOC macro to hide differences
	on netbsd.  Fixes bug 30051.

svn path=/trunk/mono/; revision=7579
2002-09-18 12:04:02 +00:00
Gonzalo Paniagua Javier aa0acdf4b2 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
* XmlSerializationReader.cs: implemented a few methods.

	* XmlAnyElementAttribute.cs:
	* XmlArrayAttribute.cs:
	* XmlChoiceIdentifierAttribute.cs:
	* XmlElementAttribute.cs:
	* XmlMemberMapping.cs:
	* XmlMembersMapping.cs: class status based fixes.

svn path=/trunk/mcs/; revision=7578
2002-09-18 07:43:41 +00:00
Miguel de Icaza b8f3703cd2 2002-09-18 Miguel de Icaza <[email protected]>
* expression.cs (Invocation.VerifyArgumentsCompat): Call
	TypeManager.TypeToCoreType on the parameter_type.GetElementType.
	I thought we were supposed to always call this, but there are a
	few places in the code where we dont do it.

svn path=/trunk/mcs/; revision=7577
2002-09-18 06:57:32 +00:00
Adam Treat 9f4c5d1676 * Added the QProgressDialog and extensions to the form widgets
svn path=/trunk/mcs/; revision=7576
2002-09-18 06:41:05 +00:00
Gonzalo Paniagua Javier f13b9706bf implemented DefaultBinder and GetDefaultMembers
svn path=/trunk/mcs/; revision=7575
2002-09-18 05:29:37 +00:00
Gonzalo Paniagua Javier 6918735598 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
* System.Xml/XmlDocument.cs:
	* System.Xml/XmlTextWriter.cs:
	* System.Xml/XmlValidatingReader.cs:
	* System.Xml.Schema/XmlSchemaCollection.cs:
	* System.Xml.Schema/XmlSchemaException.cs:
	* System.Xml.Schema/XmlSchemaObjectCollection.cs:
	* System.Xml.Serialization/SoapTypeAttribute.cs:
	* System.Xml.Serialization/XmlAttributes.cs:
	* System.Xml.Serialization/XmlMapping.cs:
	* System.Xml.Serialization/XmlReflectionImporter.cs:
	* System.Xml.Serialization/XmlSerializer.cs:
	* System.Xml.Serialization/XmlTextAttribute.cs:
	* System.Xml.Xsl/XslTransform.cs: misc. fixed and implementation.

	* System.Xml.Serialization/SchemaTypes.cs: New file.
	* System.Xml.Serialization/TypeData.cs: New file.
	* System.Xml.Serialization/TypeTranslator.cs: New file.

svn path=/trunk/mcs/; revision=7574
2002-09-18 05:21:10 +00:00
Kral Ferch a98017c882 xpath tests for string(), concat(), starts-with(), and contains().
svn path=/trunk/mcs/; revision=7572
2002-09-18 04:48:32 +00:00
Gonzalo Paniagua Javier 68f4f02905 2002-09-18 Gonzalo Paniagua Javier <[email protected]>
* Type.cs: implemented IsAssignableFrom.

svn path=/trunk/mcs/; revision=7571
2002-09-18 04:05:07 +00:00
Adam Treat 16e0c171f6 * Implemented some nice sorting methods
svn path=/trunk/mcs/; revision=7570
2002-09-18 03:08:33 +00:00
Miguel de Icaza ca050ddc0d Flushety Flush
svn path=/trunk/mono/; revision=7569
2002-09-17 22:59:13 +00:00
Gonzalo Paniagua Javier da120aecba Actually build PEToolkit on unix
svn path=/trunk/mcs/; revision=7568
2002-09-17 22:52:29 +00:00
Miguel de Icaza ffe1660a03 oops
svn path=/trunk/mcs/; revision=7567
2002-09-17 21:47:45 +00:00
Miguel de Icaza 23b3aa1be5 2002-09-17 Miguel de Icaza <[email protected]>
* driver.cs: Add support in -linkres and -resource to specify the
	name of the identifier.

svn path=/trunk/mcs/; revision=7566
2002-09-17 21:24:13 +00:00
Miguel de Icaza 8928220dab Update man page
svn path=/trunk/mono/; revision=7565
2002-09-17 21:23:51 +00:00
Miguel de Icaza 76f71ea43b Add decimal to MakeByteBlob
svn path=/trunk/mcs/; revision=7564
2002-09-17 18:16:08 +00:00
Nick Drochak 9f997ad5cd 2002-09-17 Nick Drochak <[email protected]>
* UriTest.cs: Fixed some path separator issues for the tests running on
	linux.

	* TraceTest.cs: Remove extraneous Console.WriteLine().

	* ServicePointManagerTest.cs: Convert Console.WriteLine() into a Fail()

	* TraceImpl.cs: Add some debug to find the error.  Still working on
	this one.

svn path=/trunk/mcs/; revision=7563
2002-09-17 15:05:21 +00:00
Miguel de Icaza 7e6e368b3f I got mixed up
svn path=/trunk/mono/; revision=7562
2002-09-17 14:49:51 +00:00
Adam Treat abcf740ff1 * Fixed CreateInstance to honor the bflags argument.
svn path=/trunk/mcs/; revision=7561
2002-09-17 14:44:11 +00:00
Miguel de Icaza bebcc60989 Apply patch to Brushes
svn path=/trunk/mcs/; revision=7560
2002-09-17 14:38:02 +00:00
Nick Drochak c1b04d89b3 2002-09-17 Nick Drochak <[email protected]>
* System_test.build: Oops.  Don't build the old standalone exe either.

svn path=/trunk/mcs/; revision=7559
2002-09-17 14:00:26 +00:00
Nick Drochak 93ed6ca92a 2002-09-17 Nick Drochak <[email protected]>
* TheTests.cs: Removed.  Not needed anymore since NUnit runs on linux.
	* Syste_test.build: Build a linux version of the unit tests (just a
	different linking of dll's)

svn path=/trunk/mcs/; revision=7558
2002-09-17 13:51:33 +00:00
Adam Treat d17799bf9a * The rest of the Master.xml files for the assemblies. Note: we're still missing
assemblies such as System.DirectoryServices.dll

svn path=/trunk/mcs/; revision=7557
2002-09-17 06:31:43 +00:00
Gonzalo Paniagua Javier 8421f2e98c 2002-09-17 Gonzalo Paniagua Javier <[email protected]>
* reflection.c:
	(set_version_from_string): little fix.

svn path=/trunk/mono/; revision=7553
2002-09-17 05:00:04 +00:00
Gaurav Vaish e4667928cb 2002-09-16 Gaurav Vaish <[email protected]>
* TODO                    : TODO Updates. Found some undocumented
                            classes.

svn path=/trunk/mcs/; revision=7552
2002-09-17 04:50:56 +00:00
Miguel de Icaza 7d9658d15a 2002-09-16 Miguel de Icaza <[email protected]>
* ecore.cs (StandardConversionExists): Sync with the conversion
	code: allow anything-* to void* conversions.

svn path=/trunk/mcs/; revision=7551
2002-09-17 04:34:26 +00:00
Gonzalo Paniagua Javier f8a4aeba3f added list file and 'disabled' build with mcs
svn path=/trunk/mcs/; revision=7550
2002-09-17 03:00:43 +00:00
Miguel de Icaza bbec6a7fb9 Add nant file
svn path=/trunk/mcs/; revision=7549
2002-09-17 02:29:52 +00:00
Miguel de Icaza 695ddcd816 Update news
svn path=/trunk/mono/; revision=7548
2002-09-17 02:24:09 +00:00
Miguel de Icaza 03d3f9b784 2002-9-15 Asier Llano <[email protected]>
* Fixes	the enum values in the following enums
	* ContentAlignment.cs:
	* FontStyle.cs:
	* GraphicsUnit.cs:
	* KnownColor.cs:
	* RotateFlipType.cs:
	* StringAligment.cs:
	* StringDigitSubstitute.cs:
	* StringFormatFlags.cs:
	* StringTrimming.cs:
	* StringUnit.cs:
	* SolidBrush.cs: Easy implementation
	* Brushes.cs:    Implementation based on SolidBrush and Color class.
        * Brush.cs:      Fixes based on the status web).
	* CharacterRange.cs: Implemented the missing Lenth property.

svn path=/trunk/mcs/; revision=7547
2002-09-17 02:15:18 +00:00
Adam Treat 74467c031a * Update on the mono documentation tools.
svn path=/trunk/mono/; revision=7546
2002-09-17 02:10:46 +00:00
Miguel de Icaza 3eeddbd69d Add makefile.gnu
svn path=/trunk/mcs/; revision=7545
2002-09-17 01:59:21 +00:00
Miguel de Icaza 3b8e6c5823 Add Sergey Panov's ILASM to the build, waiting for an update
svn path=/trunk/mcs/; revision=7544
2002-09-17 01:44:02 +00:00
Miguel de Icaza db76d32644 Add Mono.PEToolkit to the build
svn path=/trunk/mcs/; revision=7543
2002-09-17 01:19:47 +00:00
Miguel de Icaza 9b1aad2b6f Add Sergey Chaban's Mono.PEToolkit
svn path=/trunk/mcs/; revision=7542
2002-09-17 01:18:57 +00:00
Adam Treat 501655c80d * Images for MonoDoc
svn path=/trunk/mcs/; revision=7541
2002-09-17 01:02:37 +00:00
Adam Treat be956b47ec * Hurray! The mono documentation editor :-)
svn path=/trunk/mcs/; revision=7540
2002-09-17 01:01:51 +00:00
Miguel de Icaza 6407333030 Remove debugging message
svn path=/trunk/mcs/; revision=7539
2002-09-17 01:00:37 +00:00
Adam Treat ffb41f4845 * This is the tool used to generate the Master.xml files on Windows
svn path=/trunk/mcs/; revision=7538
2002-09-17 01:00:28 +00:00
Miguel de Icaza 25f808006a 2002-09-16 Miguel de Icaza <[email protected]>
* ecore.cs (FindMostSpecificSource): Use an Expression argument
	instead of a Type, because we might be handed over a Literal which
	gets a few more implicit conversions that plain types do not.  So
	this information was being lost.

	Also, we drop the temporary type-holder expression when not
	required.

svn path=/trunk/mcs/; revision=7537
2002-09-17 01:00:02 +00:00
Adam Treat 16e839a58d * This is/will be the shared lib for MonoDoc
svn path=/trunk/mcs/; revision=7536
2002-09-17 00:59:18 +00:00
Adam Treat c9d6bbeb43 * Initial setup for MonoDoc
svn path=/trunk/mcs/; revision=7535
2002-09-17 00:57:08 +00:00
Adam Treat 1e60974b30 * More cleanup.
svn path=/trunk/mcs/; revision=7534
2002-09-17 00:52:28 +00:00
Adam Treat 0bc22702d7 * More cleanup
svn path=/trunk/mcs/; revision=7533
2002-09-17 00:44:36 +00:00
Adam Treat b5cd8474f8 * More cleaning up.
svn path=/trunk/mcs/; revision=7532
2002-09-17 00:42:31 +00:00
Adam Treat c50d7b5903 * Removed John's tools. We are using a different method.
svn path=/trunk/mcs/; revision=7531
2002-09-17 00:36:05 +00:00
Miguel de Icaza 2d9580e265 2002-09-17 Martin Baulig <[email protected]>
* class.cs (PropertyBase.CheckBase): Don't check the base class if
	this is an explicit interface implementation.

svn path=/trunk/mcs/; revision=7530
2002-09-17 00:29:10 +00:00
Miguel de Icaza 685ae9720b 2002-09-16 Miguel de Icaza <[email protected]>
* TextWriter.cs (Null): The Null field should be an instance of a
	TextWriter class that does nothing, so it is an instance of the
	NullTextWriter class.

svn path=/trunk/mcs/; revision=7529
2002-09-16 23:45:37 +00:00
Martin Baulig f6d17c09aa 2002-09-17 Martin Baulig <[email protected]>
* class.cs (PropertyBase.CheckBase): Don't check the base class if
	this is an explicit interface implementation.

svn path=/trunk/mcs/; revision=7528
2002-09-16 22:59:40 +00:00
Martin Baulig 59a19aba9a 2002-09-17 Martin Baulig <[email protected]>
* test-148.cs: Added testcase for base indexers.

svn path=/trunk/mcs/; revision=7527
2002-09-16 22:14:48 +00:00
Martin Baulig 6914d4218b 2002-09-17 Martin Baulig <[email protected]>
* class.cs (PropertyBase.CheckBase): Make this work for indexers with
	different `IndexerName' attributes.

	* expression.cs (BaseIndexerAccess): Rewrote this class to use IndexerAccess.
	(IndexerAccess): Added special protected ctor for BaseIndexerAccess and
	virtual CommonResolve().

svn path=/trunk/mcs/; revision=7526
2002-09-16 22:13:52 +00:00
Chris Toshok 9749a97dc5 initial import
svn path=/trunk/mcs/; revision=7525
2002-09-16 21:26:14 +00:00
Miguel de Icaza 132cd42b52 Small temporary fix, Lupus will fix right
svn path=/trunk/mono/; revision=7524
2002-09-16 21:08:47 +00:00
Miguel de Icaza 2bfd7fce53 2002-09-16 Miguel de Icaza <[email protected]>
* SocketFlags.cs: Add missing enumeration.

	* UdpClient.cs: Make Dispose private.

svn path=/trunk/mcs/; revision=7523
2002-09-16 19:31:26 +00:00
Miguel de Icaza 1fb1efbead 2002-09-16 Miguel de Icaza <[email protected]>
* Uri.cs: Implemented a few of the protected methods.

svn path=/trunk/mcs/; revision=7522
2002-09-16 19:25:22 +00:00
Miguel de Icaza 52dfba4436 Add newlines
svn path=/trunk/mono/; revision=7521
2002-09-16 18:54:28 +00:00
Miguel de Icaza 392d8a86c0 2002-09-16 Miguel de Icaza <[email protected]>
* statement.cs (Foreach.Resolve): Indexers are just like variables
	or PropertyAccesses.

svn path=/trunk/mcs/; revision=7520
2002-09-16 18:46:48 +00:00
Miguel de Icaza a1af8aab94 Another place where we did not track correctly the line
svn path=/trunk/mcs/; revision=7519
2002-09-16 18:38:07 +00:00
Paolo Molaro d44b07c77a Mon Sep 16 18:57:13 CEST 2002 Paolo Molaro <[email protected]>
* monosn.c, Makefile.am: added strong name utility.
	* reflection.h, reflection.c: implemented delayed signing,
	locale, version and hash id assembly attributes.

svn path=/trunk/mono/; revision=7515
2002-09-16 17:07:44 +00:00
Paolo Molaro ec10d849ad Mon Sep 16 19:02:58 CEST 2002 Paolo Molaro <[email protected]>
* AssemblyBuilder.c: special case some custom attributes.

svn path=/trunk/mcs/; revision=7514
2002-09-16 17:07:27 +00:00
Paolo Molaro 1328a6f481 Mon Sep 16 18:49:55 CEST 2002 Paolo Molaro <[email protected]>
* main.c, get.c, dump.c: updates for changes in libmetadata.

svn path=/trunk/mono/; revision=7513
2002-09-16 16:57:36 +00:00
Paolo Molaro 3df5349721 Mon Sep 16 18:51:47 CEST 2002 Paolo Molaro <[email protected]>
* loader.c, metadata.c: load param attributes in signatures.

svn path=/trunk/mono/; revision=7512
2002-09-16 16:57:21 +00:00
Miguel de Icaza 5d9454bbbd 2002-09-16 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs (consume_string): Track line numbers and columns
	inside quoted strings, we were not doing this before.

svn path=/trunk/mcs/; revision=7510
2002-09-16 15:37:20 +00:00
Martin Baulig aa086e723d Make this compile.
svn path=/trunk/mcs/; revision=7509
2002-09-16 14:57:47 +00:00
Gaurav Vaish 4c4187ac70 2002-09-16 Gaurav Vaish <[email protected]>
* AdRotatorDesigner.cs    : Damn those typo errors.

svn path=/trunk/mcs/; revision=7505
2002-09-16 13:03:27 +00:00
Gaurav Vaish 18bcfe421b 2002-09-16 Gaurav Vaish <[email protected]>
* System.Design.build  : Excludes the System.Web.UI.Design.WebControls namespace

svn path=/trunk/mcs/; revision=7504
2002-09-16 12:58:31 +00:00
Gaurav Vaish 01e83c57f2 2002-09-16 Gaurav Vaish <[email protected]>
* .cvsignore   : Now ignores more files

svn path=/trunk/mcs/; revision=7503
2002-09-16 12:56:49 +00:00
Gaurav Vaish 115a1bc919 2002-09-16 Gaurav Vaish <[email protected]>
* System.Design.build  : Project name is "System.Design"

svn path=/trunk/mcs/; revision=7502
2002-09-16 12:47:59 +00:00
Gaurav Vaish e8824ac3e4 2002-09-16 Gaurav Vaish <[email protected]>
* AdRotatorDesigner.cs    : Completed.

svn path=/trunk/mcs/; revision=7501
2002-09-16 12:46:47 +00:00
Gaurav Vaish ca3c45f076 2002-09-16 Gaurav Vaish <[email protected]>
* System.Design.build : Added the build file

svn path=/trunk/mcs/; revision=7500
2002-09-16 12:44:46 +00:00
Gaurav Vaish f2bce6f4ce 2002-09-16 Gaurav Vaish <[email protected]>
* AdRotatorDesigner.cs    : Initial implementation.
* TODOAttribute.cs        : The TODO-Attribute class.
* TODO                    : Added file
* ChangeLog               : Added file

svn path=/trunk/mcs/; revision=7499
2002-09-16 12:25:16 +00:00
Martin Baulig e3a5c81cda 2002-09-16 Martin Baulig <[email protected]>
* ecore.cs (MethodGroupExpr.DoResolve): If we have an instance expression,
	resolve it.  This is needed for the definite assignment check of the
	instance expression, fixes bug #29846.
	(PropertyExpr.DoResolve, EventExpr.DoResolve): Likewise.

svn path=/trunk/mcs/; revision=7498
2002-09-16 11:55:55 +00:00
Gaurav Vaish 5b96bba155 2002-09-16 Gaurav Vaish <[email protected]>
* System.Web.UI.Design.WebControls : Added directory

svn path=/trunk/mcs/; revision=7497
2002-09-16 11:37:33 +00:00
Martin Baulig 36cbf13e9b 2002-09-16 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Added string table with all method names.

svn path=/trunk/mono/; revision=7495
2002-09-16 11:18:26 +00:00
Martin Baulig 2ef5ab765d 2002-09-16 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Set version number to 20.

svn path=/trunk/mcs/; revision=7494
2002-09-16 11:16:30 +00:00
John Sohn 1d5f157767 * Control.cs:
* ScrollableControl.cs
        * Form.cs: added Win32 implementation to more methods and properties
        * MessageBox.cs: fixed typo
        * makefile: now using pkg-config for including and linking glib

svn path=/trunk/mcs/; revision=7492
2002-09-16 06:09:09 +00:00
Nick Drochak b358c5c6ba 2002-09-16 Nick Drochak <[email protected]>
* MemoryStream.cs (Close): Don't throw an exception if the stream
	is already closed.

svn path=/trunk/mcs/; revision=7491
2002-09-16 04:38:41 +00:00
Nick Drochak 826216fc0a 2002-09-16 Nick Drochak <[email protected]>
* PrivateFontCollection.cs: Fix build error.  Cannot put ComVisible on
	constructors.

svn path=/trunk/mcs/; revision=7490
2002-09-16 04:11:03 +00:00
Nick Drochak 999e715866 2002-09-16 Nick Drochak <[email protected]>
* parameter.cs: Fix compile error.  Cannot reference static member
	from an instance object.  Is this an mcs bug?

svn path=/trunk/mcs/; revision=7489
2002-09-16 04:00:24 +00:00
Johannes Roith eba68d5a04 use correct EventHandlers
svn path=/trunk/mcs/; revision=7488
2002-09-15 22:04:06 +00:00
Johannes Roith a7586e9345 throw NotImplemented Exeption()
svn path=/trunk/mcs/; revision=7487
2002-09-15 21:36:21 +00:00
Johannes Roith 8099daa3f3 add TODOAttribute.cs
svn path=/trunk/mcs/; revision=7486
2002-09-15 21:34:40 +00:00
Johannes Roith 2569eb1b80 small fix.
svn path=/trunk/mcs/; revision=7480
2002-09-15 19:20:46 +00:00
Duncan Mak d1eb94eb67 2002-09-15 Duncan Mak <[email protected]>
* FileSystemWatcher.cs (FileSystemWatcher): Fixed the null-param
	constructor.

svn path=/trunk/mcs/; revision=7479
2002-09-15 18:46:41 +00:00
Andrew Birkett d554416afa 2002-09-15 Andrew Birkett <[email protected]>
* RijndaelManaged.cs: Added support for CBC-mode, PKCS7/Zero padding.
	* SymmetricAlgorithm.cs: IV size must match block size, not key size.
	  Key property now sets KeySizeValue correctly in bits.

svn path=/trunk/mcs/; revision=7477
2002-09-15 17:48:42 +00:00
Johannes Roith 8cfefa5129 initial import
svn path=/trunk/mcs/; revision=7476
2002-09-15 16:17:22 +00:00
Andrew Birkett 9819ad6367 2002-09-15 Andrew Birkett <[email protected]>
* man/mcs.1: --probe is now --expect-error.

svn path=/trunk/mono/; revision=7475
2002-09-15 16:13:31 +00:00
Miguel de Icaza e148821cdd 2002-09-15 Miguel de Icaza <[email protected]>
* FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
	Flush calls fsync().

	The API docs show no explicit mention that Flush() should even do
	an fsync, I am thinking that we should drop that from the
	runtime.

This significantly improves the thumbnail creation in mPhoto

svn path=/trunk/mcs/; revision=7473
2002-09-15 06:28:54 +00:00
Gonzalo Paniagua Javier 3fcb6699a2 2002-09-15 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: line and position begin with 1.

svn path=/trunk/mcs/; revision=7472
2002-09-15 03:43:45 +00:00
Miguel de Icaza d45d3ca5cd Spelling fixes
svn path=/trunk/mono/; revision=7468
2002-09-14 20:32:36 +00:00
Miguel de Icaza ec9cd9342d Update Winforms information
svn path=/trunk/mono/; revision=7467
2002-09-14 20:15:29 +00:00
Martin Baulig f77e88e224 2002-09-14 Martin Baulig <[email protected]>
* decl.cs (MemberCache.SetupCacheForInterface): Don't add an interface
	multiple times.  Fixes bug #30295, added test-166.cs.

svn path=/trunk/mcs/; revision=7464
2002-09-14 16:57:29 +00:00
Martin Baulig 2e6da6116b 2002-09-14 Martin Baulig <[email protected]>
* test-166.cs: New test.

svn path=/trunk/mcs/; revision=7463
2002-09-14 16:53:16 +00:00
Martin Baulig 7ee74a2c67 2002-09-14 Martin Baulig <[email protected]>
* verify-4.cs: Added testcase from bug #29857.

svn path=/trunk/mcs/; revision=7462
2002-09-14 16:08:48 +00:00
Martin Baulig 5f2723750f 2002-09-14 Martin Baulig <[email protected]>
* statement.cs (Block.Emit): Don't emit unreachable code.
	(Switch.SimpleSwitchEmit, Switch.TableSwitchEmit): Check for missing
	`break' statements.
	(Goto.Emit, Continue.Emit): Set ec.Breaks = true.

svn path=/trunk/mcs/; revision=7461
2002-09-14 15:31:44 +00:00
Piers Haken 901e27abde 2002-09-12 Piers Haken <[email protected]>
* XPathNavigatorEvaluateTests.cs: enable string() tests.

svn path=/trunk/mcs/; revision=7460
2002-09-14 14:24:44 +00:00
Piers Haken 096cca20dc 2002-09-14 Piers Haken <[email protected]>
* */makefile.gnu:
		use $(topdir)
		build nunit into $(topdir)/class/lib

svn path=/trunk/mcs/; revision=7459
2002-09-14 14:14:40 +00:00
Piers Haken 94280409f0 2003-09-14 Piers Haken <[email protected]>
* PrivateFontCollection.cs: import interop for ComVisible attribute

svn path=/trunk/mcs/; revision=7458
2002-09-14 14:07:54 +00:00
Martin Baulig ef71ae0b4c 2002-09-14 Martin Baulig <[email protected]>
* parameter.cs (Parameter.Attributes): Make this work if Modifier.ISBYREF
	is set.

svn path=/trunk/mcs/; revision=7457
2002-09-14 13:19:57 +00:00
Martin Baulig e4db77f4fb 2002-09-14 Martin Baulig <[email protected]>
* typemanager.cs (TypeManager.IsNestedChildOf): This must return false
	if `type == parent' since in this case `type.IsSubclassOf (parent)' will
	be false on the ms runtime.

svn path=/trunk/mcs/; revision=7456
2002-09-14 12:02:43 +00:00
Martin Baulig b50d9debff 2002-09-12 Martin Baulig <[email protected]>
* test-40.cs: Removed the syntax errors from this test.

svn path=/trunk/mcs/; revision=7455
2002-09-14 11:47:43 +00:00
Martin Baulig e95210cc26 2002-09-14 Martin Baulig <[email protected]>
* MonoSymbolWriter.cs, IMonoSymbolWriter.cs, MonoSymbolTableWriter.cs:
	Make all classes and interfaces which don't need to be public internal.

svn path=/trunk/mcs/; revision=7454
2002-09-14 11:37:57 +00:00
Martin Baulig 7a50edd0f8 Ooops, make this build.
svn path=/trunk/mcs/; revision=7450
2002-09-14 00:27:48 +00:00
Martin Baulig 73ef4bfacc 2002-09-14 Martin Baulig <[email protected]>
* debug-mono-symfile.h (MonoSymbolFile): Added method range table for
	fast method lookup.

svn path=/trunk/mono/; revision=7449
2002-09-14 00:10:54 +00:00
Martin Baulig 2db249b6c6 2002-09-11 Martin Baulig <[email protected]>
* gc.c: Call GC_unregister_disappearing_link() on all links when
	finalizing them, this is necessary to aviod a crash in boehm's
	finalize handler.

svn path=/trunk/mono/; revision=7448
2002-09-14 00:06:40 +00:00
Martin Baulig f0a3f6ff0c 2002-09-14 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Use only CLS-compliant types here, bumped version
	number to 19.

	* MonoSymbolTableReader.cs: Removed, this is now in the debugger.

svn path=/trunk/mcs/; revision=7447
2002-09-14 00:05:28 +00:00
Rafael Teixeira dc405bc445 ArgumentProcessorAttribute added
svn path=/trunk/mcs/; revision=7445
2002-09-13 23:08:32 +00:00
Rafael Teixeira 432d688ab2 2002-08-31 Rafael Teixeira <[email protected]>
* merged many sources from mcs/mcs, to resync

svn path=/trunk/mcs/; revision=7444
2002-09-13 23:05:34 +00:00
Gonzalo Paniagua Javier 56e0f5c928 Added new stub
svn path=/trunk/mcs/; revision=7443
2002-09-13 21:27:51 +00:00
Gonzalo Paniagua Javier 0bfa6eba80 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
* CodeIdentifiers.cs:
	* XmlSchemaExporter.cs:
	* XmlSchemaImporter.cs:
	* XmlSchemas.cs:
	* XmlSerializationWriteCallback.cs:
	* XmlSerializationWriter.cs:
	* XmlSerializer.cs:
	* XmlSerializerNamespaces.cs: some class status based fixed and
	implemented a couple of methods.

svn path=/trunk/mcs/; revision=7442
2002-09-13 21:15:11 +00:00
Gonzalo Paniagua Javier 8d6c1867c0 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
* Parser.cs: commented out non-existent namespace (it compiles fine
	with mcs because of a bug that is already on bugzilla).

svn path=/trunk/mcs/; revision=7441
2002-09-13 20:41:38 +00:00
Gonzalo Paniagua Javier e3f4037161 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
* XmlException.cs: added a new internal constructor for IXmlLineInfo
	and output line and position info in Message.

	* XmlReader.cs: implemented missing bits.

svn path=/trunk/mcs/; revision=7440
2002-09-13 20:39:10 +00:00
Gonzalo Paniagua Javier e53b062a80 removed Sample.cs
svn path=/trunk/mcs/; revision=7439
2002-09-13 19:30:25 +00:00
Dennis Hayes d5725f2ff1 2002-09-13 Dennis Hayes ([email protected])
* checked in for Everaldo Canuto [email protected]

* FontCollection.cs
* GenericFontFamilies.cs
* HotkeyPrefix.cs
* InstalledFontCollection.cs
* PrivateFontCollection.cs
* TextRenderingHint.cs

svn path=/trunk/mcs/; revision=7438
2002-09-13 17:56:51 +00:00
Dennis Hayes db16975b2c 2002-9-13 Dennis Hayes ([email protected])
* sample.cs
* removed personal template that should not have been checked in

svn path=/trunk/mcs/; revision=7437
2002-09-13 17:49:09 +00:00
Dennis Hayes 276270710a 2002-9-13 DennisHayes <[email protected]>
* PageSettings.cs 
* PaperSize.cs 
* PaperSource.cs 
* PrintControler.cs 
* PrintDocument.cs 
* PrintingPermission.cs 
* PrintPageEventHandler.cs 
* QueryPageSettingEventArgs.cs 
* QueryPageSettingsEventHandler.cs 
* added todos back
* minor bug fixes

svn path=/trunk/mcs/; revision=7436
2002-09-13 17:43:58 +00:00
Dennis Hayes 2176ccd445 2002-9-2 DennisHayes <[email protected]>
* PropertyItem.cs t
* MetaHeader.cs t
* MetafileHeader.cs t
* Metafile.cs t
* ImageFormat.cs t
* ImageCodecInfo.cs t
* ColorMatrix.cs t
* ColorMap.cs t
* WmfPlaceableFileHeader.cs t
* Added todos back

svn path=/trunk/mcs/; revision=7435
2002-09-13 17:39:47 +00:00
Paolo Molaro 708f7135e8 Fri Sep 13 16:04:54 CEST 2002 Paolo Molaro <[email protected]>
* reflection.c: record the public key token of referenced assemblies.

svn path=/trunk/mono/; revision=7434
2002-09-13 14:07:05 +00:00
Paolo Molaro fc844c6c01 Fri Sep 13 15:56:04 CEST 2002 Paolo Molaro <[email protected]>
* mono-digest.h, mono-sha1.c: Added mono_digest_get_public_token()
	to get the public key token from a public key.

svn path=/trunk/mono/; revision=7433
2002-09-13 13:58:22 +00:00
Paolo Molaro a52c79cb41 Fri Sep 13 15:41:40 CEST 2002 Paolo Molaro <[email protected]>
* image.c, image.h: added functions to get the strong name and the
	public key of an assembly.
	* pedump.c: use them.

svn path=/trunk/mono/; revision=7432
2002-09-13 13:44:25 +00:00
Paolo Molaro 5a58a1b09c Fri Sep 13 15:39:41 CEST 2002 Paolo Molaro <[email protected]>
* main.c: dump public key.
	* get.c, util.h, util.c: prettyfy data dumps.

svn path=/trunk/mono/; revision=7431
2002-09-13 13:42:07 +00:00
Miguel de Icaza 32bd01ec10 Flush
svn path=/trunk/mcs/; revision=7429
2002-09-13 03:49:36 +00:00
Piers Haken b407458d97 2002-09-12 Piers Haken <[email protected]>
* XPathNavigatorEvaluateTests.cs: enable string() tests.

svn path=/trunk/mcs/; revision=7428
2002-09-13 03:32:21 +00:00
Piers Haken 474fe75047 2002-09-12 Piers Haken <[email protected]>
* Tokenizer.cs: fix parsing numbers that start with '.'
	* DefaultContext.cs: use MS-compatible formatting of doubles

svn path=/trunk/mcs/; revision=7427
2002-09-13 03:17:22 +00:00
Piers Haken a49dae415f 2002-09-12 Piers Haken <[email protected]>
* XPathNavigatorEvaluateTests.cs: enable last() & count() tests.

svn path=/trunk/mcs/; revision=7426
2002-09-13 02:40:26 +00:00
Piers Haken 0d3a9e6aaf 2002-09-12 Piers Haken <[email protected]>
* Iterator.cs: added NullIterator to handle unspecified contexts
	* XPathNavigator.cs: use NullIterator insted of SelfIterator when context is unspecified.
	* XPathNodeIterator.cs: change default _count to -1 to prevent recalculations for NullIterators

svn path=/trunk/mcs/; revision=7424
2002-09-13 02:35:47 +00:00
Piers Haken 234ede86c6 2002-09-12 Piers Haken <[email protected]>
* XmlDocumentNavigator.cs: implement MoveToId()

svn path=/trunk/mcs/; revision=7423
2002-09-13 02:15:40 +00:00
Piers Haken 643a34dd9a 2002-09-12 Piers Haken <[email protected]>
* Expression.cs, Parser.jay: allow ExprSLASH to take a generic expression as its left argument.
	* Iterator.cs: fix SlashIterator.Clone() when _iterRight is null.
	* DefaultContext.cs: fix id() return type.

svn path=/trunk/mcs/; revision=7422
2002-09-13 02:13:11 +00:00
Adam Treat 62f60f8731 * The System.dll Master.xml file. For use with MonoDoc.
svn path=/trunk/mcs/; revision=7421
2002-09-13 02:04:20 +00:00
Adam Treat 1b0029d99e * The mscorlib Master.xml file. This will be used by the MonoDoc GUI
svn path=/trunk/mcs/; revision=7420
2002-09-13 02:02:11 +00:00
Gonzalo Paniagua Javier f03736cdec 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
* ColorConverter.cs: readded MonoTODOs and implemented a couple of
	methods.

svn path=/trunk/mcs/; revision=7419
2002-09-12 23:27:52 +00:00
Martin Baulig 2ff1173034 2002-09-13 Martin Baulig <[email protected]>
* ecore.cs (SimpleName.SimpleNameResolve): Include the member name in
	the CS0038 error message.

svn path=/trunk/mcs/; revision=7418
2002-09-12 23:19:26 +00:00
Martin Baulig 59dc9ab7df 2002-09-12 Martin Baulig <[email protected]>
* cfold.cs (ConstantFold.DoConstantNumericPromotions): Check whether an
	implicit conversion can be done between enum types.

	* enum.cs (Enum.LookupEnumValue): If the value is an EnumConstant,
	check whether an implicit conversion to the current enum's UnderlyingType
	exists and report an error if not.

	* codegen.cs (CodeGen.Init): Delete the symbol file when compiling
	without debugging support.

	* delegate.cs (Delegate.CloseDelegate): Removed, use CloseType instead.
	Fixes bug #30235.  Thanks to Ricardo Fern�ndez Pascual.

svn path=/trunk/mcs/; revision=7417
2002-09-12 22:58:01 +00:00
Gonzalo Paniagua Javier 17813fc84d 2002-09-12 Gonzalo Paniagua Javier <[email protected]>
* Char.cs: implemented ToString (char)
	* IntegerFormatter.cs: made it internal.

svn path=/trunk/mcs/; revision=7416
2002-09-12 22:52:36 +00:00
Gonzalo Paniagua Javier cc1d059ed0 2002-09-13 Gonzalo Paniagua Javier <[email protected]>
* list.unix: added new files.
	* System.Drawing.Imaging/MetafileType.cs: implemented missing enum.

svn path=/trunk/mcs/; revision=7415
2002-09-12 22:47:25 +00:00
Miguel de Icaza 6d7b54637f Removed strange character
svn path=/trunk/mcs/; revision=7414
2002-09-12 21:40:14 +00:00
Miguel de Icaza a9de18eec9 2002-09-12 Miguel de Icaza <[email protected]>
* expression.cs (CheckedExpr, UnCheckedExpr): If we have a
	constant inside, return it.

svn path=/trunk/mcs/; revision=7413
2002-09-12 21:39:43 +00:00
Dennis Hayes cda70e3aea 2002-9-2 DennisHayes <[email protected]>
* Duplex.cs
	* InvalidPrinterExecption.cs
	* Margins.cs
	* MarginsConverter.cs
	* PageSettings.cs
	* PaperKind.cs
	* PaperSize.cs
	* PaperSource.cs
	* PaperSourceCollection.cs
	* PaperSourceKind.cs
	* PaperUnitConvert.cs
	* PreviewPageInfo.cs
	* PreviewPrintControler.cs
	* PrintControler.cs
	* PrintDocument.cs
	* PrinterResolution.cs
	* PrinterResolutionKind.cs
	* PrinterSettings.cs
	* PrinterUnit.cs
	* PrintEventArgs.cs
	* PrintEventHandler.cs
	* PrintingPermission.cs
	* PrintingPermissionAttribute.cs
	* PrintingPermissionLevel.cs
	* PrintPageEventArgs.cs
	* PrintPageEventHandler.cs
	* PrintRange.cs
	* QueryPageSettingEventArgs.cs
	* QueryPageSettingsEventHandler.cs
	* StandardPrintController.cs
	* Added null classes for most/all classes, Many stubs, and some implmentation

svn path=/trunk/mcs/; revision=7410
2002-09-12 18:47:50 +00:00
Dennis Hayes e2ec2cde28 2002-9-2 DennisHayes <[email protected]>
* AdjustableArrowCap.cs
	* Blend.cs
	* ColorBlend.cs
	* CombineMode.cs
	* CompostingMode.cs
	* CompostingQuality.cs
	* CoordinateSpace.cs
	* CustomLineCap.cs
	* DashCap.cs
	* DashStyle.cs
	* FillMode.cs
	* FlushIntention.cs
	* GraphicsContainer.cs
	* GraphicsPathIterator.cs
	* GraphicsState.cs
	* HatchBrush.cs
	* HatchStyle.cs
	* InterpolationMode.cs
	* LinearGradientBrush.cs
	* LinearGradientMode.cs
	* LineCap.cs
	* LineJoin.cs
	* MatrixOrder.cs
	* PathData.cs
	* PathGradientBrush.cs
	* PathPointType.cs
	* PenAligment.cs
	* PenType.cs
	* PixelOffsetMode.cs
	* QualityMode.cs
	* RegionData.cs
	* SmoothingMode.cs
	* WarpMode.cs
	* WrapMode.cs
	* Added null classes for most/all classes, Many stubs, and some implmentation

svn path=/trunk/mcs/; revision=7409
2002-09-12 18:41:33 +00:00
Dennis Hayes 057909bc36 2002-9-2 DennisHayes <[email protected]>
* FontConverter.cs
	* FontFamily.cs
	* Icon.cs
	* IconConverter.cs
	* ImageAnimator.cs
	* ImageConverter.cs
	* ImageFormatConverter.cs
	* PointConverter.cs
	* RectangleConverter.cs
	* Sample.cs
	* SizeConverter.cs
	* SolidBrush.cs
	* StringFormat.cs
	* SystemBrushes.cs
	* SystemIcons.cs
	* SystemPens.cs
	* TextureBrush.cs
	* ToolboxBitmapAttribute.cs
	* Added null classes for most/all classes, Many stubs, and some implmentation

svn path=/trunk/mcs/; revision=7408
2002-09-12 18:35:49 +00:00
Dick Porter 93aff8c4da 2002-09-12 Dick Porter <[email protected]>
* unix.args: Add System.Globalization.SortKey,
	System.Globalization.StringInfo and
	System.Globalizaton.TextElementEnumerator

2002-09-12  Dick Porter  <[email protected]>

	* ThaiBuddhistCalendar.cs:
	* TextInfo.cs:
	* TaiwanCalendar.cs:
	* RegionInfo.cs:
	* KoreanCalendar.cs:
	* JulianCalendar.cs:
	* JapaneseCalendar.cs:
	* HijriCalendar.cs:
	* HebrewCalendar.cs:
	* GregorianCalendar.cs:
	* CultureInfo.cs:
	* CompareInfo.cs: Stub out missing methods

svn path=/trunk/mcs/; revision=7407
2002-09-12 18:34:38 +00:00
Dennis Hayes 5f79974ab1 2002-9-2 DennisHayes <[email protected]>
* checked in for Everaldo Canuto (everaldo.canuto@bol,com.br)
	* BitmapData.cs
	* ColorAdjustType.cs
	* ColorChannelFlag.cs
	* ColorMap.cs
	* ColorMapType.cs
	* ColorMatrix.cs
	* ColorMatrixFlag.cs
	* ColorMode.cs
	* EmfPlusRecordType.cs
	* EmfType.cs
	* EncoderParameterValueType.cs
	* EncoderValue.cs
	* ImageCodecFlags.cs
	* ImageCodecInfo.cs
	* ImageFlags.cs
	* ImageFormat.cs
	* ImageLockMode.cs
	* MetafileFrameUnit.cs
	* MetafileHeader.cs
	* MetaHeader.cs
	* PaletteFlags.cs
	* PixelFormat.cs
	* PlayRecordCallback.cs
	* PropertyItem.cs
	* WmfPlaceableFileHeader.cs
	* Added null classes for most/all classes, Many stubs, and some implmentation

svn path=/trunk/mcs/; revision=7406
2002-09-12 18:30:13 +00:00
Dennis Hayes 0f54d4b16f 2002-9-2 DennisHayes <[email protected]>
* ColorPalette.cs
* FrameDimension.cs
* Metafile.cs
* Added stubs, implmentation

svn path=/trunk/mcs/; revision=7405
2002-09-12 18:24:39 +00:00
Dennis Hayes 83b8fc6048 2002-9-2 DennisHayes <[email protected]>
* Matrix.cs
	* Added stubs, implmentation

svn path=/trunk/mcs/; revision=7404
2002-09-12 18:20:57 +00:00
Dennis Hayes cc40965131 2002-9-2 DennisHayes <[email protected]>
* Bitmap.cs
* Color.cs
* ColorConverter.cs
* Image.cs
* Pen.cs
* Added stubs, implmentation

svn path=/trunk/mcs/; revision=7403
2002-09-12 18:17:15 +00:00
Johannes Roith f973f337e3 add mono setup
svn path=/trunk/mono/; revision=7402
2002-09-12 17:01:44 +00:00
Nick Drochak cf42c5be87 2002-09-13 Nick Drochak <[email protected]>
* EnumTest.cs: Add an extreme value test for format.

svn path=/trunk/mcs/; revision=7400
2002-09-12 16:20:08 +00:00
Nick Drochak afdd7b1d16 2002-09-13 Nick Drochak <[email protected]>
* Enum.cs (Format): handle the "d" format for both signed and unsigned
	underlying types.

svn path=/trunk/mcs/; revision=7399
2002-09-12 16:19:11 +00:00
Martin Baulig 0239aa7828 2002-09-12 Martin Baulig <[email protected]>
* typemanager.cs (TypeManager.IsNestedChildOf): New method.

	* ecore.cs (IMemberExpr.DeclaringType): New property.
	(SimpleName.SimpleNameResolve): Check whether we're accessing a
	nonstatic member of an outer type (CS0038).

svn path=/trunk/mcs/; revision=7398
2002-09-12 16:13:21 +00:00
Martin Baulig d01a931d9f 2002-09-12 Martin Baulig <[email protected]>
* cs0038.cs: New test.

svn path=/trunk/mcs/; revision=7397
2002-09-12 15:45:40 +00:00
Dick Porter 5f1b4c67f5 2002-09-12 Dick Porter <[email protected]>
* unix.args: Add System.ArgIterator and System.TypedReference

	* corlib.build: Adding DecimalConstantAttribute to Decimal (which
	corcompare showed as missing) causes a SecurityException in
	corcompare, so exclude Decimal from the corlib_cmp build.

2002-09-12  Dick Porter  <[email protected]>

	* UIntPtr.cs: Remove the [StructLayout(LayoutKind.Auto)]
	attribute, as there doesn't appear to be any struct
	layout-depending code here (and corcompare says it should be
	LayoutKind.Sequential)

	* Decimal.cs: Stub out missing methods, add
	[DecimalConstantAttribute] to the constant fields (as shown by
	corcompare).

	* LocalDataStoreSlot.cs:
	* Environment.cs:
	* Char.cs:
	* Array.cs: Stub out missing methods.

	* TypedReference.cs:
	* ArgIterator.cs: Stub out

	* AppDomainSetup.cs:
	* AppDomain.cs: Stub out missing methods, add missing
	ClassInterface(ClassInterfaceType.None) attribute.

2002-09-12  Dick Porter  <[email protected]>

	* TypeBuilder.cs: Say _which_ Type has already been created

svn path=/trunk/mcs/; revision=7395
2002-09-12 15:38:21 +00:00
Gonzalo Paniagua Javier fdcb013b16 2002-09-12 Gonzalo Paniagua Javier <[email protected]>
* list: added 2 new files.
	* System.Web.UI.WebControls/DataGrid.cs: fixed compilation

svn path=/trunk/mcs/; revision=7391
2002-09-12 13:07:39 +00:00
Gaurav Vaish 021c2720cf 2002-09-12 Gaurav Vaish <[email protected]>
* PagedDataSource.cs   - FirstIndexInPage : Fixed bug.
* DataGrid.cs          - CreateControlHierarchy(bool)
                            : working towards completion.
    	                       - ResolveDataSource(object, string)
       	                            : stubbed new method
    	                       - CreateItem(....)
       	                            : stubbed new method
    	                Well. It's almost done.
* DataGridTableInternal.cs
                       - Added new internal class.

svn path=/trunk/mcs/; revision=7390
2002-09-12 12:38:36 +00:00
Dietmar Maurer ba88a15e12 array code cleanup
svn path=/trunk/mono/; revision=7389
2002-09-12 12:27:46 +00:00
Dietmar Maurer a03ff8d5ba 2002-09-12 Dietmar Maurer <[email protected]>
* exception.c: added patch from Julio Merno to fix bug #30048

svn path=/trunk/mono/; revision=7384
2002-09-12 10:58:56 +00:00
Dietmar Maurer 4301d72d8c 2002-09-12 Dietmar Maurer <[email protected]>
* marshal.c (emit_str_to_ptr_conv): support marshalling of delegates.

svn path=/trunk/mono/; revision=7383
2002-09-12 10:50:09 +00:00
Dietmar Maurer 03317f7a4c fix for bug 29365
svn path=/trunk/mono/; revision=7382
2002-09-12 08:48:57 +00:00
Andrew Birkett 77f0cd8d73 2002-09-11 Andrew Birkett <[email protected]>
* RijndaelManaged.cs: Implemented ECB-mode Rijndael cipher.
	* Rijndael.cs: Set valid key/block sizes.
	* SymmetricAlgorithm.cs: Remove throw from ctr so we can instantiate
	  derived classes.  Fixes to key sizes so they are measured in bits.
	* KeySizes.cs: Updated comments to emphasize that sizes are in bits.

svn path=/trunk/mcs/; revision=7381
2002-09-12 08:15:30 +00:00
Kral Ferch c57901837e more xpath core function tests.
svn path=/trunk/mcs/; revision=7379
2002-09-12 05:16:17 +00:00
Miguel de Icaza 2cb13bd9a8 2002-09-12 Miguel de Icaza <[email protected]>
* marshal.c (mono_marshal_get_managed_wrapper): Added
	MONO_TYPE_BOOLEAN

svn path=/trunk/mono/; revision=7378
2002-09-12 04:39:32 +00:00
Miguel de Icaza b44bec6c3f 2002-09-11 Miguel de Icaza <[email protected]>
* driver.cs: Activate the using-error detector at warning level
	4 (at least for MS-compatible APIs).

	* namespace.cs (VerifyUsing): Small buglett fix.

svn path=/trunk/mcs/; revision=7377
2002-09-12 03:10:18 +00:00
Miguel de Icaza 7837ad922c 2002-09-11 Miguel de Icaza <[email protected]>
* ModuleBuilder.cs (GetTypes): Implement.

svn path=/trunk/mcs/; revision=7376
2002-09-12 02:53:48 +00:00
Miguel de Icaza c594caf965 2002-09-11 Miguel de Icaza <[email protected]>
* pending.cs (PendingImplementation): pass the container pointer.

	* interface.cs (GetMethods): Allow for recursive definition.  Long
	term, I would like to move every type to support recursive
	definitions, not the current ordering mechanism that we have right
	now.

	The situation is this: Attributes are handled before interfaces,
	so we can apply attributes to interfaces.  But some attributes
	implement interfaces, we will now handle the simple cases
	(recursive definitions will just get an error).

svn path=/trunk/mcs/; revision=7375
2002-09-12 02:11:42 +00:00
Kral Ferch 85cf5e87a3 Some tests for XPathNavigator.Evaluate()
svn path=/trunk/mcs/; revision=7372
2002-09-12 01:12:50 +00:00
Gonzalo Paniagua Javier ef94f0465d 2002-09-11 Gonzalo Paniagua Javier <[email protected]>
* CodeDomProvider.cs:
	* IndentedTextWriter.cs: misc. fixes.

svn path=/trunk/mcs/; revision=7370
2002-09-11 23:40:37 +00:00
Gonzalo Paniagua Javier fe249c988a 2002-09-11 Gonzalo Paniagua Javier <[email protected]>
* CodeBinaryOperatorType.cs:
	* CodeMemberEvent.cs:
	* CodeParameterDeclarationExpression.cs:
	* CodeTypeMember.cs:
	* CodeTypeReference.cs:
	* CodeTypeReferenceCollection.cs: misc. fixes

svn path=/trunk/mcs/; revision=7369
2002-09-11 23:40:11 +00:00
Miguel de Icaza b62468c7ec 2002-09-11 Miguel de Icaza <[email protected]>
* parameter.cs: Only invalidate types at the end if we fail to
	lookup all types.

svn path=/trunk/mcs/; revision=7368
2002-09-11 19:14:00 +00:00
Martin Baulig 2b48d1c45b 2002-09-11 Martin Baulig <[email protected]>
* gc.c: Call GC_unregister_disappearing_link() on all links when
	finalizing them, this is necessary to aviod a crash in boehm's
	finalize handler.

svn path=/trunk/mono/; revision=7367
2002-09-11 18:43:56 +00:00
Gonzalo Paniagua Javier cbe5c9f1d7 oops
svn path=/trunk/mcs/; revision=7365
2002-09-11 15:54:56 +00:00
Gonzalo Paniagua Javier 9848badf22 2002-09-11 Gonzalo Paniagua Javier <[email protected]>
* list: added new files.
	* System.Web.Compilation/AspElements.cs: added WebService directive.
	* System.Web.Compilation/WebServiceCompiler.cs: New file.
	* System.Web.UI/SimpleWebHandlerParser.cs: New file.
	* System.Web.UI/WebServiceParser.cs: New file.

svn path=/trunk/mcs/; revision=7364
2002-09-11 15:53:53 +00:00
Paolo Molaro 29b37ee691 Wed Sep 11 17:06:49 CEST 2002 Paolo Molaro <[email protected]>
* gc.c: handle GetTarget for finalized objects spotted and fixed by
	[email protected].

svn path=/trunk/mono/; revision=7363
2002-09-11 15:11:24 +00:00
Nick Drochak c991b0d27d 2002-09-12 Nick Drochak <[email protected]>
* Double.cs (ToString): Throw exception when "X" format is passed in.

svn path=/trunk/mcs/; revision=7362
2002-09-11 15:10:32 +00:00
Dick Porter c77d9a071f 2002-09-11 Dick Porter <[email protected]>
* Mutex.cs:
	* ManualResetEvent.cs:
	* AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
	the private field

	* WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
	method

svn path=/trunk/mcs/; revision=7361
2002-09-11 15:01:31 +00:00
Nick Drochak 0160dcc880 2002-09-11 Nick Drochak <[email protected]>
* DoubleTest.cs: Add test for bad format string passed to ToString().
	* Int64Test.cs: Re-enable broad range of test values.
	* MulticastDeletegateTest.cs: Re-enable test for correct order of
	delegate firing.

svn path=/trunk/mcs/; revision=7360
2002-09-11 14:49:30 +00:00
Paolo Molaro b88507b22a Wed Sep 11 15:26:34 CEST 2002 Paolo Molaro <[email protected]>
* MonoType.cs: implemented Module property.

svn path=/trunk/mcs/; revision=7359
2002-09-11 13:30:46 +00:00
Paolo Molaro 101bcbc576 Wed Sep 11 15:27:20 CEST 2002 Paolo Molaro <[email protected]>
* icall.c: implemented MonoType::Module.
	* reflection.c, reflection.h: mono_module_get_object () from
	Tomi Pakarinen <[email protected]>.

svn path=/trunk/mono/; revision=7358
2002-09-11 13:30:05 +00:00
Paolo Molaro 1bc7a5c672 Compilation fix.
svn path=/trunk/mcs/; revision=7357
2002-09-11 11:11:27 +00:00
Paolo Molaro affee047b3 Wed Sep 11 12:53:28 CEST 2002 Paolo Molaro <[email protected]>
* icall.c: ignore overridden methods in GetMethods ().
	Fix for FieldInfo::SetValue().
	* object.c: handle float/double in runtime invoke.

svn path=/trunk/mono/; revision=7356
2002-09-11 10:57:39 +00:00
Paolo Molaro cf3b279815 Wed Sep 11 12:49:51 CEST 2002 Paolo Molaro <[email protected]>
* MonoType.cs, Type.cs: implemented InvokeMember.


Wed Sep 11 12:50:54 CEST 2002 Paolo Molaro <[email protected]>

	* Binder.cs: more default binder implementation.
	* FieldInfo.cs, MonoField.cs: fixed SetValue () implementation.
	* MonoMethod.cs: use the binder in the Invoke () implementation.
	Implemented custom attributes methods and ToString for constructors.

svn path=/trunk/mcs/; revision=7355
2002-09-11 10:57:34 +00:00
Paolo Molaro 38435c8147 Wed Sep 11 11:06:43 CEST 2002 Paolo Molaro <[email protected]>
* Delegate.cs: check the type passed to CreateDelegate is a Delegate
	type. Check the method signature matches.

svn path=/trunk/mcs/; revision=7353
2002-09-11 09:08:58 +00:00
Gonzalo Paniagua Javier 4c015b6312 2002-09-10 Gonzalo Paniagua Javier <[email protected]>
* FileTest.cs: don't leave AFile.txt open.

svn path=/trunk/mcs/; revision=7352
2002-09-10 14:00:43 +00:00
Paolo Molaro 5cff2490a6 Runtime invoke tests.
svn path=/trunk/mono/; revision=7351
2002-09-10 13:57:49 +00:00
Paolo Molaro ff0eb523ec Tue Sep 10 15:51:53 CEST 2002 Paolo Molaro <[email protected]>
* object.c: allow a constructor to be called again on an object.

svn path=/trunk/mono/; revision=7350
2002-09-10 13:53:48 +00:00
Paolo Molaro 02133437a9 Tue Sep 10 12:12:51 CEST 2002 Paolo Molaro <[email protected]>
* ConstructorBuilder.cs: added a field to hold the handle.

svn path=/trunk/mcs/; revision=7349
2002-09-10 10:18:18 +00:00
Paolo Molaro a1bf6e0ea7 Tue Sep 10 11:58:46 CEST 2002 Paolo Molaro <[email protected]>
* class.h, class.c: move field layout code to it's own function and
	export it. Get an interface id earlier. Move fields in MonoClass
	so they are more cache friendly and align the bitfields.
	* loader.c: temporary handle get_param_names() for a runtime method.
	* reflection.c, reflection.h: more code to handle runtime creation of
	types.

svn path=/trunk/mono/; revision=7348
2002-09-10 10:18:18 +00:00
Gonzalo Paniagua Javier 41681b5c8d 2002-09-09 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs:
	* HttpWebResponse.cs: applied another patch from Shahms E. King
	([email protected]).

svn path=/trunk/mcs/; revision=7346
2002-09-09 23:15:01 +00:00
Miguel de Icaza 5ac4160881 2002-09-09 Miguel de Icaza <[email protected]>
* StreamWriter.cs: When no encoding is provided, create an
	encoding without markers, this is what MS does.

svn path=/trunk/mcs/; revision=7344
2002-09-09 21:50:52 +00:00
Miguel de Icaza 51853f78b0 Update errors
svn path=/trunk/mcs/; revision=7343
2002-09-09 21:46:41 +00:00
Martin Baulig b86562e6d7 Oooops.
svn path=/trunk/mcs/; revision=7342
2002-09-09 21:42:46 +00:00
Martin Baulig 5d84732a2a 2002-09-09 Martin Baulig <[email protected]>
* ecore.cs (PropertyExpr.Emit): Also check for
	TypeManager.system_int_array_get_length so this'll also work when
	compiling corlib.  Fixes #30003.

svn path=/trunk/mcs/; revision=7339
2002-09-09 20:01:37 +00:00
Martin Baulig d2960a4b02 2002-09-09 Martin Baulig <[email protected]>
* expression.cs (ArrayCreation.MakeByteBlob): Added support for enums
	and throw an exception if we can't get the type's size.  Fixed #30040,
	added test-165.cs.

svn path=/trunk/mcs/; revision=7338
2002-09-09 19:13:14 +00:00
Martin Baulig b736b03814 2002-09-09 Martin Baulig <[email protected]>
* makefile: Reverted Ravi's `Update'.  When moving tests from
	TESTS_NOPASS to TEST_SOURCES, please make sure that they actually
	pass on both platforms and don't do it without a ChangeLog entry.

svn path=/trunk/mcs/; revision=7337
2002-09-09 19:11:19 +00:00
Martin Baulig 8c35777cb0 Added my two new tests.
svn path=/trunk/mcs/; revision=7336
2002-09-09 19:09:21 +00:00
Martin Baulig fe00426683 2002-09-09 Martin Baulig <[email protected]>
* test-165.cs: Added testcase for bug #30040.

svn path=/trunk/mcs/; revision=7335
2002-09-09 19:05:53 +00:00
Martin Baulig 28f233ce52 2002-09-09 Martin Baulig <[email protected]>
* ecore.cs (PropertyExpr.DoResolve): Added check for static properies.

svn path=/trunk/mcs/; revision=7333
2002-09-09 18:33:01 +00:00
Paolo Molaro d893e4d96c Mon Sep 9 17:31:12 CEST 2002 Paolo Molaro <[email protected]>
* TypeBuilder.cs: prepare for the real CreateType implementation.

svn path=/trunk/mcs/; revision=7331
2002-09-09 15:57:14 +00:00
Dick Porter 356f13e5b5 2002-09-09 Dick Porter <[email protected]>
* acconfig.h:
	* configure.in: Simplify thread checks, by using canned rules for
	particular systems (based on the sleepycat db configure.in).
	Tested on linux/x86, freebsd and w32.  Solaris also added, but I
	don't have a solaris machine to try it on.

svn path=/trunk/mono/; revision=7330
2002-09-09 15:39:28 +00:00
Martin Baulig 08e8e1f3ad 2002-09-09 Martin Baulig <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): We need to use a special
	signature with the pinvoke field being set for the actual call.

svn path=/trunk/mono/; revision=7329
2002-09-09 14:45:17 +00:00
Dick Porter 4b4e6c118a Point at updated gimp-for-w32 files
svn path=/trunk/mono/; revision=7328
2002-09-09 12:08:58 +00:00
Martin Baulig b2f4a1cccb 2002-09-09 Martin Baulig <[email protected]>
* expression.cs (SizeOf.DoResolve): Sizeof is only allowed in unsafe
	context.  Fixes bug #30027.

	* delegate.cs (NewDelegate.Emit): Use OpCodes.Ldvirtftn for
	virtual functions.  Fixes bug #30043, added test-164.cs.

svn path=/trunk/mcs/; revision=7326
2002-09-09 09:41:54 +00:00
Dietmar Maurer 27dd4bbea0 2002-09-09 Dietmar Maurer <[email protected]>
* x86.brg (LDELEMA): use x86_lea

svn path=/trunk/mono/; revision=7325
2002-09-09 09:26:57 +00:00
Martin Baulig 9a4b3f5e01 2002-09-09 Martin Baulig <[email protected]>
* test-164.cs: Added testcase for virtual functions in delegate
	creating expressions (Bug #30043).

svn path=/trunk/mcs/; revision=7324
2002-09-09 09:11:46 +00:00
Ravi Pratap M ae14ed5b48 2002-09-08 Ravi Pratap <[email protected]>
* attribute.cs : Fix a small NullRef crash thanks to my stupidity.

svn path=/trunk/mcs/; revision=7323
2002-09-08 18:52:52 +00:00
Nick Drochak 4936a9cfdd 2002-09-08 Nick Drochak <[email protected]>
* DateTimeTest.cs: Disable test bug file it in bugzilla.

svn path=/trunk/mcs/; revision=7322
2002-09-08 14:21:55 +00:00
Martin Baulig 56837e12e2 So why the hell did someone commit this non-printable character ?
svn path=/trunk/mcs/; revision=7321
2002-09-08 13:58:37 +00:00
Nick Drochak 8b737a2b3b 2002-09-08 Nick Drochak <[email protected]>
* PathTest.cs (TestCombine): XP puts it's system root in WINDOWS not
	WINNT.

svn path=/trunk/mcs/; revision=7320
2002-09-08 13:31:55 +00:00
Martin Baulig 54b164923f Hardcode sizeof (long) to 8 bytes to make it compile without /unsafe.
The runtime uses a guint64 type for this, so this'll always be 8 bytes.

svn path=/trunk/mcs/; revision=7319
2002-09-08 13:06:31 +00:00
Nick Drochak 5c254cb310 2002-09-08 Nick Drochak <[email protected]>
* driver.cs: Use an object to get the windows codepage since it's not a
	static property.

svn path=/trunk/mcs/; revision=7317
2002-09-08 12:42:23 +00:00
Miguel de Icaza 4a25a54d0d 2002-09-08 Miguel de Icaza <[email protected]>
* statement.cs (For.Emit): for infinite loops (test == null)
	return whether there is a break inside, not always "true".

svn path=/trunk/mcs/; revision=7315
2002-09-08 05:50:52 +00:00
Miguel de Icaza 40ea2dfb2d 2002-09-08 Miguel de Icaza <[email protected]>
* namespace.cs (UsingEntry): New struct to hold the name of the
	using definition, the location where it is defined, and whether it
	has been used in a successful type lookup.

	* rootcontext.cs (NamespaceLookup): Use UsingEntries instead of
	strings.

	* decl.cs: ditto.

svn path=/trunk/mcs/; revision=7314
2002-09-08 05:45:11 +00:00
Ravi Pratap M c4db22ae77 Update the cs0182 test to actually contain the error message too :-)
svn path=/trunk/mcs/; revision=7313
2002-09-08 05:06:36 +00:00
Ravi Pratap M 12ae4f82e7 2002-09-06 Ravi Pratap <[email protected]>
* attribute.cs : Fix incorrect code which relied on catching
	a NullReferenceException to detect a null being passed in
	where an object was expected.

svn path=/trunk/mcs/; revision=7312
2002-09-08 04:49:30 +00:00
Paolo Molaro 5011ad5bf8 Dum de dum, pass the value...
svn path=/trunk/mcs/; revision=7303
2002-09-07 09:13:42 +00:00
Paolo Molaro 8721448885 Sat Sep 7 10:16:52 CEST 2002 Paolo Molaro <[email protected]>
* RuntimeMethodHandle.cs: implemented GetFunctionPointer().

svn path=/trunk/mcs/; revision=7302
2002-09-07 08:18:55 +00:00
Paolo Molaro acb3179a1c Sat Sep 7 10:12:19 CEST 2002 Paolo Molaro <[email protected]>
* icall.c: removed some unused icalls. Start of map of glib charsets
	to corlib names. Implemented RuntimeMethod::GetFunctionPointer ().

svn path=/trunk/mono/; revision=7301
2002-09-07 08:17:03 +00:00
Miguel de Icaza 079a95a1e6 Distinguish general from specific correctly from my previous patch
svn path=/trunk/mcs/; revision=7300
2002-09-07 01:19:22 +00:00
Franklin Wise 5fda660239 Implemented GetHashCode for constraint classes. Added tests and continued
work on DataColumn

svn path=/trunk/mcs/; revision=7299
2002-09-07 01:09:22 +00:00
Miguel de Icaza c816fb79c4 2002-09-06 Miguel de Icaza <[email protected]>
* expression.cs (Cast): Simplified by using ResolveType instead of
	manually resolving.

	* statement.cs (Catch): Fix bug by using ResolveType.

svn path=/trunk/mcs/; revision=7298
2002-09-07 00:49:26 +00:00
Miguel de Icaza b5d4c0ea0b Document /codepage
svn path=/trunk/mono/; revision=7297
2002-09-07 00:17:40 +00:00
Miguel de Icaza a17af36749 2002-09-06 Miguel de Icaza <[email protected]>
* driver.cs: (CSCParseOption): Support the /codepage: option.

	Make default code page Latin-1

svn path=/trunk/mcs/; revision=7296
2002-09-07 00:17:26 +00:00
Miguel de Icaza 2eefff50b3 2002-09-06 Miguel de Icaza <[email protected]>
* Console.cs: Specify an encoder, otherwise we will get the UTF8
	encoder that by default emits the byte markers.

2002-09-06  Miguel de Icaza  <[email protected]>

	* StreamReader.cs: Implement detection of byte marks and skipping
	of byte marks at the beginning of the stream.

	(ReadToEnd): Use buffered read instead of char-by-char
	processing.

	Correct the default arguments for creating the StreamReader.

2002-09-06  Miguel de Icaza  <[email protected]>

	* Encoding.cs (UTF8, Unicode): Create with a preamble, that is
	what the Microsoft version does.

	(UnixConsoleEncoding): New internal method, used to get the
	encoding, in the future, this should pull the locale, map to
	charset and then code page.

svn path=/trunk/mcs/; revision=7295
2002-09-06 23:57:02 +00:00
Kral Ferch 8e511e9e31 Added XPathNavigatorMatchesTests.cs to the MonoMicro.Test project
svn path=/trunk/mcs/; revision=7294
2002-09-06 22:46:38 +00:00
Martin Baulig 54ac5974b2 2002-09-06 Martin Baulig <[email protected]>
* debug.c (debug_update_il_offsets): Fixed a memory corruption bug.
	If you were getting random crashes when using the JIT with debugging
	turned on, this fixes it.

svn path=/trunk/mono/; revision=7291
2002-09-06 20:21:50 +00:00
Ravi Pratap M a8dcc7f06d 2002-09-06 Ravi Pratap <[email protected]>
* expression.cs (BetterConversion): Special case for when we have
	a NullLiteral as the argument and we have to choose between string
	and object types - we choose string the way csc does.

	* attribute.cs (Attribute.Resolve): Catch the
	NullReferenceException and report error #182 since the Mono
	runtime no more has the bug and having this exception raised means
	we tried to select a constructor which takes an object and is
	passed a null.

svn path=/trunk/mcs/; revision=7290
2002-09-06 19:51:35 +00:00
Ravi Pratap M ae841349e3 More tests pass so move them to the regular test suite
svn path=/trunk/mcs/; revision=7289
2002-09-06 19:51:09 +00:00
Ravi Pratap M 9ed5c36cd3 Add new error that we catch
svn path=/trunk/mcs/; revision=7288
2002-09-06 19:46:58 +00:00
Ravi Pratap M 0441b0183a 2002-09-06 Ravi Pratap <[email protected]>
* test-163.cs : Add test to check we select string
	over object when we have a Null literal as the argument.

	* makefile : Update.

svn path=/trunk/mcs/; revision=7287
2002-09-06 19:34:24 +00:00
Paolo Molaro 785a7ef43b Fri Sep 6 20:14:04 CEST 2002 Paolo Molaro <[email protected]>
* Delegate.cs: look also for non-public methods until we have the
	security checks in place.

svn path=/trunk/mcs/; revision=7285
2002-09-06 18:16:17 +00:00
Paolo Molaro b4879492ca Fri Sep 6 16:08:44 CEST 2002 Paolo Molaro <[email protected]>
* debug-helpers.c: break infinite loop (found and fixed by
	Holger Arnold <[email protected]>).

svn path=/trunk/mono/; revision=7283
2002-09-06 14:11:13 +00:00
Dick Porter e7086535fc More automake lines rearranging: select the "stable" version _after_ we've
checked the automake version.

It seems a bit daft to make sure we've got the latest "unstable" automake
and then not use it, but we have seen builds fail when a slightly older
"unstable" version is installed on the system.

svn path=/trunk/mono/; revision=7282
2002-09-06 12:02:45 +00:00
Dick Porter 3b0393cb64 Can't do the automake check until the mono dir has been checked out of CVS.
(Because automake-wrapper examines the dir to see which version of automake
to use.)

svn path=/trunk/mono/; revision=7281
2002-09-06 11:26:24 +00:00
Paolo Molaro 332d2ced8a Fri Sep 6 12:20:06 CEST 2002 Paolo Molaro <[email protected]>
* MonoType.cs: consider also the full name in GetInterface.

svn path=/trunk/mcs/; revision=7280
2002-09-06 10:21:51 +00:00
Paolo Molaro 193e77c5cb Fri Sep 6 12:11:28 CEST 2002 Paolo Molaro <[email protected]>
* MonoType.cs: implemented GetMembers, GetConstructorImpl and
	GetMethodImpl using the binder.
	* Type.cs: GetConstructorImpl/GetConstructor fixes.

svn path=/trunk/mcs/; revision=7279
2002-09-06 10:15:16 +00:00
Dietmar Maurer 33c90290aa only set ESP if necessary
svn path=/trunk/mono/; revision=7278
2002-09-06 09:18:19 +00:00
Dietmar Maurer 1b4e5d7b3f 2002-09-06 Dietmar Maurer <[email protected]>
* emit-x86.c (arch_emit_epilogue): use pop instead of mov

svn path=/trunk/mono/; revision=7277
2002-09-06 09:15:26 +00:00
Paolo Molaro c93b99378c Update with info on MONO_PATH.
svn path=/trunk/mono/; revision=7276
2002-09-06 08:11:56 +00:00
Ravi Pratap M 9c0368959f I am the worst kind of hacker there is ....
svn path=/trunk/mcs/; revision=7273
2002-09-05 19:16:17 +00:00
Ravi Pratap M 043305a683 Flush ChangeLog
svn path=/trunk/mcs/; revision=7272
2002-09-05 19:13:59 +00:00
Ravi Pratap M 464a887dc8 2002-09-05 Ravi Pratap <[email protected]>
* ecore.cs (ImplicitNumericConversion): Conversion from underlying
	type to the enum type is not allowed. Remove code corresponding to
	that.

	(ConvertNumericExplicit): Allow explicit conversions from
	the underlying type to enum type. This precisely follows the spec
	and closes a bug filed by Gonzalo.

svn path=/trunk/mcs/; revision=7271
2002-09-05 19:13:42 +00:00
Ravi Pratap M 68d2c7f12e Remove debug message - sorry, guys !
svn path=/trunk/mcs/; revision=7270
2002-09-05 18:45:33 +00:00
Paolo Molaro d5aa1a82fd Thu Sep 5 20:36:27 CEST 2002 Paolo Molaro <[email protected]>
* Binder.cs: finished the Binder class and implemented the default
	binder.

svn path=/trunk/mcs/; revision=7269
2002-09-05 18:38:31 +00:00
Martin Baulig 07513d7230 2002-09-05 Martin Baulig <[email protected]>
* debug.c (MONO_DEBUGGER__debugger_info): New global data symbol
	which is read by the debugger.

svn path=/trunk/mono/; revision=7268
2002-09-05 18:36:46 +00:00
Ravi Pratap M e65847b3f9 2002-09-05 Ravi Pratap <[email protected]>
* attribute.cs (Attribute.Resolve): Ensure we allow TypeOf
	expressions too. Previously we were checking only in one place for
	positional arguments leaving out named arguments.

svn path=/trunk/mcs/; revision=7265
2002-09-05 17:18:28 +00:00
Ravi Pratap M aa5d984a6d 2002-09-05 Ravi Pratap <[email protected]>
* interface.cs (PopulateMethod): Return if there are no argument
	types. Fixes a NullReferenceException bug.

svn path=/trunk/mcs/; revision=7264
2002-09-05 17:06:03 +00:00
Ravi Pratap M 36beb952d2 2002-09-05 Ravi Pratap <[email protected]>
* expression.cs (Invocation.OverloadResolve): Flag a nicer error
	message (1502, 1503) when we can't locate a method after overload
	resolution. This is much more informative and closes the bug
	Miguel reported.

svn path=/trunk/mcs/; revision=7263
2002-09-05 16:56:59 +00:00
Paolo Molaro 5b684ccab5 Thu Sep 5 18:50:54 CEST 2002 Paolo Molaro <[email protected]>
* icall.c: target may be null in create_delegate.

svn path=/trunk/mono/; revision=7262
2002-09-05 16:52:43 +00:00
Paolo Molaro 76ba0a9d7f Thu Sep 5 17:42:13 CEST 2002 Paolo Molaro <[email protected]>
* marshal.c: handle a boolean return type.

svn path=/trunk/mono/; revision=7261
2002-09-05 15:43:57 +00:00
Paolo Molaro f91791a18d Thu Sep 5 13:09:46 CEST 2002 Paolo Molaro <[email protected]>
* gc.c: put HIDE_POINTER/REVEAL_POINTER only here.

svn path=/trunk/mono/; revision=7260
2002-09-05 11:12:13 +00:00
Dietmar Maurer f82ceee6bb 2002-09-03 Dietmar Maurer <[email protected]>
* System.Runtime.Remoting.Channels.CORBA/CORBAChannel.cs:
	impl. the channel wrapper.

	* System.Runtime.Remoting.Channels.Simple/SimpleChannel.cs:
	impl. the channel wrapper.

	* System.Runtime.Remoting.Channels.Simple/SimpleServerChannel.cs
	(GetUrlsForUri): use all available channel uris.

svn path=/trunk/mcs/; revision=7259
2002-09-05 07:59:45 +00:00
Gonzalo Paniagua Javier 8ba95aa556 2002-09-05 Gonzalo Paniagua Javier <[email protected]>
* XmlTextWriter.cs: fixed bug #29886.

svn path=/trunk/mcs/; revision=7258
2002-09-05 02:35:27 +00:00
Franklin Wise f6b277b235 Added new tests for various System.Data classes. More flushing out of
the DataTable and supporting classes.

svn path=/trunk/mcs/; revision=7257
2002-09-05 01:46:40 +00:00
Jonathan Pryor 69c9f2c6b3 Implemented better attribute support for C# output.
svn path=/trunk/mcs/; revision=7250
2002-09-04 18:08:05 +00:00
Gonzalo Paniagua Javier 409920670c 2002-09-04 Gonzalo Paniagua Javier <[email protected]>
* compiler.csproj:
	* compiler.csproj.user: patch from Adam Chester ([email protected]).

svn path=/trunk/mcs/; revision=7249
2002-09-04 17:33:52 +00:00
Paolo Molaro 1184f808fb Wed Sep 4 19:23:09 CEST 2002 Paolo Molaro <[email protected]>
* gc.c: fix weakreferences.

svn path=/trunk/mono/; revision=7248
2002-09-04 17:25:14 +00:00
Jonathan Pryor 51b30c8d57 Get rid of silly compiler warning about unreachable code.
svn path=/trunk/mcs/; revision=7246
2002-09-04 17:02:16 +00:00
Paolo Molaro db50b71b63 Make the built response file depend on the file list.
svn path=/trunk/mcs/; revision=7245
2002-09-04 16:32:59 +00:00
Gonzalo Paniagua Javier 8a50239ee4 2002-09-04 Gonzalo Paniagua Javier <[email protected]>
* PathTest.cs: some fixes to make it work also on unix.

svn path=/trunk/mcs/; revision=7244
2002-09-04 16:29:48 +00:00
Jonathan Pryor d7ae8d619e * EnumTest.cs:
- Added additional "x" formatter test case to test most recent Enum.cs
      patch
    - Code cleanup so that all TestFormat test cases would be executed
    - Change exception types in TestFormat_Args so that it passes on .NET.
      (Some ArgumentNullExceptions should be been ArgumentExceptions.)

svn path=/trunk/mcs/; revision=7243
2002-09-04 16:11:28 +00:00
Miguel de Icaza 4b2f24ea56 Flush & announce
svn path=/trunk/mono/; revision=7242
2002-09-04 15:27:05 +00:00
Miguel de Icaza ae52b007cf Flush
svn path=/trunk/mono/; revision=7241
2002-09-04 15:20:47 +00:00
Miguel de Icaza 5455d3bcc9 Flush docs
svn path=/trunk/mono/; revision=7240
2002-09-04 15:18:50 +00:00
Paolo Molaro 9e1fdee82e Wed Sep 4 14:06:09 CEST 2002 Paolo Molaro <[email protected]>
* Makefile.am: link libmono directly into mono. Use a ld script
	to reduce exported symbols.

svn path=/trunk/mono/; revision=7239
2002-09-04 12:09:46 +00:00
Paolo Molaro 9de3cc5947 Wed Sep 4 14:01:25 CEST 2002 Paolo Molaro <[email protected]>
* Encoding.cs: use icall to get default codepage.
	* DefaultEncoding.cs: remove useless class.

svn path=/trunk/mcs/; revision=7238
2002-09-04 12:04:16 +00:00
Paolo Molaro 974559cf5c Wed Sep 4 13:59:50 CEST 2002 Paolo Molaro <[email protected]>
* icall.c: added icall to get default codepage.

svn path=/trunk/mono/; revision=7237
2002-09-04 12:01:49 +00:00
Juli Mallett f19cfba5e7 2002-09-04 Juli Mallett <[email protected]>
* configure.in: Include <sys/types.h> when checking <sys/un.h> stuff.

Taken from the FreeBSD port by Yukihiro Nakai <[email protected]>, to reduce
the patches needed by that port, once the next release is out.

svn path=/trunk/mono/; revision=7236
2002-09-04 08:06:39 +00:00
Miguel de Icaza f4d826a8d4 2002-09-04 Miguel de Icaza <[email protected]>
* Double.cs, Single.cs, Char.cs, Boolean.cs: Use internal for the actual value
	instead of public.

	* LocalDataStoreSlot.cs: Make constructor internal.

svn path=/trunk/mcs/; revision=7234
2002-09-04 04:55:20 +00:00
Miguel de Icaza b0a21ed982 2002-09-04 Miguel de Icaza <[email protected]>
* Int16.cs, UInt16.cs, Int32.cs, UInt32.cs, Int64.cs, UInt64.cs,
	SByte.cs, Byte.cs, Char.cs: Use internal for the actual value
	instead of public.

svn path=/trunk/mcs/; revision=7233
2002-09-04 04:45:45 +00:00
Miguel de Icaza 05d8302025 Make the variable match the prototype
svn path=/trunk/mcs/; revision=7231
2002-09-04 04:07:45 +00:00
Miguel de Icaza 4276594cbb 2002-09-03 Miguel de Icaza <[email protected]>
* statement.cs (SwitchLabel.ResolveAndReduce): In the string case,
	it was important that we stored the right value after the
	reduction in `converted'.

svn path=/trunk/mcs/; revision=7230
2002-09-04 04:05:07 +00:00
Miguel de Icaza 0968f763a3 Improve test
svn path=/trunk/mcs/; revision=7229
2002-09-04 04:03:26 +00:00
Dennis Hayes abdd012125 2002-9-2 DennisHayes <[email protected]>
* GraphicsPath.cs
	* added stub needed for system.windows.forms

svn path=/trunk/mcs/; revision=7228
2002-09-04 02:39:21 +00:00
Dennis Hayes 281e05c862 2002-9-2 DennisHayes <[email protected]>
* Brushes.cs : stubbed, added colors. Not sure how to implement,
				 but this should at least save someone some typing.
	* CharacterRange.cs :Implmented
	* Region.cs : stub needed for system.windows.forms

svn path=/trunk/mcs/; revision=7227
2002-09-04 02:35:26 +00:00
Dennis Hayes e5c4e36a5e 2002-8-6 DennisHayes <[email protected]>
* AccessibleObject.cs
* AmbientProperties.cs
* AxHost.cs
* Button.cs
* ButtonBase.cs
* CheckBox.cs
* ColorDialog.cs
* ColumnHeader.cs
* ComboBox.cs
* ContainerControl.cs
* DataGrid.cs
* DateTimePicker.cs
* ListControl.cs
* PrintPreviewDialog.cs
* Implmented any functions.

* System.Windows.Forms.csproj
* System.Windows.Forms.csproj.user
* Added win32.cs

svn path=/trunk/mcs/; revision=7226
2002-09-04 02:22:56 +00:00
Gonzalo Paniagua Javier c7a35e4544 2002-09-03 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs:
	* HttpWebResponse.cs: applied patch from Shahms E. King
	([email protected]).

svn path=/trunk/mcs/; revision=7225
2002-09-04 01:42:23 +00:00
Martin Baulig 5c623e61ff 2002-09-04 Martin Baulig <[email protected]>
* location.cs (Location.SymbolDocument): Use full pathnames for the
	source files.

svn path=/trunk/mcs/; revision=7223
2002-09-03 23:27:46 +00:00
Juli Mallett 54890e5fa4 Back out the previous revision, the previous previous revision was right, as
long as one reran autoheader (autogen.sh).

svn path=/trunk/mono/; revision=7214
2002-09-03 19:56:00 +00:00
Martin Baulig 3ee223464a 2002-09-03 Martin Baulig <[email protected]>
* debug.c (free_method_info): Make this actually work.

svn path=/trunk/mono/; revision=7212
2002-09-03 18:48:54 +00:00
Jonathan Pryor c1512698fd See ChangeLog for details.
svn path=/trunk/mcs/; revision=7211
2002-09-03 17:57:40 +00:00
Jonathan Pryor 1859baf1d3 * Enum.cs: Fixed Enum.Format so that the "x" format specifier would work
properly.

svn path=/trunk/mcs/; revision=7210
2002-09-03 17:28:30 +00:00
Dick Porter 7a858ef3f1 2002-09-03 Dick Porter <[email protected]>
* Thread.cs: Added thread ID field

svn path=/trunk/mcs/; revision=7209
2002-09-03 16:43:19 +00:00
Dick Porter 081119cf87 2002-09-03 Dick Porter <[email protected]>
* threads.h:
	* threads.c: Removed PosixKillThread(), because it's not in the
	w32 api

2002-09-03  Dick Porter  <[email protected]>

	* threads.h:
	* threads.c: Use MonoThread instead of MonoObject where
	apropriate.

	Store running thread objects in a hash table, so that we have all
	the info to hand when waiting for them to finish
	(means we don't need OpenThread() any more, so mingw builds should
	be fully functional again.)

	* verify.c:
	* object.h: Added thread ID to MonoThread

svn path=/trunk/mono/; revision=7208
2002-09-03 16:41:29 +00:00
Adam Treat 37e118ce90 * Applied [email protected]'s changes. This fixes method lookups that ignore
case and that ignore parameter signatures resulting in incorrect behavior.

svn path=/trunk/mcs/; revision=7207
2002-09-03 15:16:42 +00:00
Dietmar Maurer 1a0547470d 2002-09-03 Dietmar Maurer <[email protected]>
* System.Runtime.Remoting.Channels.CORBA/CORBAChannel.cs:
	impl. the channel wrapper.

	* System.Runtime.Remoting.Channels.Simple/SimpleChannel.cs:
	impl. the channel wrapper.

	* System.Runtime.Remoting.Channels.Simple/SimpleServerChannel.cs
	(GetUrlsForUri): use all available channel uris.

svn path=/trunk/mcs/; revision=7206
2002-09-03 13:56:31 +00:00
Dietmar Maurer b1313d9e7f revert my last change - it needs to be public
svn path=/trunk/mcs/; revision=7205
2002-09-03 13:04:37 +00:00
Dietmar Maurer 26cf616714 2002-09-03 Dietmar Maurer <[email protected]>
* MonoMethodMessage.cs: make in an iternal class again.

svn path=/trunk/mcs/; revision=7204
2002-09-03 12:47:18 +00:00
Martin Baulig 8d3599ce6d Increase symbol file generation when adding a new method.
svn path=/trunk/mono/; revision=7202
2002-09-03 12:39:30 +00:00
Martin Baulig d6933f0cac 2002-09-03 Martin Baulig <[email protected]>
* icall.c (System.Reflection.Assembly::get_location): New interncall.

svn path=/trunk/mono/; revision=7201
2002-09-03 12:38:18 +00:00
Martin Baulig b997879ae9 2002-09-03 Martin Baulig <[email protected]>
* Assembly.cs (Assembly.Location): Implemented.

svn path=/trunk/mcs/; revision=7200
2002-09-03 12:36:38 +00:00
Martin Baulig 31d6d573f9 2002-09-03 Martin Baulig <[email protected]>
* ConfigurationSettings.cs (ConfigurationSettings.GetConfig): Use the
	correct configuration filename, fixed the TODO.
	(GetSectionHanderType): Renamed to GetSectionHandlerType.

	* NameValueSectionHandler.cs (NameValueSectionHandler.Create): Allow
	whitespaces in the configuration file.

svn path=/trunk/mcs/; revision=7199
2002-09-03 12:36:00 +00:00
Gonzalo Paniagua Javier 3583837ad7 Removed stuff included by mistake in my last commit.
svn path=/trunk/mono/; revision=7198
2002-09-03 12:16:53 +00:00
Gonzalo Paniagua Javier fce1655a31 2002-09-03 Gonzalo Paniagua Javier <[email protected]>
* icall.c: fixed leak in get_temp_path. Thanks lupus.

svn path=/trunk/mono/; revision=7197
2002-09-03 12:09:55 +00:00
Dick Porter 5e37acebe6 Insist that the cygwin libiconv package is installed (seems to work around
libtool braindamage)

svn path=/trunk/mono/; revision=7196
2002-09-03 10:12:23 +00:00
Gonzalo Paniagua Javier 56b6a6396b 2002-09-03 Gonzalo Paniagua Javier <[email protected]>
* DefaultContext.cs: fixed bug #28840.
	* Expression.cs: added FIXME.

svn path=/trunk/mcs/; revision=7195
2002-09-03 10:01:37 +00:00
Gonzalo Paniagua Javier 9fc1f796b0 2002-09-03 Gonzalo Paniagua Javier <[email protected]>
* StringCollection.cs: fixes bug #29791. Thanks to Marcus Urban
	([email protected]).

svn path=/trunk/mcs/; revision=7194
2002-09-03 09:55:35 +00:00
Rafael Teixeira cb4d014f4c 2002-09-03 Rafael Teixeira <[email protected]>
* integrated new version of Mono.GetOptions (reflection/attributes-based)

svn path=/trunk/mcs/; revision=7193
2002-09-03 08:00:37 +00:00
Rafael Teixeira 1734110f45 2002-09-03 Rafael Teixeira <[email protected]>
* integrated new version of Mono.GetOptions (reflection/attributes-based)

svn path=/trunk/mcs/; revision=7192
2002-09-03 07:58:28 +00:00
Dietmar Maurer bcc53e7bad CORBA Channel, ObjRef serialisation support
svn path=/trunk/mcs/; revision=7191
2002-09-03 07:22:30 +00:00
John Sohn 3dc3dc6f39 * Control.cs: mapped more of the functions to the Win32 API
* Win32.cs: added more Win32 imports and definitions

svn path=/trunk/mcs/; revision=7190
2002-09-03 06:15:20 +00:00
Rafael Teixeira ea216a1299 see the changelog
svn path=/trunk/mcs/; revision=7189
2002-09-03 06:12:30 +00:00
Miguel de Icaza 96005596ea Remove this, get things working for now
svn path=/trunk/mono/; revision=7187
2002-09-03 01:59:18 +00:00
Miguel de Icaza 3491edf333 Flush: removed redundant instructions + Added Mono licensing
svn path=/trunk/mono/; revision=7186
2002-09-03 00:19:00 +00:00
Martin Baulig 05fedf2865 Reflect latest mono_disasm_code_one() changes.
svn path=/trunk/mono/; revision=7183
2002-09-02 23:59:39 +00:00
Martin Baulig 5ddb5007c9 2002-09-03 Martin Baulig <[email protected]>
* AssemblerWriterI386.cs, IAssemblerWriter.cs, MonoDwarfFileWriter.cs,
	README, README.relocation-table, csharp-lang.[ch], gdb-csharp-support.patch,
	gdb-variable-scopes.patch: Removed.

svn path=/trunk/mcs/; revision=7182
2002-09-02 23:58:04 +00:00
Martin Baulig fa72802d3b 2002-09-03 Martin Baulig <[email protected]>
* debug.h (MonoDebugFormat): Killed MONO_DEBUG_FORMAT_DWARF2_PLUS.
	* debug-dwarf2-plus.c: Removed.

	* debug-private.h (DebugMethodInfo): Removed the `method_info' field.
	(AssemblyDebugInfo): Removed the old `symfile' field and renamed
	`mono_symfile' to `symfile'.

	* debug.c (mono_debug_open): Replaced the assembly argument with a
	file name argument; you can now call this before loading the assembly.
	(debug_generate_method_lines): The MonoDebugILOffsetInfo struct is gone,
	we now use MonoSymbolFileLineNumberEntry's and a separate address array
	instead; splitted out all MonoSymbolFileLineNumberEntry code into
	debug_generate_il_offsets() and debug_update_il_offsets().
	(mono_debug_add_method): Don't create the MonoDebugMethodInfo here; it's
	created when reading the symbol file or from debug_load_method_lines().
	(debug_load_method_lines): Create the MonoDebugMethodInfo for all methods.

	* exception.c (arch_handle_exception): Call mono_debug_make_symbols() before
	looking up an address.

	* debug.c: Don't create the .il files for MONO_DEBUG_FORMAT_MONO.

	* mono.c (main): Initialize debugging before loading the first assembly.

svn path=/trunk/mono/; revision=7181
2002-09-02 23:53:35 +00:00
Martin Baulig bb667a46b5 2002-09-03 Martin Baulig <[email protected]>
* debug-helpers.c (mono_disasm_code_one): Added `const guchar **endp'
	argument to store the end address of the disassembled instruction.

	* debug-mono-symfile.h (MonoDebugMethodInfo, MonoDebugVarInfo): Moved
	here from debug-symfile.h.
	(MonoDebugMethodJitInfo): Moved all fields which are filled out by the
	JIT into this struct.
	(MonoSymbolFile): Added `char *image_file' field.
	(MonoDebugGetMethodFunc): Removed.
	(mono_debug_update_mono_symbol_file): Removed the hash table argument.
	(mono_debug_create_mono_symbol_file): Removed the `source_file' argument.
	(mono_debug_find_method): New method.

	* debug-mono-symfile.c (mono_debug_create_mono_symbol_file): Always
	create a full symbol file.
	(mono_debug_update_mono_symbol_file): Don't distinguish between dynamic
	and static symbol files.
	(mono_debug_find_method): The symbol file keeps an internal method hash,
	call this to get a MonoDebugMethodInfo from a MonoMethod.

	* debug-symfile.[ch]: Removed.

svn path=/trunk/mono/; revision=7180
2002-09-02 23:53:03 +00:00
Martin Baulig 4c5aafabb4 2002-09-03 Martin Baulig <[email protected]>
* MonoSymbolTableReader.cs (MonoSymbolTableReader.ImageFile): New
	public property.

	* MonoSymbolTable.cs: Bumped version number to 18.

svn path=/trunk/mcs/; revision=7179
2002-09-02 23:35:06 +00:00
Diego Sevilla Ruiz e983072823 2002-09-02 Diego Sevilla Ruiz <[email protected]>
* doc/ccvs: Added how to convert SSH keys (from SSH Communications
	Security) to the OpenSSH keys required by mono CVS
	access.

svn path=/trunk/mono/; revision=7178
2002-09-02 19:30:37 +00:00
Dick Porter 35474b62da Cope with the cygwin pkgconfig being installed
svn path=/trunk/mono/; revision=7177
2002-09-02 13:59:34 +00:00
Jonathan Pryor d5c20ef5e1 * ChangeLog: Updated for type-reflector
* makefile: Added type-reflector to the build.

svn path=/trunk/mcs/; revision=7176
2002-09-02 01:18:41 +00:00
Jonathan Pryor 32ffb354c1 Added new tool to the CVS repository, type-reflector.
See README for more information.

svn path=/trunk/mcs/; revision=7175
2002-09-02 01:08:14 +00:00
John Sohn c48238d24e * MessageBox.cs: added mostly complete implementation of the
MessageBox class
	* Application.cs: completed implementation of Run methods, implemented
	message handler functionality
	* Form.cs: implemented the Close event, allows the Application class to
	receive notification for shutting down the application
	* FormTest.cs: added additional functionality to test most methods
	currently implemented in the Application and Form class
	* NativeWindowTest.cs: fixed methods which received the MSG structure,
	previously was using an integer type instead of the struct
	* Win32.cs: added more Win32 imports and definitions
	* makefile: added the MessageBox.cs class to the build

svn path=/trunk/mcs/; revision=7174
2002-09-01 21:40:40 +00:00
Juli Mallett ba419c4ef8 2002-09-01 Juli Mallett <[email protected]>
* configure.in, mono/interpreter/interp.c,
	mono/io-layer/handles.c, mono/io-layer/processes.c,
	mono/io-layer/threads.c, mono/io-layer/timed-thread.c,
	mono/io-layer/wait.c, mono/jit/helpers.c, mono/jit/jit.c,
	mono/metadata/appdomain.c, mono/metadata/class.c,
	mono/metadata/domain.c, mono/metadata/gc.c,
	mono/metadata/object.c, mono/metadata/reflection.c,
	mono/metadata/threads.c, mono/os/gc_wrapper.h,
	mono/utils/mono-hash.c: Add a new header, gc_wrapper.h, to
	wrap inclusion of gc.h for boehm, since from FreeBSD and
	OpenBSD ports, gc.h is <gc.h>, but on GNU it seems to be
	in <gc/gc.h>.  This will reduce the diffs FreeBSD ports has
	to apply, and also makes it possible for me to build with
	GC on OpenBSD/macppc built by hand.

svn path=/trunk/mono/; revision=7173
2002-09-01 20:47:55 +00:00
Juli Mallett 271f6b2dc8 2002-09-01 Juli Mallett <[email protected]>
* configure.in: On BSD don't try to use -ldl, we simply don't use it.

svn path=/trunk/mono/; revision=7172
2002-09-01 20:05:50 +00:00
Juli Mallett ef113c8323 2002-09-01 Juli Mallett <[email protected]>
* mono/dis/dis-cil.c:
	* configure.in: Check for <wchar.h> via autoconf, don't use it if
	it isn't there, as it seems to work fine without it on OpenBSD.

svn path=/trunk/mono/; revision=7171
2002-09-01 19:14:09 +00:00
Dietmar Maurer 2e2f30bd0c * ObjRef.cs: gather the channel date at creation time.
* ChannelDataStore.cs: use a hash to store other keys

svn path=/trunk/mcs/; revision=7162
2002-08-31 12:43:34 +00:00
Rafael Teixeira 239886689a cvsignore
svn path=/trunk/mcs/; revision=7161
2002-08-31 07:52:00 +00:00
Rafael Teixeira a97a5e5831 2002-08-31 Rafael Teixeira <[email protected]>
* merged expression.cs from mcs/mcs, to resync

svn path=/trunk/mcs/; revision=7160
2002-08-31 07:48:31 +00:00
Juli Mallett 09754dbb8d 2002-08-30 Juli Mallett <[email protected]>
* list.unix, makefile.gnu: Added build glue for UNIX.

svn path=/trunk/mcs/; revision=7159
2002-08-31 04:21:35 +00:00
Miguel de Icaza 5489fc358e 2002-08-30 Miguel de Icaza <[email protected]>
* expression.cs (ComposedCast): Use DeclSparce.ResolveType instead
	of the expression resolve mechanism, because that will catch the
	SimpleName error failures.

svn path=/trunk/mcs/; revision=7157
2002-08-31 01:59:09 +00:00
Miguel de Icaza e1bfc82707 2002-08-30 Miguel de Icaza <[email protected]>
* expression.cs (Conditional): If we can not resolve the
	expression, return, do not crash.

svn path=/trunk/mcs/; revision=7156
2002-08-30 21:57:47 +00:00
Dietmar Maurer 4d1b3ab9d5 added missing files
svn path=/trunk/mcs/; revision=7155
2002-08-30 16:52:03 +00:00
Dietmar Maurer 3069d9c5c3 removed unnecessary writeline
svn path=/trunk/mcs/; revision=7154
2002-08-30 16:29:22 +00:00
Dietmar Maurer a810886642 2002-08-30 Dietmar Maurer <[email protected]>
* System.Runtime.Remoting.Channels.Simple/SimpleWireFormat.cs: add
	more types.

svn path=/trunk/mcs/; revision=7153
2002-08-30 16:21:07 +00:00
Dietmar Maurer fc30c69bcf added an example, semove unnecessary WriteLine
svn path=/trunk/mcs/; revision=7152
2002-08-30 14:46:16 +00:00
Dietmar Maurer 2e4f40e23d channel example implementation
svn path=/trunk/mcs/; revision=7151
2002-08-30 14:01:21 +00:00
Nick Drochak 98fae5bd7f 2002-08-30 Nick Drochak <[email protected]>
* PathTest.cs (TestGetPathRoot):  Don't assume current directory will
	be on the C: drive (mine wasn't).

svn path=/trunk/mcs/; revision=7150
2002-08-30 05:47:59 +00:00
John Sohn 1093c32524 RegisterClass/WNDPROC callback is now initialized entrely in C#, simplified
the stub application

svn path=/trunk/mcs/; revision=7149
2002-08-30 05:36:19 +00:00
Miguel de Icaza 2b395e4143 2002-08-29 Miguel de Icaza <[email protected]>
* image.c (do_mono_image_open): Remove linker version check.

svn path=/trunk/mono/; revision=7147
2002-08-30 04:59:06 +00:00
Gonzalo Paniagua Javier 80f46045ee 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
* ArrayList.cs: fixed bug #29658.

svn path=/trunk/mcs/; revision=7146
2002-08-30 00:29:22 +00:00
Dick Porter 1dbf4ea99d Pass LDFLAGS when linking monoburg
svn path=/trunk/mono/; revision=7145
2002-08-29 23:41:29 +00:00
Gonzalo Paniagua Javier 7e8c804d86 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
* cs-tokenizer.cs:
	(location): display token name instead of its number.

svn path=/trunk/mcs/; revision=7144
2002-08-29 23:11:41 +00:00
Miguel de Icaza 55634e1f2b Add new logo
svn path=/trunk/mono/; revision=7143
2002-08-29 23:10:02 +00:00
Gonzalo Paniagua Javier b41bf89278 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
* MonoField.cs:
	(GetValue): allow obj to be null (used for static fields).

svn path=/trunk/mcs/; revision=7142
2002-08-29 23:07:52 +00:00
Dick Porter 80575b9add New versions of the build scripts. The windows one checks that automake
is new enough (fixes strangeness reported by Gonzalo.)

The other one now copes with enough system variation to work on Freebsd.

svn path=/trunk/mono/; revision=7140
2002-08-29 16:47:27 +00:00
Dietmar Maurer 425cd9f8fe 2002-08-29 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_managed_wrapper): don't cache
	wrappers for instance methods.

svn path=/trunk/mono/; revision=7139
2002-08-29 15:00:13 +00:00
Rafael Teixeira 3a6c0cbb1d 2002-08-29 Rafael Teixeira <[email protected]>
* merged assign.cs, attribute.cs, class.cs, codegen.cs, const.cs, decl.cs, delegate.cs, ecore.cs, enum.cs,
        expression.cs, interface.cs, pending.cs, report.cs, rootcontext.cs, statement.cs, support.cs and
        typemanager.cs from mcs/mcs, to resync

svn path=/trunk/mcs/; revision=7138
2002-08-29 14:19:58 +00:00
Gonzalo Paniagua Javier ac893ff6f1 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
* CheckArgument.cs: fixed check for empty string.
	* Path.cs: various fixes. It passes all the tests in new PathTest.

svn path=/trunk/mcs/; revision=7137
2002-08-29 11:41:48 +00:00
Gonzalo Paniagua Javier b0da22d0cc 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
* icall.c: added ves_icall_System_IO_Path_get_temp_path.

svn path=/trunk/mono/; revision=7136
2002-08-29 11:38:36 +00:00
Gonzalo Paniagua Javier 42a105053e 2002-08-29 Gonzalo Paniagua Javier <[email protected]>
* PathTest.cs: improved.

svn path=/trunk/mcs/; revision=7135
2002-08-29 11:32:15 +00:00
Juli Mallett e4cff48d9a 2002-08-28 Juli Mallett <[email protected]>
* arch.cs, compiler.cs: Give the interpreter machine a property
	for the retrieval of the group count.

	* regex.cs: Use the new GroupCount property of the factory to
	initialise the current group count, and restructure code to compile
	the pattern only the first time it is needed (essentially backing
	out the previous revision of regex.cs, to use the new code.)

svn path=/trunk/mcs/; revision=7132
2002-08-28 18:46:54 +00:00
Radek Doulik 962db8699b retval value type fixed
svn path=/trunk/mono/; revision=7127
2002-08-28 15:26:29 +00:00
Radek Doulik f8b7cbf694 fixed valuetypes marshaling in delegates
svn path=/trunk/mono/; revision=7126
2002-08-28 14:41:08 +00:00
Dick Porter c25efc9f92 2002-08-28 Dick Porter <[email protected]>
* mono/os/win32/util.c:
	* mono/os/unix/util.c:
	* mono/os/util.h: mono_set_rootdir() doesnt take any args now.
	(It doesn't do anything on unix builds, and the w32 version no
	longer needs an arg.)

	* configure.in: Add HOST_CC for w32 builds

2002-08-28  Dick Porter  <[email protected]>

	* Makefile.am: Export HOST_CC for w32 builds

2002-08-28  Dick Porter  <[email protected]>

	* interp.c: mono_set_rootdir() doesnt take any args now

	* Makefile.am: Export HOST_CC and turn on optimisation for w32 builds

2002-08-28  Dick Porter  <[email protected]>

	* mono.c: mono_set_rootdir() doesnt take any args now

	* Makefile.am: Export HOST_CC for w32 builds

svn path=/trunk/mono/; revision=7124
2002-08-28 14:14:24 +00:00
Duncan Mak 2b31a83b28 2002-08-29 Duncan Mak <[email protected]>
* StreamWriter.cs: Set DisposedAlready after calling flush. Fixes
	the build for gtk#.

svn path=/trunk/mcs/; revision=7123
2002-08-28 09:22:19 +00:00
Dietmar Maurer b1d4839dd3 2002-08-28 Dietmar Maurer <[email protected]>
* jit.c (mono_store_tree): only allocate vars if really necessary

svn path=/trunk/mono/; revision=7122
2002-08-28 09:09:25 +00:00
Gaurav Vaish 63da177af1 2002-08-28 Gaurav Vaish <[email protected]>
* DataSourceInternal.cs       - Added new class (internal).
* ChangeLog                   - Updated Info.

svn path=/trunk/mcs/; revision=7121
2002-08-28 06:17:19 +00:00
Nick Drochak 5e3f295d55 *** empty log message ***
svn path=/trunk/mono/; revision=7120
2002-08-28 04:07:42 +00:00
Gonzalo Paniagua Javier b65b32946f 2002-08-28 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: fixed buglet.

svn path=/trunk/mcs/; revision=7119
2002-08-28 02:51:50 +00:00
Gonzalo Paniagua Javier 5bf2383288 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
* System.IO/BinaryReader.cs:
	* System.IO/BinaryWriter.cs:
	* System.IO/MemoryStream.cs:
	* System.IO/StreamReader.cs:
	* System.IO/StreamWriter.cs:
	* System.IO/StringReader.cs:
	* System.IO/StringWriter.cs:
	* System.IO/TextWriter.cs:
	* System.Threading/WaitHandle.cs: IDisposable fixes.

svn path=/trunk/mcs/; revision=7118
2002-08-28 02:30:47 +00:00
Gonzalo Paniagua Javier 3e02dca4b6 2002-08-28 Gonzalo Paniagua Javier <[email protected]>
* System.ComponentModel/Component.cs:
	* System.ComponentModel/ComponentCollection.cs:
	* System.ComponentModel/Container.cs:
	* System.ComponentModel/MarshalByValueComponent.cs:
	* System.Diagnostics/Process.cs:
	* System.Diagnostics/TextWriterTraceListener.cs:
	* System.IO/FileSystemWatcher.cs:
	IDisposable fixes.

svn path=/trunk/mcs/; revision=7117
2002-08-28 02:30:24 +00:00
Martin Baulig 6563dbd72c 2002-08-28 Martin Baulig <[email protected]>
* expression.cs (Binary.ResolveOperator): Don't silently return
	but return an error if an operator cannot be applied between two
	enum types.

svn path=/trunk/mcs/; revision=7116
2002-08-28 02:27:19 +00:00
Martin Baulig 230c0d7d06 Oops, default to public if no attribute is given.
svn path=/trunk/mcs/; revision=7115
2002-08-28 02:13:53 +00:00
Martin Baulig b8204cc351 2002-08-28 Martin Baulig <[email protected]>
* class.cs (Constructor.Define): Set the permission attributes
	correctly instead of making all constructors public.

svn path=/trunk/mcs/; revision=7114
2002-08-28 00:43:14 +00:00
Martin Baulig 0c06e20cc0 2002-08-28 Martin Baulig <[email protected]>
* ecore.cs (Expression.DoResolve): Do a TypeManager.MemberLook
	for private members before reporting a CS0103; if we find anything,
	it's a CS0122.

svn path=/trunk/mcs/; revision=7112
2002-08-27 23:52:31 +00:00
Martin Baulig 5305f826e0 2002-08-28 Martin Baulig <[email protected]>
* typemanager.cs (TypeManager.FilterWithClosure): It's not enough
	to check whether `closure_start_type == closure_invocation_type',
	we also need to check whether `m.DeclaringType == closure_invocation_type'
	before bypassing the permission checks.  We might be accessing
	protected/private members from the base class.
	(TypeManager.RealMemberLookup): Only set private_ok if private
	members were requested via BindingFlags.NonPublic.

	* ecore.cs (MethodGroupExpr.IsExplicitImpl): New property.

	* expression.cs (MemberAccess.ResolveMemberAccess): Set
	MethodGroupExpr.IsExplicitImpl if appropriate.
	(Invocation.DoResolve): Don't report the CS0120 for explicit
	interface implementations.

svn path=/trunk/mcs/; revision=7111
2002-08-27 23:31:07 +00:00
Martin Baulig 6718c8a85d 2002-08-27 Martin Baulig <[email protected]>
* cs0120-3.cs: New test.

svn path=/trunk/mcs/; revision=7110
2002-08-27 21:16:29 +00:00
Martin Baulig f2008bcb4a 2002-08-27 Martin Baulig <[email protected]>
* expression.cs (Invocation.DoResolve): If this is a static
	method and we don't have an InstanceExpression, we must report
	a CS0120.

svn path=/trunk/mcs/; revision=7109
2002-08-27 21:13:48 +00:00
Martin Baulig f3c7da05e3 2002-08-27 Martin Baulig <[email protected]>
* debug.c: The mono symbol file is installed together with the assembly
	it belongs to and it's used on a per-image basis.

svn path=/trunk/mono/; revision=7101
2002-08-27 17:54:23 +00:00
Paolo Molaro db6e307c86 Tue Aug 27 19:44:32 CEST 2002 Paolo Molaro <[email protected]>
* mono.c: don't use the cil-coff header outside of the loader.

svn path=/trunk/mono/; revision=7100
2002-08-27 17:46:10 +00:00
Gonzalo Paniagua Javier a16a51c225 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
* makefile.gnu:
	* class/library.make:
	* class/makefile.gnu:
	* class/I18N/makefile.gnu
	* class/corlib/makefile.gnu:
	* class/corlib/Test/ChangeLog:
	* class/corlib/Test/corlib_linux_test.args:
	* class/corlib/Test/makefile.gnu:
	* class/corlib/Test/run_test.sh:
	* jay/makefile.gnu:
	* mcs/makefile.gnu:
	* monoresgen/makefile.gnu:
	* nunit/makefile.gnu:

	Allow running 'make -f makefile.gnu test' from top directory.
	In the libraries makefile.gnu you just have to add TEST_DIR=dirname
	with the name where tests reside.

svn path=/trunk/mcs/; revision=7099
2002-08-27 17:31:06 +00:00
Paolo Molaro 7818abc420 Tue Aug 27 18:34:51 CEST 2002 Paolo Molaro <[email protected]>
* file-io.c process.c: MonoString are null terminated, no
	need for mono_string_to_utf16() anymore.

svn path=/trunk/mono/; revision=7096
2002-08-27 16:37:08 +00:00
Paolo Molaro a0e8b42612 Removed iconv header.
svn path=/trunk/mono/; revision=7094
2002-08-27 16:19:47 +00:00
Paolo Molaro 3923c5163d Tue Aug 27 18:17:43 CEST 2002 Paolo Molaro <[email protected]>
* configure.in: remove iconv checks.

svn path=/trunk/mono/; revision=7093
2002-08-27 16:19:15 +00:00
Paolo Molaro 258276203c Tue Aug 27 17:51:27 CEST 2002 Paolo Molaro <[email protected]>
* icall.c, unicode.h, unicode.c: removed unused iconv stuff.

svn path=/trunk/mono/; revision=7091
2002-08-27 16:05:14 +00:00
Paolo Molaro 0b315c47ee Tue Aug 27 16:57:18 CEST 2002 Paolo Molaro <[email protected]>
* TypeBuilder.cs: remove duplicate code and fix
	named field reading in custom attr.

svn path=/trunk/mcs/; revision=7089
2002-08-27 14:59:42 +00:00
Paolo Molaro b4244586e2 Tue Aug 27 16:39:47 CEST 2002 Paolo Molaro <[email protected]>
* MonoType.cs: speedup access to common data.

svn path=/trunk/mcs/; revision=7088
2002-08-27 14:42:09 +00:00
Paolo Molaro 740dee6302 Tue Aug 27 16:38:58 CEST 2002 Paolo Molaro <[email protected]>
* icall.c, reflection.h: speedup System.MonoType.

svn path=/trunk/mono/; revision=7087
2002-08-27 14:42:07 +00:00
Paolo Molaro ab1d8f9b91 Tue Aug 27 16:37:01 CEST 2002 Paolo Molaro <[email protected]>
* reflection.c: allow null as the value of a string argument in
	custom attributes constructors.

svn path=/trunk/mono/; revision=7086
2002-08-27 14:39:19 +00:00
Gonzalo Paniagua Javier 0673413dec 2002-08-27 Gonzalo Paniagua Javier <[email protected]>
* makefile.gnu:
	* src/NUnitConsole/makefile.gnu: some modifications to use the other
	makefiles and build dll and exe on linux.

	* src/makefile.gnu: New file.
	* src/NUnitCore/list.unix: New file.
	* src/NUnitCore/makefile.gnu: New file.

svn path=/trunk/mcs/; revision=7085
2002-08-27 13:29:18 +00:00
Martin Baulig 22b9f047d9 2002-08-27 Martin Baulig <[email protected]>
* debug.c (mono_debugger_internal_get_symbol_files): Removed, we need
	to use global variables for this since they're stored in a core file.
	(mono_debugger_symbol_file_table_generation): New global variable.
	(mono_debugger_symbol_file_table): New global variable.
	(mono_debugger_update_symbol_file_table): New global function to update
	the symbol file table.

svn path=/trunk/mono/; revision=7083
2002-08-27 12:56:58 +00:00
Martin Baulig a266b5dd42 2002-08-27 Martin Baulig <[email protected]>
* trampoline.c (mono_generic_trampoline_code): New global variable.
	(arch_create_jit_trampoline): Use the new global variable to store the
	generic trampoline code instead of using a static one.  This allows the
	debugger to access this variable to check whether a method is a trampoline.

	* debug.h (mono_generic_trampoline_code): Added external declaration.

svn path=/trunk/mono/; revision=7082
2002-08-27 12:01:46 +00:00
Martin Baulig a3bba04e9c 2002-08-27 Martin Baulig <[email protected]>
* MonoSymbolTable.cs (MethodAddress): Removed `TrampolineAddress'.

svn path=/trunk/mcs/; revision=7081
2002-08-27 11:56:30 +00:00
Martin Baulig 8d9dd544ae 2002-08-27 Martin Baulig <[email protected]>
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Removed the
	`trampoline_address' field.

svn path=/trunk/mono/; revision=7080
2002-08-27 11:55:30 +00:00
Martin Baulig 1ff926d1d3 Reverted, it isn't needed anymore.
2002-08-24  Martin Baulig  <[email protected]>

	* rawbuffer.c (mono_raw_buffer_load): Added `int is_shared'
	argument.  This is a flag which specifies whether we do a private
	copy-on-write mapping even when a writable mapping was requested.

svn path=/trunk/mono/; revision=7079
2002-08-27 11:52:16 +00:00
Dietmar Maurer 48cabf2578 2002-08-27 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): removed wrong null
	check (fixes bug #29486)

svn path=/trunk/mono/; revision=7078
2002-08-27 07:53:32 +00:00
Miguel de Icaza 5dc2a03871 I can not figure out, how I made 0.15, without it being on cvs
svn path=/trunk/mono/; revision=7077
2002-08-27 06:41:12 +00:00
Gonzalo Paniagua Javier 416a22b786 Added clean target.
svn path=/trunk/mcs/; revision=7076
2002-08-27 03:06:15 +00:00
Nick Drochak f80004b19f 2002-08-27 Nick Drochak <[email protected]>
* index: fix small typo for top news item

svn path=/trunk/mono/; revision=7075
2002-08-27 03:02:24 +00:00
Gonzalo Paniagua Javier b1c3e6b4bc Oops
svn path=/trunk/mcs/; revision=7074
2002-08-27 02:07:57 +00:00
Gonzalo Paniagua Javier 9e679a80e4 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* list: added new files in System.Web.Security
	* System.Web.Security/DefaultAuthenticationEventHandler.cs:
	* System.Web.Security/DefaultAuthenticationModule.cs:
	* System.Web.Security/FileAuthorizationModule.cs:
	* System.Web.Security/FormsAuthentication.cs:
	* System.Web.Security/FormsAuthenticationEventArgs.cs:
	* System.Web.Security/FormsAuthenticationEventHandler.cs:
	* System.Web.Security/FormsAuthenticationModule.cs:
	* System.Web.Security/FormsAuthenticationTicket.cs:
	* System.Web.Security/FormsIdentity.cs:
	* System.Web.Security/PassportAuthenticationEventArgs.cs:
	* System.Web.Security/PassportAuthenticationEventHandler.cs:
	* System.Web.Security/PassportAuthenticationModule.cs:
	* System.Web.Security/PassportIdentity.cs:
	* System.Web.Security/UrlAuthorizationModule.cs:
	* System.Web.Security/WindowsAuthenticationEventArgs.cs:
	* System.Web.Security/WindowsAuthenticationEventHandler.cs:
	* System.Web.Security/WindowsAuthenticationModule.cs: new files. Some
	of them implemented, some others stubbed out.

svn path=/trunk/mcs/; revision=7073
2002-08-27 02:03:20 +00:00
Gonzalo Paniagua Javier c87c2fda2b 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* unix.args: added a couple of new files in System.Security.Principal.
	* System.Security.Principal/WindowsIdentity.cs:
	* System.Security.Principal/WindowsImpersonationContext.cs: stubbed.

svn path=/trunk/mcs/; revision=7072
2002-08-27 01:40:49 +00:00
Martin Baulig d2bb06c6f2 2002-08-27 Martin Baulig <[email protected]>
* debug.c (MonoDebugHandle): Moved the method hash into the
	AssemblyDebugInfo struct since we need to use a separate hash for each
	MonoImage.

	* debug.c: Added special undocumented command line argument to create a
	symbol file for IL files on-the-fly.  In this case, we also need to create
	the IL files and parse them.
	(mono_debugger_internal_get_symbol_files): Return something more reasonable.

svn path=/trunk/mono/; revision=7067
2002-08-26 23:28:55 +00:00
Martin Baulig 05ee953635 2002-08-27 Martin Baulig <[email protected]>
* debug-mono-symfile.c: Changed the file format in a way that allows us
	open it read-only and to use a specially malloced area for all the
	dynamic data.  We can now also generate a symbol file on-the-fly if we're
	debugging IL code and there is no MCS generated symbol file for it.

svn path=/trunk/mono/; revision=7066
2002-08-26 23:25:36 +00:00
Martin Baulig 97542158b6 2002-08-27 Martin Baulig <[email protected]>
* MonoSymbolTable.cs: Changed the file format in a way that allows us
	open it read-only and to use a specially malloced area for all the
	dynamic data.

svn path=/trunk/mcs/; revision=7065
2002-08-26 23:23:36 +00:00
Gonzalo Paniagua Javier d201881f93 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
	to add HttpMapPath to the list file...

svn path=/trunk/mcs/; revision=7064
2002-08-26 23:14:23 +00:00
Gonzalo Paniagua Javier ff19f0aa42 Added IHttpMapPath.cs
svn path=/trunk/mcs/; revision=7063
2002-08-26 23:11:53 +00:00
Ravi Pratap M e09e903225 2002-08-26 Ravi Pratap <[email protected]>
* XmlAttribute.cs (InnerText): Implement getting this property.

	* XmlNode.cs (InnerText): Ensure that we append only values of
	text nodes.

svn path=/trunk/mcs/; revision=7061
2002-08-26 20:26:15 +00:00
Gonzalo Paniagua Javier 06a84330ee 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
	report when i get a test case.

svn path=/trunk/mcs/; revision=7060
2002-08-26 20:25:21 +00:00
Gonzalo Paniagua Javier e4e5331199 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs: little fixes.

svn path=/trunk/mcs/; revision=7058
2002-08-26 19:45:11 +00:00
Gonzalo Paniagua Javier 22239e7634 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* HttpApplicationFactory.cs:
	* HttpCachePolicy.cs:
	* HttpResponseHeader.cs:
	* HttpResponseStream.cs:
	* HttpResponseStreamProxy.cs:
	* HttpValueCollection.cs: misc. fixes based on class status page.

	* IHttpMapPath.cs: New file.

	* HttpRequest.cs: implemented ContentEncoding.
	* HttpWorkerRequest.cs: mono-stylized and implemented
	SendResponseFromMemory.

svn path=/trunk/mcs/; revision=7057
2002-08-26 19:27:46 +00:00
Ravi Pratap M 5d82d5ca9f Fix typo.
svn path=/trunk/mcs/; revision=7055
2002-08-26 17:29:56 +00:00
Paolo Molaro 4358d78a0e Mon Aug 26 16:47:37 CEST 2002 Paolo Molaro <[email protected]>
* object.c: added a define for a good string and array
	creation speedup (not enabled by default because we need to deal with
	the synch stuff).

svn path=/trunk/mono/; revision=7052
2002-08-26 14:50:32 +00:00
Nick Drochak 6ec3005613 2002-08-26 Nick Drochak <[email protected]>
* BinaryReaderTest.cs: Closing the stream twice doesn not throw any
	exceptions on .NET.

svn path=/trunk/mcs/; revision=7051
2002-08-26 14:47:25 +00:00
Paolo Molaro 6c10f94827 Mon Aug 26 16:44:54 CEST 2002 Paolo Molaro <[email protected]>
* *.cs: change to conform to mono coding style.

svn path=/trunk/mcs/; revision=7050
2002-08-26 14:46:37 +00:00
Gonzalo Paniagua Javier e60e67f9be Added 'clean' target to build file
svn path=/trunk/mcs/; revision=7049
2002-08-26 03:24:22 +00:00
Gonzalo Paniagua Javier 71ed9a2dd0 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
	that allowed compiling this.
	[ FIXME: filed bug #29435. mcs should have failed on this ]

svn path=/trunk/mcs/; revision=7048
2002-08-26 03:14:30 +00:00
Gonzalo Paniagua Javier b83d3bf2ad 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* AuthenticationMode.cs:
	* ClientTargetSectionHandler.cs:
	* FormsAuthPasswordFormat.cs:
	* FormsProtectionEnum.cs:
	* HttpCapabilitiesBase.cs: fixes base on class status page.

svn path=/trunk/mcs/; revision=7047
2002-08-26 02:53:15 +00:00
Gonzalo Paniagua Javier 7ab3214054 2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* list: added new files.

	* System.Web.UI.WebControls/FontUnit.cs:
	* System.Web.UI.WebControls/HorizontalAlign.cs:
	* System.Web.UI.WebControls/Unit.cs:
	* System.Web.UI.WebControls/VerticalAlign.cs: fixes based on class
	status page.

	* System.Web.UI.WebControls/HorizontalAlignConverter.cs: implemented.
	* System.Web.UI.WebControls/VerticalAlignConverter.cs: implemented.

	* System.Web.UI.WebControls/FontUnitConverter.cs: implemented
	GetStandardValues ().

	* System.Web.UI.WebControls/WebColorConverter.cs: implemented
	ConvertFrom () and ConvertTo ().

svn path=/trunk/mcs/; revision=7046
2002-08-26 02:36:24 +00:00
Rodrigo Moya 49f4f066e8 2002-08-25 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbTransaction.cs (OleDbTransaction): manage
	correctly the isolation level.
	(IsolationLevel): likewise.
	(~OleDbTransaction): implemented.

	* System.Data.OleDb/libgda.cs: added more needed stuff.

svn path=/trunk/mcs/; revision=7043
2002-08-26 01:23:20 +00:00
Gonzalo Paniagua Javier a3d9d0e4d5 *** empty log message ***
svn path=/trunk/mcs/; revision=7042
2002-08-26 00:59:16 +00:00
Gonzalo Paniagua Javier d1062e5f1d Moved from System.Web.Utils to System.Web.Util
svn path=/trunk/mcs/; revision=7041
2002-08-26 00:57:47 +00:00
Martin Baulig eeb019ede8 2002-08-26 Martin Baulig <[email protected]>
* debug.c (mono_debugger_internal_free_symbol_files): New function.
	(mono_debugger_internal_symbol_files_changed): New global variable.

svn path=/trunk/mono/; revision=7039
2002-08-26 00:26:53 +00:00
Martin Baulig b4f60eb86b Removed some debugging stuff and made this work for the first line in a method.
svn path=/trunk/mono/; revision=7038
2002-08-26 00:25:41 +00:00
Martin Baulig a524dfbda7 2002-08-26 Martin Baulig <[email protected]>
* loader.c (mono_lookup_pinvoke_call): Include the error message
	from g_module_error() in the error message.

svn path=/trunk/mono/; revision=7037
2002-08-26 00:25:15 +00:00
Gonzalo Paniagua Javier 7912776803 added TcpServerChannel.cs
svn path=/trunk/mcs/; revision=7036
2002-08-26 00:16:07 +00:00
Gonzalo Paniagua Javier 75ab78e4bb Moving this file to System.Runtime.Remoting.dll
svn path=/trunk/mcs/; revision=7035
2002-08-26 00:12:01 +00:00
Tim Coleman ad41847caa 2002-08-25 Tim Coleman <[email protected]>
* XmlNode.cs:
                Change CreateNavigator to not be virtual.
        * XmlElement.cs:
                Add set_Prefix and InnerText accessors.
        * XmlEntityReference.cs:
                Add set_Value accessor.
        * XmlTextWriter.cs:
                Make objects which should be private private.
        * XmlWriter.cs:
                Remove WriteStartElementInternal abstract definition.
        * XmlValidatingReader.cs:
                New stubs added.

svn path=/trunk/mcs/; revision=7034
2002-08-25 22:04:31 +00:00
Martin Baulig 9443a98307 2002-08-25 Martin Baulig <[email protected]>
* expression.cs (Binary.ResolveOperator): Don't allow `!=' and
	`==' between a valuetype and an object.

svn path=/trunk/mcs/; revision=7033
2002-08-25 21:55:13 +00:00
Sergey Chaban f5d4a50a8e Fixed small typo that resulted in infinite loop when pasing signatures with custom modifiers.
svn path=/trunk/mono/; revision=7028
2002-08-25 17:20:16 +00:00
Tim Coleman a47aca07c9 2002-08-24 Tim Coleman <[email protected]>
* SoapCodeExporter.cs:
                Fix return value of ExportTypeMapping.
        * XmlCustomFormatter.cs:
                Change methods to be internal instead of public.
        * XmlSerializationWriter.cs:
                Modify GetPrimitiveTypeName to build on linux.
                Modify GetQualifiedName to return an incrementing prefix
                instead of the same one all the time (still need to manage
                conflicts)
                Modify WriteElementString to only do special stuff is XsiType
                is not defined.
                Modify WriteTypedPrimitive to use FromXmlQualifiedName if it's
                an XmlQualifiedName.

svn path=/trunk/mcs/; revision=7023
2002-08-25 05:16:40 +00:00
Miguel de Icaza feb82bd617 2002-08-25 Miguel de Icaza <[email protected]>
* ecore.cs (TypeExpr): Provide a ToString method.

svn path=/trunk/mcs/; revision=7022
2002-08-25 05:16:30 +00:00
Tim Coleman 66c54d45e3 2002-08-24 Tim Coleman <[email protected]>
* list:
                New files added to build.

svn path=/trunk/mcs/; revision=7021
2002-08-25 04:33:29 +00:00
Tim Coleman 92f445d92c 2002-08-24 Tim Coleman <[email protected]>
* HttpServerProtocol.cs:
        * WebServiceHandler.cs:
                Some commented code added, from analysing
                an exception trace.
        * MimeReturnWriter.cs:
        * XmlReturnWriter.cs:
                New stubs added.

svn path=/trunk/mcs/; revision=7020
2002-08-25 04:32:55 +00:00
Martin Baulig 61be84f5d6 Added public property to get the methods.
svn path=/trunk/mcs/; revision=7018
2002-08-25 01:07:56 +00:00
Miguel de Icaza d46fda6d71 2002-08-24 Miguel de Icaza <[email protected]>
* StreamReader.cs: Removed TODOs, as the code seems to be
	complete.

svn path=/trunk/mcs/; revision=7017
2002-08-25 00:04:06 +00:00
Martin Baulig 6231adbb70 Use start and end addresses for methods.
svn path=/trunk/mono/; revision=7016
2002-08-25 00:04:06 +00:00
Martin Baulig 80105b4782 Use StartAddress and EndAddress for methods.
svn path=/trunk/mcs/; revision=7015
2002-08-25 00:03:38 +00:00
Miguel de Icaza f7cd19e933 2002-08-24 Miguel de Icaza <[email protected]>
* Path.cs (GetTempFileName): Make this routine atomic by not
	testing and then creating, but using the create call to ensure
	that we own the filename.

svn path=/trunk/mcs/; revision=7014
2002-08-24 23:59:54 +00:00
Radek Doulik d0497fcc46 fixed struct marshaling, 108 tests pass now
svn path=/trunk/mono/; revision=7013
2002-08-24 23:54:12 +00:00
Martin Baulig ecf4ffdc4f 2002-08-24 Martin Baulig <[email protected]>
* debug.c (mono_debugger_internal_symbol_files): New function.

svn path=/trunk/mono/; revision=7010
2002-08-24 23:12:44 +00:00
Martin Baulig 474fba8120 Oooops, that was a cut&paste error ...
svn path=/trunk/mono/; revision=7009
2002-08-24 23:11:31 +00:00
Martin Baulig 416f94ed9b 2002-08-25 Martin Baulig <[email protected]>
* MonoSymbolTableReader.cs: New file.  This is the reader for the
	new symbol file format.

svn path=/trunk/mcs/; revision=7008
2002-08-24 23:02:46 +00:00
Miguel de Icaza a58ff9d3c1 Flush
svn path=/trunk/mono/; revision=7007
2002-08-24 22:55:31 +00:00
Juli Mallett 21c8194c65 2002-08-24 Juli Mallett <[email protected]>
* configure.in: Recognise OpenBSD/macppc as PowerPC.

svn path=/trunk/mono/; revision=7006
2002-08-24 22:25:58 +00:00
Gonzalo Paniagua Javier a72919388c 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
* TypeBuilder.cs: UnspecifiedTypeSize is 0.

svn path=/trunk/mcs/; revision=7005
2002-08-24 17:57:01 +00:00
Gonzalo Paniagua Javier e8d3094b31 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
* LifetimeServices.cs: the class is sealed.

svn path=/trunk/mcs/; revision=7004
2002-08-24 17:55:11 +00:00
Gonzalo Paniagua Javier df590f5519 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
* ChannelServices.cs: added private .ctor

svn path=/trunk/mcs/; revision=7003
2002-08-24 17:53:45 +00:00
Gonzalo Paniagua Javier 4c38a8392d 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
* ArrayList.cs:
	* BitArray.cs:
	* CaseInsensitiveComparer.cs:
	* CaseInsensitiveHashCodeProvider.cs:
	* IEnumerable.cs:
	* Queue.cs: misc. fixes based on class status page.

svn path=/trunk/mcs/; revision=7002
2002-08-24 17:52:23 +00:00
Gonzalo Paniagua Javier 851bbb86ad 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
* ASCIIEncoding.cs:
	* Decoder.cs:
	* Encoder.cs:
	* Encoding.cs:
	* UTF7Encoding.cs:
	* UTF8Encoding.cs:
	* UnicodeEncoding.cs: added Serializable attribute.

svn path=/trunk/mcs/; revision=7001
2002-08-24 17:49:22 +00:00
Gonzalo Paniagua Javier 8df6fef700 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
* StringBuilder.cs: improved performace by using String.InternalCopyTo
	instead of using ToCharArray all over the place (more that 50% of
	speed improvement when using Append).

svn path=/trunk/mcs/; revision=7000
2002-08-24 17:46:16 +00:00
Martin Baulig 56d9f7cfdc 2002-08-24 Martin Baulig <[email protected]>
* debug.c (mono_debug_write_symbols): Added support for the new
	debugging format.

svn path=/trunk/mono/; revision=6999
2002-08-24 17:29:56 +00:00
Martin Baulig 955251d0a3 2002-08-24 Martin Baulig <[email protected]>
* rawbuffer.c (mono_raw_buffer_load): Added `int is_shared'
	argument.  This is a flag which specifies whether we do a private
	copy-on-write mapping even when a writable mapping was requested.

	* debug-mono-symfile.c (mono_debug_update_mono_symbol_file): New
	function to update the symbol file.  The symbol file is mmap()ed
	writable, but private.  This allows us to install the symbol file
	together with the assembly.

svn path=/trunk/mono/; revision=6998
2002-08-24 17:29:06 +00:00
Gonzalo Paniagua Javier 67576cf33d Removed. It's almost the same as InternalCopyTo in string-icalls.c
svn path=/trunk/mono/; revision=6997
2002-08-24 16:48:44 +00:00
Gonzalo Paniagua Javier e822f0183a 2002-08-24 Gonzalo Paniagua Javier <[email protected]>
* icall.c: added ves_icall_StringBuilder_CopyChars.

svn path=/trunk/mono/; revision=6996
2002-08-24 16:17:09 +00:00
Martin Baulig 296030ce22 Added docu about the new mono' debugging format and removed dwarf-plus' since I'm about to remove this.
svn path=/trunk/mono/; revision=6995
2002-08-24 16:04:31 +00:00
Martin Baulig 4924193d17 2002-08-24 Martin Baulig <[email protected]>
* mono.c (main): The `--debug' argument now knows about a new
	debugging format `mono' which will be used to display source lines
	in backtraces.

	* debug.h (MonoDebugFormat): Added a new MONO_DEBUG_FORMAT_MONO
	which will be used when displaying backtraces.  It reads a new
	binary symbol file.

svn path=/trunk/mono/; revision=6994
2002-08-24 16:03:19 +00:00
Martin Baulig 589c754cf8 2002-08-24 Martin Baulig <[email protected]>
* debug-mono-symfile.[ch]: New files.  Similar to debug-symfile.[ch]
	but they can read the new symbol file format which mcs is now creating.

	* debug-symfile.c (mono_debug_find_source_location): Moved to
	debug-mono-symfile.c; this is now operating on the new symbol file.

svn path=/trunk/mono/; revision=6993
2002-08-24 16:02:31 +00:00
Martin Baulig 0ab5f8b4da 2002-08-24 Martin Baulig <[email protected]>
* codegen.cs (CodeGen.InitMonoSymbolWriter): The symbol file is
	now called proggie.dbg and it's a binary file.

svn path=/trunk/mcs/; revision=6992
2002-08-24 15:57:45 +00:00
Martin Baulig 0f999df09c 2002-08-24 Martin Baulig <[email protected]>
* MonoSymbolTable.cs, MonoSymbolTableWriter.cs: New files.  This
	creates a binary application.dbg file which will be used by the
	JIT to display source lines for exceptions.

	* list.unix: Disabled the dwarf file writer in the build.

svn path=/trunk/mcs/; revision=6991
2002-08-24 15:54:44 +00:00
Dietmar Maurer 2634b55731 more tcp channel code, renamed soap namespace to Soap
svn path=/trunk/mcs/; revision=6990
2002-08-24 10:39:22 +00:00
Tim Coleman 2255211cb9 2002-08-23 Tim Coleman <[email protected]>
* list:
                New files added to build.

svn path=/trunk/mcs/; revision=6987
2002-08-24 04:17:14 +00:00
Tim Coleman 60f5e9158d 002-08-23 Tim Coleman <[email protected]>
* ServerProtocol.cs:
        * SoapServerProtocol.cs:
                More cleanup, comparison with class status.
        * WebServiceHandler.cs:
        * HttpServerProtocol.cs:
                New stubs added.

svn path=/trunk/mcs/; revision=6986
2002-08-24 04:16:30 +00:00
Miguel de Icaza affbd09104 Flush
svn path=/trunk/mono/; revision=6985
2002-08-24 00:53:06 +00:00
Miguel de Icaza 736b3c4147 Add
svn path=/trunk/mcs/; revision=6984
2002-08-24 00:49:12 +00:00
Miguel de Icaza c3bad0708e Flush
svn path=/trunk/mono/; revision=6983
2002-08-24 00:34:40 +00:00
Miguel de Icaza 73651b5b2a Fix
svn path=/trunk/mono/; revision=6982
2002-08-23 23:52:51 +00:00
Miguel de Icaza b30b11435b Prepare for 0.15
svn path=/trunk/mono/; revision=6981
2002-08-23 23:36:10 +00:00
Miguel de Icaza 6f8509ece5 For now, get _REENTRANT defined, we should use the Sleepycat mechanism later
svn path=/trunk/mono/; revision=6979
2002-08-23 22:47:09 +00:00
Miguel de Icaza bdb0cea332 remove spec
svn path=/trunk/mcs/; revision=6976
2002-08-23 20:06:01 +00:00
Martin Baulig 6cd8fed06e Make this actually work.
svn path=/trunk/mcs/; revision=6973
2002-08-23 19:45:54 +00:00
Martin Baulig e2f0145377 2002-08-23 Martin Baulig <[email protected]>
* jit.c (match_debug_method): Don't include runtime invoke methods
	in the search.

svn path=/trunk/mono/; revision=6972
2002-08-23 19:44:55 +00:00
Martin Baulig 11be232e56 You can now use `--break Main' to insert a breakpoint on the application's
main method.

svn path=/trunk/mono/; revision=6971
2002-08-23 19:29:46 +00:00
Martin Baulig fcaff569a5 2002-08-23 Martin Baulig <[email protected]>
* mono.c (main): Accept `Main' as argument to --break to insert a
	breakpoint on the application's main method.

svn path=/trunk/mono/; revision=6970
2002-08-23 19:29:16 +00:00
Martin Baulig fca4a88c75 2002-08-23 Martin Baulig <[email protected]>
* debug-helpers.c (mono_method_desc_from_method): New function to get
	a MonoMethodDesc from a MonoMethod.

svn path=/trunk/mono/; revision=6969
2002-08-23 19:28:31 +00:00
Martin Baulig 45e37eacb8 2002-08-23 Martin Baulig <[email protected]>
* decl.cs (MemberCache.AddMethods): Ignore varargs methods.

svn path=/trunk/mcs/; revision=6968
2002-08-23 18:53:25 +00:00
Miguel de Icaza cd394ccd36 Add monoresgen to the build
svn path=/trunk/mcs/; revision=6967
2002-08-23 18:49:12 +00:00
Martin Baulig 709db5d5f8 2002-08-23 Martin Baulig <[email protected]>
* struct.cs (MyStructInfo.ctor): Make this work with empty
	structs; it's not allowed to use foreach() on null.

svn path=/trunk/mcs/; revision=6966
2002-08-23 18:27:45 +00:00
Martin Baulig f991383273 2002-08-23 Martin Baulig <[email protected]>
* codegen.cs (CodeGen.InitMonoSymbolWriter): Tell the symbol
	writer the full pathname of the generated assembly.

svn path=/trunk/mcs/; revision=6965
2002-08-23 18:17:41 +00:00
Martin Baulig c976f20047 2002-08-23 Martin Baulig <[email protected]>
* MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Added
	assembly name argument.  Since the symbol writer needs to read the
	final assembly, we need to give it its full pathname.

svn path=/trunk/mcs/; revision=6964
2002-08-23 18:16:32 +00:00
Miguel de Icaza 1d8e204102 It works just as fine
svn path=/trunk/mcs/; revision=6963
2002-08-23 17:53:38 +00:00
Paolo Molaro 22803f39c3 Debugging support in mcs.
svn path=/trunk/mono/; revision=6962
2002-08-23 17:53:08 +00:00
Martin Baulig b5a338749b 2002-08-23 Martin Baulig <[email protected]>
* class/makefile.gnu: Add class/Mono.CSharp.Debugger to the build.

svn path=/trunk/mcs/; revision=6961
2002-08-23 17:52:54 +00:00
Martin Baulig bf83a12174 2002-08-23 Martin Baulig <[email protected]>
* makefile.gnu, list.unix: Added.

svn path=/trunk/mcs/; revision=6960
2002-08-23 17:51:46 +00:00
Paolo Molaro d40b1d1609 Make sure we include all the assemblies in a release.
svn path=/trunk/mono/; revision=6959
2002-08-23 17:48:35 +00:00
Martin Baulig 283f8c047e Added one more testcase to this test.
svn path=/trunk/mcs/; revision=6958
2002-08-23 17:37:07 +00:00
Martin Baulig cb9a938821 2002-08-23 Martin Baulig <[email protected]>
* statements.cs (FlowBranching.UsageVector.MergeChildren):
	A `finally' block never returns or breaks; improved handling of
	unreachable code.

svn path=/trunk/mcs/; revision=6957
2002-08-23 17:36:41 +00:00
Paolo Molaro 526427e05b Included license in the source.
svn path=/trunk/mcs/; revision=6956
2002-08-23 17:21:06 +00:00
Gonzalo Paniagua Javier 2920d505fb 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* System/Double.cs: implemented TryParse.

	* System/Math.cs: PowImpl is now private.

	* System/MissingFieldException.cs: implemented Message.

	* System/RuntimeMethodHandle.cs: stubbed GetFunctionPointer.

	* System/_AppDomain.cs: Uncommented ToString.

	* System.IO/FileLoadException.cs: implemented ToString.

	* System.IO/StreamWriter.cs: added Null field and implemented
	Write (char) and Write (char []).

svn path=/trunk/mcs/; revision=6955
2002-08-23 16:56:08 +00:00
Martin Baulig 426dcfcabe 2002-08-23 Martin Baulig <[email protected]>
* statement.cs (Throw.Resolve): Allow `throw null'.

svn path=/trunk/mcs/; revision=6954
2002-08-23 15:41:35 +00:00
Martin Baulig 8e5efe2829 2002-08-23 Martin Baulig <[email protected]>
* expression.cs (MemberAccess.ResolveMemberAccess): If this is an
	EventExpr, don't do a DeclaredOnly MemberLookup, but check whether
	`ee.EventInfo.DeclaringType == ec.ContainerType'.  The
	MemberLookup would return a wrong event if this is an explicit
	interface implementation and the class has an event with the same
	name.

svn path=/trunk/mcs/; revision=6950
2002-08-23 15:31:58 +00:00
Martin Baulig ef88f0cf1a Reverted this for the moment, it's causing too many problems.
2002-08-12  Martin Baulig  <[email protected]>

	* attribute.cs (Attribute.Resolve): Call System.Enum.ToObject() on
	enum constants so that we encode the value with the enum type and
	not its underlying type.

svn path=/trunk/mcs/; revision=6949
2002-08-23 14:08:23 +00:00
Martin Baulig 9e0e7f8914 Ooops, forgot to commit this.
svn path=/trunk/mcs/; revision=6948
2002-08-23 14:07:29 +00:00
Paolo Molaro ef40482a9f Fri Aug 23 15:54:09 CEST 2002 Paolo Molaro <[email protected]>
* object.c: fixes assertion failure caused by multiple ExecuteAssembly
	calls for same domain (patch by Tomi Pakarinen <[email protected]>).

svn path=/trunk/mono/; revision=6947
2002-08-23 13:56:10 +00:00
Martin Baulig 5ea1c562e7 2002-08-23 Martin Baulig <[email protected]>
* attribute.cs (Attribute.Resolve): Don't call System.Enum.ToObject()
	on dynamic types since this is currently broken.

svn path=/trunk/mcs/; revision=6946
2002-08-23 13:45:31 +00:00
Martin Baulig 5216d74308 2002-08-23 Martin Baulig <[email protected]>
* statement.cs (Block.AddChildVariableNames): New public method.
	(Block.AddChildVariableName): Likewise.
	(Block.IsVariableNameUsedInChildBlock): Likewise.
	(Block.AddVariable): Check whether a variable name has already
	been used in a child block.

	* cs-parser.jay (declare_local_variables): Mark all variable names
	from the current block as being used in a child block in the
	implicit block.

svn path=/trunk/mcs/; revision=6945
2002-08-23 13:20:12 +00:00
Martin Baulig 9f5fce963b Updated the instructions a bit.
svn path=/trunk/mono/; revision=6944
2002-08-23 12:42:53 +00:00
Martin Baulig 3289aeecf0 2002-08-23 Martin Baulig <[email protected]>
* debug-dwarf2.c (dwarf2_write_class_field): Don't include any static fields.

svn path=/trunk/mono/; revision=6943
2002-08-23 12:40:36 +00:00
Martin Baulig 857ad5b9d5 2002-08-23 Martin Baulig <[email protected]>
* codegen.cs (CodeGen.InitializeSymbolWriter): Abort if we can't
	find the symbol writer.

svn path=/trunk/mcs/; revision=6942
2002-08-23 12:25:39 +00:00
Martin Baulig 9079686460 2002-08-23 Martin Baulig <[email protected]>
* driver.cs: csc also allows the arguments to /define being
	separated by commas, not only by semicolons.

svn path=/trunk/mcs/; revision=6941
2002-08-23 12:22:07 +00:00
Martin Baulig eff68aae47 This is the patch from bug #28562.
2002-08-12  Martin Baulig  <[email protected]>

	* attribute.cs (Attribute.Resolve): Call System.Enum.ToObject() on
	enum constants so that we encode the value with the enum type and
	not its underlying type.

svn path=/trunk/mcs/; revision=6940
2002-08-23 12:14:39 +00:00
Martin Baulig ed8437dd7a 2002-08-23 Martin Baulig <[email protected]>
* interface.cs (Interface.GetMembers): Added static check for events.

svn path=/trunk/mcs/; revision=6939
2002-08-23 12:08:31 +00:00
Martin Baulig dbecdf4f41 Use different return values for different error conditions.
svn path=/trunk/mcs/; revision=6936
2002-08-23 11:43:43 +00:00
Paolo Molaro a664a96d5e Fri Aug 23 12:14:45 CEST 2002 Paolo Molaro <[email protected]>
* string-icalls.[ch]: make helper methods static.

svn path=/trunk/mono/; revision=6935
2002-08-23 10:16:20 +00:00
Gonzalo Paniagua Javier a1d3678325 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* StreamReader.cs: implemented NullStreamReader.

svn path=/trunk/mcs/; revision=6934
2002-08-23 06:45:48 +00:00
Gonzalo Paniagua Javier eb97c76bed added )
svn path=/trunk/mcs/; revision=6933
2002-08-23 06:29:49 +00:00
Gonzalo Paniagua Javier 92046f55a8 added CompilerError.cs
svn path=/trunk/mcs/; revision=6932
2002-08-23 06:25:56 +00:00
Gonzalo Paniagua Javier 9a22266fe9 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* CompilerError.cs: implemented.
	* CompilerErrorCollection.cs: stubbed out and fix inheritance.
	* GeneratorSupport.cs: fixed values.

svn path=/trunk/mcs/; revision=6931
2002-08-23 06:24:31 +00:00
Gonzalo Paniagua Javier 3a87b353c4 fixed warning
svn path=/trunk/mcs/; revision=6930
2002-08-23 06:20:37 +00:00
Gonzalo Paniagua Javier f08d92fb2c 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* System.ComponentModel/BindableSupport.cs:
	* System.ComponentModel/Component.cs:
	* System.ComponentModel/EventDescriptorCollection.cs:
	* System.ComponentModel/ITypeDescriptorContext.cs:
	* System.ComponentModel/TypeConverter.cs:
	* System.ComponentModel/TypeDescriptor.cs:
	* System.Diagnostics/Process.cs: more class status based fixes.

	* System.ComponentModel/StringConverter.cs: implemented a couple of
	methods.

svn path=/trunk/mcs/; revision=6929
2002-08-23 05:37:58 +00:00
Gonzalo Paniagua Javier d5dcc5e01a 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* InternalBufferOverflowException.cs:
	* NotifyFilters.cs:
	* WatcherChangeTypes.cs: little fixes based on class status page.

svn path=/trunk/mcs/; revision=6928
2002-08-23 05:17:50 +00:00
Gonzalo Paniagua Javier 79edbd76d7 oops
svn path=/trunk/mcs/; revision=6927
2002-08-23 05:10:16 +00:00
Jason Diamond d0cd6199a5 Implementation and tests for XmlAttributeCollection.RemoveAll and XmlElement.RemoveAllAttributes courtesy of Matt Hunter <[email protected]>.
svn path=/trunk/mcs/; revision=6926
2002-08-23 05:09:53 +00:00
Gonzalo Paniagua Javier db0e7930ea 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* Type.cs:
	(IsValueTypeImpl): it's virtual, not abstract. Implemented.

svn path=/trunk/mcs/; revision=6925
2002-08-23 05:05:37 +00:00
Gonzalo Paniagua Javier e944fc091a 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* ArgumentException.cs: use the field instead of the property for
	param_name.

	* ArgumentOutOfRangeException.cs: modified Message.

	* DateTime.cs:
	(_DoParse): throw out of range exception for year. Removed check
	for month (it's done in the constructor).

svn path=/trunk/mcs/; revision=6924
2002-08-23 04:45:51 +00:00
Tim Coleman e2f62c9a84 *** empty log message ***
svn path=/trunk/mcs/; revision=6923
2002-08-23 03:46:58 +00:00
Tim Coleman 9a60dcf99b 2002-08-22 Tim Coleman <[email protected]>
* XmlSerializationReader.cs:
                Some implementation
        * XmlSerializationWriter.cs:
                More implementation
        * XmlCustomFormatter.cs:
                Implemented this class.

svn path=/trunk/mcs/; revision=6922
2002-08-23 03:46:44 +00:00
Miguel de Icaza dc63b8777c Flush
svn path=/trunk/mono/; revision=6921
2002-08-23 03:34:49 +00:00
Jason Diamond f9553b038a Correction to previous GetElementsByTagName patch courtesy of Matt Hunter <[email protected]>.
svn path=/trunk/mcs/; revision=6920
2002-08-23 03:26:57 +00:00
Gonzalo Paniagua Javier c987ba086d 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* icall.c: re-applied patch to GetValueInternal. Also added R4 and R8
	types to it and to SetValueInternal.

	* object.c: Moved handle_enum label to its proper place. This was the
	f... bug! ;-)

	This time i compiled mcs and gtk-sharp and they both work.

svn path=/trunk/mono/; revision=6919
2002-08-23 02:23:07 +00:00
Jaime Anguiano Olarra 7aa088230d Updated. Please, let me know how to install corlib.dll exactly so I can
add it.

svn path=/trunk/mono/; revision=6917
2002-08-23 01:06:58 +00:00
Gonzalo Paniagua Javier 5bdc541416 2002-08-23 Gonzalo Paniagua Javier <[email protected]>
* icall.c: reverted partially my previous patch until
	object.c:set_value handles enums correcly.

svn path=/trunk/mono/; revision=6916
2002-08-22 23:46:42 +00:00
Ravi Pratap M 5e9c839aa8 REvert changes - they were wrong
svn path=/trunk/mcs/; revision=6915
2002-08-22 23:28:30 +00:00
Ravi Pratap M 0fb81cd38b 2002-08-22 Ravi Pratap <[email protected]>
* XmlElement.cs : Implement the Value property.

svn path=/trunk/mcs/; revision=6913
2002-08-22 23:06:38 +00:00
Miguel de Icaza 1e1584a596 Flush
svn path=/trunk/mono/; revision=6911
2002-08-22 21:43:38 +00:00
Gonzalo Paniagua Javier d4a63fe1ba 2002-08-22 Gonzalo Paniagua Javier <[email protected]>
* icall.c:
	(ves_icall_MonoField_GetValue): changed to use mono_field_get_value.
	(ves_icall_System_Environment_get_MachineName): removed warning when
	compiling under cygwin.

svn path=/trunk/mono/; revision=6902
2002-08-22 19:38:32 +00:00
Gonzalo Paniagua Javier ed5dfb871d 2002-08-22 Gonzalo Paniagua Javier <[email protected]>
* MonoField.cs: GetValue renamed to GetValueInternal. Added check for
	null.

svn path=/trunk/mcs/; revision=6901
2002-08-22 19:38:12 +00:00
Paolo Molaro 702900d56c Thu Aug 22 18:49:11 CEST 2002 Paolo Molaro <[email protected]>
* object.c: fixed field_get_value() for reference types.

svn path=/trunk/mono/; revision=6899
2002-08-22 16:52:48 +00:00
Tim Coleman 3c36cfbe06 2002-08-22 Tim Coleman <[email protected]>
* list.unix:
                Add System.Xml.Serialization/XmlCustomFormatter.cs

svn path=/trunk/mcs/; revision=6898
2002-08-22 15:58:01 +00:00
Tim Coleman e9ad8331ab 2002-08-22 Tim Coleman <[email protected]>
* XmlSerializationWriter.cs:
                More implementation
        * XmlCustomFormatter.sc:
                Implemented this class.

svn path=/trunk/mcs/; revision=6897
2002-08-22 15:57:12 +00:00
Nick Drochak 1927c93e49 2002-08-23 Nick Drochak <[email protected]>
* IsVolatile.cs: No _public_ members, but if we don't put a private
	ctor, the complier will give us a public one.

svn path=/trunk/mcs/; revision=6896
2002-08-22 15:57:02 +00:00
Nick Drochak e2c8d7c638 2002-08-23 Nick Drochak <[email protected]>
* IsVolatile.cs: This class has no members, not even an empty ctor.

svn path=/trunk/mcs/; revision=6895
2002-08-22 15:08:45 +00:00
Nick Drochak 314b4cfd3d 2002-08-22 Nick Drochak <[email protected]>
* unix.args: removed obsolete PInvokeMap.cs

svn path=/trunk/mcs/; revision=6894
2002-08-22 15:03:38 +00:00
Nick Drochak 9d9d871fd5 2002-08-22 Nick Drochak <[email protected]>
* OutAttribute.cs: TypeID isn't overriden from Attribute here.
	* PInvokeMap.cs: Non-existent enum.  Must be from beta days.

svn path=/trunk/mcs/; revision=6893
2002-08-22 15:01:40 +00:00
Nick Drochak e36c7e7ab7 2002-08-22 Nick Drochak <[email protected]>
* OutAttribute.cs: TypeID isn't overriden from Attribute here.

svn path=/trunk/mcs/; revision=6892
2002-08-22 14:54:31 +00:00
Gonzalo Paniagua Javier 3bf01dba9c Removed BinaryArrayTypeEnum.cs. The file does not exist
svn path=/trunk/mcs/; revision=6891
2002-08-22 14:33:55 +00:00
Gonzalo Paniagua Javier f1829ef3ee Removed debugging stuff
svn path=/trunk/mcs/; revision=6890
2002-08-22 14:14:21 +00:00
Gonzalo Paniagua Javier 6a0775fc8e 2002-08-22 Gonzalo Paniagua Javier <[email protected]>
* LosFormatter.cs: almost fully implemented.

svn path=/trunk/mcs/; revision=6889
2002-08-22 14:12:14 +00:00
Nick Drochak 72ef48ba9e 2002-08-22 Nick Drochak <[email protected]>
* RemotingSurrogateSelector.cs (SetRootObject): Function should return
	void, not object.

svn path=/trunk/mcs/; revision=6888
2002-08-22 13:56:57 +00:00
Nick Drochak 353f7edbb1 2002-08-22 Nick Drochak <[email protected]>
* SoapFault.cs: Serialization ctr should be private

svn path=/trunk/mcs/; revision=6887
2002-08-22 13:51:15 +00:00
Nick Drochak b810eeffea 2002-08-22 Nick Drochak <[email protected]>
* BinaryArrayTypeEnum.cs: Removed Non-existent enum (must have been
	from beta days)

svn path=/trunk/mcs/; revision=6886
2002-08-22 13:42:50 +00:00
Jason Diamond 86ffcfbcd7 Added implementation of namepsace qualified GetElementsByTagName courtesy of
Matt Hunter <[email protected]>.

svn path=/trunk/mcs/; revision=6885
2002-08-22 13:11:55 +00:00
Dick Porter 2875f13d5a 2002-08-22 Dick Porter <[email protected]>
* socket-io.c (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal):
	Don't free a buffer while it's still needed.  Patch from Jonathan
	Liger <[email protected]>

svn path=/trunk/mono/; revision=6884
2002-08-22 08:49:27 +00:00
Daniel Morgan 175d7bd7d5 2002-08-22 Daniel Morgan <[email protected]>
* System.Data.SqlClient/SqlParameter.cs: flush

	* System.Data.SqlClient/SqlParameterCollection.cs: fixes
	for the Item property, IndexOf, and Contains.

	* Test/SqlSharpCli.cs: added input parameters support.
	when a query is executed, if a parameter name matches
	a SQL# internal variable name, it uses that value for the parameter; otherwise,
	the user is prompted for the parameter value.  Currently, it only supports
	string parameters.

svn path=/trunk/mcs/; revision=6883
2002-08-22 08:39:40 +00:00
Paolo Molaro 13149f5496 Ooops, forgot to commit this file.
svn path=/trunk/mcs/; revision=6882
2002-08-22 07:38:57 +00:00
John Sohn df4a123f90 fixes build
svn path=/trunk/mcs/; revision=6881
2002-08-22 02:38:03 +00:00
John Sohn 4a003c8789 updated build with latest mcs in cvs
svn path=/trunk/mcs/; revision=6880
2002-08-22 02:36:48 +00:00
Miguel de Icaza 9b0c3c66f4 Added spec file
svn path=/trunk/mcs/; revision=6879
2002-08-22 02:02:18 +00:00
Miguel de Icaza c7f770bb99 Add Makefile rule
svn path=/trunk/mono/; revision=6876
2002-08-22 01:38:53 +00:00
Miguel de Icaza 52197e5447 Add data dir
svn path=/trunk/mono/; revision=6875
2002-08-22 01:32:24 +00:00
Miguel de Icaza 997a654a60 Compile fix
svn path=/trunk/mcs/; revision=6874
2002-08-22 01:25:12 +00:00
Miguel de Icaza d7bab4c7ce Add missing file
svn path=/trunk/mcs/; revision=6873
2002-08-22 01:22:47 +00:00
Piers Haken ad69b1a164 Wed Aug 21 18:17:00 PDT 2002 Piers Haken <[email protected]>
* makefile.gnu: add '-f' flag for cleaning

svn path=/trunk/mcs/; revision=6872
2002-08-22 01:16:39 +00:00
Miguel de Icaza fa55b71247 Add missing files
svn path=/trunk/mono/; revision=6871
2002-08-22 01:04:10 +00:00
Rodrigo Moya db5abb3560 2002-08-21 Rodrigo Moya <[email protected]>
* System.Data.OleDb/libgda.cs: adapted to changes in libgda (get_vtype
	and get_type for GdaValue).

	* System.Data.OleDb/OleDbDataReader.cs: adapted to changes in
	libgda.cs.

svn path=/trunk/mcs/; revision=6870
2002-08-22 00:13:35 +00:00
Miguel de Icaza d120d26733 2002-08-21 Miguel de Icaza <[email protected]>
* icall.c (ves_icall_System_Environment_get_Platform): Add new
	internal call.

svn path=/trunk/mono/; revision=6869
2002-08-21 23:39:28 +00:00
Miguel de Icaza 8c50416580 2002-08-21 Miguel de Icaza <[email protected]>
* Environment.cs: Implemented OSVersion property.

2002-08-21  Miguel de Icaza  <[email protected]>

	* Path.cs (GetDirectoryName): Fix for filenames with size = 1

	* File.cs: Removed all references that threw exceptions when the
	paths contains a colon, as this is a valid part of an identifier
	on Unix.

	Everywhere: The String.Empty return from GetDirectoryName means
	that there is no directory information about the path.

svn path=/trunk/mcs/; revision=6868
2002-08-21 23:38:23 +00:00
Miguel de Icaza 36162c3ff7 Add throw exceptions where needed
svn path=/trunk/mcs/; revision=6867
2002-08-21 23:36:41 +00:00
Daniel Stodden f1c55b6dd0 OpCode overrides ToString to Name
svn path=/trunk/mcs/; revision=6865
2002-08-21 22:00:51 +00:00
Piers Haken 8a353fd00a Wed Aug 21 10:56:42 PDT 2002 Piers Haken <[email protected]>
* library.make: fix emtpy SOURCES_EXCLUDE rule bug

svn path=/trunk/mcs/; revision=6864
2002-08-21 19:56:39 +00:00
Paolo Molaro feee3a2d52 Wed Aug 21 20:02:04 CEST 2002 Paolo Molaro <[email protected]>
* *.cs: imported the code donated by Rhys Weatherley
	<[email protected]>.

svn path=/trunk/mcs/; revision=6863
2002-08-21 18:04:52 +00:00
Radek Doulik e3cd02888b fixed delegates
svn path=/trunk/mono/; revision=6862
2002-08-21 17:47:34 +00:00
Dietmar Maurer 0d10f00cee revert previous change
svn path=/trunk/mono/; revision=6861
2002-08-21 17:41:00 +00:00
Dietmar Maurer 5b0b17c749 call the binary formatter
svn path=/trunk/mcs/; revision=6860
2002-08-21 16:29:55 +00:00
Miguel de Icaza 7a8b26be63 Add mono.spec.in
svn path=/trunk/mono/; revision=6859
2002-08-21 15:50:21 +00:00
Dietmar Maurer 5dd69de71c 2002-08-21 Dietmar Maurer <[email protected]>
* icall.c (ves_icall_get_method_info): s/MonoMethod/MonoReflectionMethod/
	(ves_icall_get_parameter_info): s/MonoMethod/MonoReflectionMethod/

svn path=/trunk/mono/; revision=6858
2002-08-21 15:20:33 +00:00
Paolo Molaro 4b51e12ff0 Missing resource.
svn path=/trunk/mcs/; revision=6857
2002-08-21 13:44:41 +00:00
Paolo Molaro b367c60337 I18N build integration.
svn path=/trunk/mcs/; revision=6856
2002-08-21 13:41:25 +00:00
Paolo Molaro 5ce95244c0 Build integration.
svn path=/trunk/mcs/; revision=6855
2002-08-21 13:40:36 +00:00
Dietmar Maurer 10aeb580a6 2002-08-21 Dietmar Maurer <[email protected]>
* marshal.c (mono_marshal_get_remoting_invoke): save lmf, because
	we call unmanaged code which throws exceptions.

	* exception.c (arch_handle_exception): don't set stack_trace to
	null (so that it contains the full trace even when we rethrow the
	exception).

svn path=/trunk/mono/; revision=6854
2002-08-21 13:09:21 +00:00
Paolo Molaro 81641092ff Missing bit.
svn path=/trunk/mono/; revision=6853
2002-08-21 13:04:20 +00:00
Dietmar Maurer 6cde095dde 2002-08-21 Dietmar Maurer <[email protected]>
* Exception.cs: set stack_trace to null

	* tcp channel work

svn path=/trunk/mcs/; revision=6852
2002-08-21 13:03:59 +00:00
Paolo Molaro 9b887fa021 Wed Aug 21 13:03:25 CEST 2002 Paolo Molaro <[email protected]>
* Assembly.cs: GetEntryAssembly patch by Tomi Pakarinen
	<[email protected]>.

svn path=/trunk/mcs/; revision=6851
2002-08-21 11:04:50 +00:00
Paolo Molaro ce022e0ec8 Wed Aug 21 13:02:20 CEST 2002 Paolo Molaro <[email protected]>
* AppDomain.cs: implemented ToString().

svn path=/trunk/mcs/; revision=6850
2002-08-21 11:03:52 +00:00
Paolo Molaro d105e774c6 Wed Aug 21 12:56:49 CEST 2002 Paolo Molaro <[email protected]>
* appdomain.h: added per-domain entry_assembly.
	* appdomain.c: ensure mono_runtime_exec_main () gets non-null
	arguments.
	* icall.c: Assembly::GetEntryAssembly icall.
	* object.c: set domain->entry_assembly in mono_runtime_exec_main().
	Changes above from a patch by Tomi Pakarinen <[email protected]>.

svn path=/trunk/mono/; revision=6849
2002-08-21 11:02:07 +00:00
Paolo Molaro a5b993a0aa Readme for mono hackers.
svn path=/trunk/mcs/; revision=6848
2002-08-21 10:17:12 +00:00
Rodrigo Moya 791abbc22e 2002-08-20 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (DataReader): new internal
	property.
	(Close): set the dataReader to null.

	* System.Data.OleDb/OleDbDataReader.cs (OleDbDataReader): set the
	connection's DataReader property to this object.
	(Close): set it to null here.
	(Depth, IsDbNull): implemented.
	(this): implemented the Item property with a string indexer.

	* System.Data.OleDb/OleDbCommand.cs (ExecuteNonQuery, ExecuteReader,
	ExecuteScalar): do nothing if there's already an open data reader.

	* System.Data.OleDb/libgda.cs: more API functions.

	* System.Data.OleDb/TestOleDb.cs (TestDataReader): close the data
	reader before continuing.

svn path=/trunk/mcs/; revision=6847
2002-08-21 10:09:22 +00:00
Paolo Molaro 5a04c908e9 Initial revision
svn path=/trunk/mcs/; revision=6843
2002-08-21 10:08:33 +00:00
John Sohn 44a50a66fd now compliant with changes in Win32.cs
svn path=/trunk/mcs/; revision=6842
2002-08-21 07:25:37 +00:00
Miguel de Icaza ac7690b850 Flush updates
svn path=/trunk/mono/; revision=6841
2002-08-21 05:53:57 +00:00
Miguel de Icaza 2a8d4abd6c Update docs
svn path=/trunk/mono/; revision=6840
2002-08-21 03:04:13 +00:00
Tim Coleman bfd8355ba8 2002-08-20 Tim Coleman <[email protected]>
* XmlSerializationWriter.cs:
                Some implementation.

svn path=/trunk/mcs/; revision=6839
2002-08-21 02:58:34 +00:00
Miguel de Icaza e5cfbdb163 2002-08-20 Miguel de Icaza <[email protected]>
* skeleton.cs: Fix the code that expanded the arrays dynamically,
	it was broken, and instead was copying 0 elements.

svn path=/trunk/mcs/; revision=6838
2002-08-21 02:28:30 +00:00
John Sohn 4f6bd9f829 Fixes to Win32 API calls. Provided by Dennis Hayes ([email protected])
Fixed build on mcs later than 0.13

svn path=/trunk/mcs/; revision=6837
2002-08-21 00:58:25 +00:00
Franklin Wise dbf202391b Cleaned up DataTable so I could start implementing it. Added a Test file
for DataTable and implemented much of the default ctor behavoir.  Also added
nowarn:0679 to the System.Data.build file.

svn path=/trunk/mcs/; revision=6834
2002-08-21 00:04:38 +00:00
Martin Baulig 0e89a8a3bb 2002-08-15 Martin Baulig <[email protected]>
* class.cs (MethodData.EmitDestructor): In the Expression.MemberLookup
	call, use ec.ContainerType.BaseType as queried_type and invocation_type.

	* ecore.cs (Expression.MemberLookup): Added documentation and explained
	why the MethodData.EmitDestructor() change was necessary.

svn path=/trunk/mcs/; revision=6832
2002-08-20 22:29:24 +00:00
Martin Baulig 6b0b907592 Ooops, that was the wrong version. Reverted the last change and committed the
correct one.
2002-08-20  Martin Baulig  <[email protected]>

	* class.cs (TypeContainer.FindMembers): Added static check for events.

	* decl.cs (MemberCache.AddMembers): Handle events like normal members.

	* typemanager.cs (TypeHandle.GetMembers): When queried for events only,
	use Type.GetEvents(), not Type.FindMembers().

svn path=/trunk/mcs/; revision=6831
2002-08-20 21:44:04 +00:00
Martin Baulig 32d7586359 2002-08-20 Martin Baulig <[email protected]>
* class.cs (TypeContainer.FindMembers): Always return public events,
	even if only queried for non-public ones.

	* decl.cs (MemberCache.GetEntryType): Set the flags correctly for
	nested types and events.

svn path=/trunk/mcs/; revision=6830
2002-08-20 21:11:03 +00:00
Martin Baulig dd7e30e170 2002-08-20 Martin Baulig <[email protected]>
* decl.cs (MemberCache): Added a special method cache which will
	be used for method-only searched.  This ensures that a method
	search will return a MethodInfo with the correct ReflectedType for
	inherited methods.

svn path=/trunk/mcs/; revision=6819
2002-08-20 19:58:13 +00:00
Gonzalo Paniagua Javier 2fc191f4f1 added System.Runtime.Remoting
svn path=/trunk/mcs/; revision=6817
2002-08-20 18:26:03 +00:00
Gonzalo Paniagua Javier 79e1893a20 Fixes
svn path=/trunk/mcs/; revision=6816
2002-08-20 18:25:37 +00:00
Paolo Molaro 9bc542c66c Doh.
svn path=/trunk/mono/; revision=6815
2002-08-20 17:59:05 +00:00
Jaime Anguiano Olarra f8a5badd66 Links updated.
svn path=/trunk/mono/; revision=6814
2002-08-20 16:40:54 +00:00
Jaime Anguiano Olarra 7686b30faf Added a new section Mono Common Problems. Links to Mono Common Problems :)
svn path=/trunk/mono/; revision=6813
2002-08-20 15:27:46 +00:00
Mark Crichton 015354d526 This nearly completes SPARC trampoline support for mint/mono. The delegate
code still needs some work.

There are bugs.  Send crash reports, as well as .cs code and exe's to
[email protected]

Also, if anyone gets Bus Errors in the code, let me know as well, I've been
hunting down alignment bugs as well.

svn path=/trunk/mono/; revision=6812
2002-08-20 15:03:07 +00:00
Martin Baulig 64cba5995a 2002-08-20 Martin Baulig <[email protected]>
* report.cs (Report.Warning): Added overloaded versions which take
	a warning level argument and do the warning level check.

	* decl.cs (MemberCore.CheckMethodAgainstBase): When reporting a
	warning CS0108 or CS0144, add Modifiers.NEW to the ModFlags.

svn path=/trunk/mcs/; revision=6811
2002-08-20 14:02:35 +00:00
Gonzalo Paniagua Javier 9e4839bee4 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* System.Runtime.Remoting/makefile.gnu:
	* System.Runtime.Remoting/unix.args: new files.

	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/ChangeLog:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/CommonTransportKeys.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs:
	* System.Runtime.Remoting/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs:

	Move files from corlib.dll to System.Runtime.Remoting.dll.

svn path=/trunk/mcs/; revision=6810
2002-08-20 14:00:04 +00:00
Gonzalo Paniagua Javier 8a3f91bf2b 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* System.Runtime.Remoting.Channels/SynchronizationAttribute.cs: this
	is already in System.EnterpriseServices.dll.

	* corlib/System.Runtime.Remoting.Channels/BinaryClientFormatterSink.cs
	* corlib/System.Runtime.Remoting.Channels/BinaryClientFormatterSinkProvider.cs
	* corlib/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs
	* corlib/System.Runtime.Remoting.Channels/BinaryServerFormatterSinkProvider.cs
	* corlib/System.Runtime.Remoting.Channels/CommonTransportKeys.cs
	* corlib/System.Runtime.Remoting.Channels/SoapClientFormatterSink.cs
	* corlib/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs
	* corlib/System.Runtime.Remoting.Channels/SoapServerFormatterSinkProvider.cs:
	* corlib/unix.args:

	Move files from corlib.dll to System.Runtime.Remoting.dll.

svn path=/trunk/mcs/; revision=6809
2002-08-20 13:59:19 +00:00
Dick Porter fa33bf99de 2002-08-20 Dick Porter <[email protected]>
* Socket.cs: Fix deadlock when the AsyncResult callback calls
	End*().  Set the async request's worker property so it can return
	results.  These two fixes combined fix bug 28092.

svn path=/trunk/mcs/; revision=6808
2002-08-20 13:48:15 +00:00
Paolo Molaro d945b27f76 Tue Aug 20 15:42:15 CEST 2002 Paolo Molaro <[email protected]>
* appdomain.h, gc.c: added mono_domain_finalize ().

svn path=/trunk/mono/; revision=6807
2002-08-20 13:43:36 +00:00
Paolo Molaro 0cca56c00a Tue Aug 20 15:15:52 CEST 2002 Paolo Molaro <[email protected]>
* configure.in: patch by [email protected] (Daniel Resare)
	to error out if bison is missing.

svn path=/trunk/mono/; revision=6806
2002-08-20 13:17:31 +00:00
Paolo Molaro b931f5eb8a Patch by [email protected] (Daniel Resare) to allow running
mcs with any runtime.

svn path=/trunk/mcs/; revision=6805
2002-08-20 13:12:58 +00:00
Dietmar Maurer a770df5bbb removed TcpChannel
svn path=/trunk/mcs/; revision=6804
2002-08-20 12:57:06 +00:00
Martin Baulig 46509c3965 2002-08-20 Martin Baulig <[email protected]>
* decl.cs (DeclSpace.FindMembers): Made this public.

svn path=/trunk/mcs/; revision=6803
2002-08-20 12:30:46 +00:00
Dick Porter 2644c65119 2002-08-20 Dick Porter <[email protected]>
* handles.c (_wapi_handle_scratch_store): Made stored byte lengths
	multiples of 4 bytes, to keep header structures aligned.  Needed
	for sparc, at least. (Patch from [email protected])

	* handles.c: Removed 'disable_shm' variable (we've defaulted to
	building with shm enabled for months now)

svn path=/trunk/mono/; revision=6802
2002-08-20 11:09:25 +00:00
Paolo Molaro d7d1bdeae6 Removed some crap and added more detailed responses in some cases.
svn path=/trunk/mono/; revision=6801
2002-08-20 10:44:08 +00:00
Dietmar Maurer a5d8bd1877 added missing file
svn path=/trunk/mcs/; revision=6800
2002-08-20 09:36:07 +00:00
Dietmar Maurer 3f86e025da added missing files
svn path=/trunk/mcs/; revision=6799
2002-08-20 09:29:52 +00:00
Dietmar Maurer 0c24279edc created an new assembly System.Runtime.Remoting
svn path=/trunk/mcs/; revision=6798
2002-08-20 09:19:57 +00:00
Gonzalo Paniagua Javier 1326fba1d3 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* delegate.cs: fixed build on windows.
	[FIXME:  Filed as bug #29150: MCS must report these errors.]

svn path=/trunk/mcs/; revision=6797
2002-08-20 05:37:48 +00:00
Tim Coleman e7c88b9637 2002-08-20 Tim Coleman <[email protected]>
* ServiceDescription.cs:
                Add ServiceDescription.ServiceDescriptionSerializer
                class.

svn path=/trunk/mcs/; revision=6796
2002-08-20 05:37:05 +00:00
Tim Coleman ca92430343 *** empty log message ***
svn path=/trunk/mcs/; revision=6795
2002-08-20 05:25:39 +00:00
Tim Coleman 22b62ac688 *** empty log message ***
svn path=/trunk/mcs/; revision=6794
2002-08-20 05:24:18 +00:00
Tim Coleman 791d861bfa Fix minor typo.
svn path=/trunk/mcs/; revision=6793
2002-08-20 05:22:59 +00:00
Tim Coleman 5bd928561f 2002-08-19 Tim Coleman <[email protected]>
* XmlSerializer.cs:
                New stubs added.
        * XmlSerializationWriter.cs:
                New stubs added.

svn path=/trunk/mcs/; revision=6792
2002-08-20 05:19:02 +00:00
Tim Coleman 9a67faf73e 2002-08-19 Tim Coleman <[email protected]>
* list.unix:
                Add System.Xml.Serialization/XmlSerializationWriter.cs

svn path=/trunk/mcs/; revision=6791
2002-08-20 04:52:05 +00:00
Tim Coleman 4079d896fb 2002-08-19 Tim Coleman <[email protected]>
* XmlSerializationWriter.cs:
                New stubs added.

svn path=/trunk/mcs/; revision=6790
2002-08-20 04:50:57 +00:00
Tim Coleman bf52f76c24 2002-08-20 Tim Coleman <[email protected]>
* ServiceDescriptionFormatExtensionCollection.cs:
                Remove reference to "parent".

svn path=/trunk/mcs/; revision=6789
2002-08-20 03:59:33 +00:00
Jason Diamond afa895fbfd Added implementation of and tests for GetElementsByTagName courtesy of Matt Hunter <[email protected]>.
svn path=/trunk/mcs/; revision=6788
2002-08-20 03:56:55 +00:00
Tim Coleman 0249778934 2002-08-19 Tim Coleman <[email protected]>
* DiscoveryClientProtocol.cs:
                Added ResolveAll () stub.
        * DiscoveryDocument.cs:
                Added XmlRoot attribute to class.
        * DiscoveryClientDocumentCollection.cs:
        * DiscoveryClientReferenceCollection.cs:
        * DiscoveryClientResultCollection.cs:
        * DiscoveryReferenceCollection.cs:
                Implementation of these classes.

svn path=/trunk/mcs/; revision=6787
2002-08-20 03:31:34 +00:00
Ravi Pratap M fc22b0d380 Update
svn path=/trunk/mcs/; revision=6786
2002-08-20 03:28:13 +00:00
Ravi Pratap M ed2785c27d 2002-08-19 Ravi Pratap <[email protected]>
* error-5.cs : New test.

svn path=/trunk/mcs/; revision=6785
2002-08-20 03:25:54 +00:00
Ravi Pratap M 272f39cdad 2002-08-19 Ravi Pratap <[email protected]>
* delegate.cs (DelegateInvocation.DoResolve): Ensure that
	we flag error 70 in the event an event is trying to be accessed
	directly from outside the declaring type.

svn path=/trunk/mcs/; revision=6784
2002-08-20 03:24:42 +00:00
Gonzalo Paniagua Javier 8265c6441f 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHost.cs: use Assembly instead of Module.

svn path=/trunk/mcs/; revision=6783
2002-08-20 03:12:36 +00:00
Gonzalo Paniagua Javier f3a7ced97e 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* Assembly.cs: FullName now returns a proper string instead of
	something like 'file://...'.

	* AssemblyName.cs: added missing ToString method.

svn path=/trunk/mcs/; revision=6782
2002-08-20 03:07:28 +00:00
Gonzalo Paniagua Javier defe0dc9e5 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: securityInfo can be null in CreateDomain.

svn path=/trunk/mcs/; revision=6781
2002-08-20 03:04:18 +00:00
Gonzalo Paniagua Javier b520de41c5 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* AllTests.cs: added FormatterServicesTests.
	* FormatterServicesTests.cs: New file.

svn path=/trunk/mcs/; revision=6780
2002-08-20 03:01:57 +00:00
Tim Coleman 4415bf809e 2002-08-19 Tim Coleman <[email protected]>
* WebService.cs:
                Change the attribute on Application to Description
                instead of WebServicesDescription.2002-08-19  Tim Coleman

svn path=/trunk/mcs/; revision=6779
2002-08-20 02:54:59 +00:00
Gonzalo Paniagua Javier bd354cd2a0 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* FileNotFoundException.cs: use Message and InnerException from base
	class. Changed Message and ToString ().

svn path=/trunk/mcs/; revision=6778
2002-08-20 02:29:19 +00:00
Gonzalo Paniagua Javier 33b1284563 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* object.c:
	(mono_print_unhandled_exception): changed g_warning by g_printerr
	because g_log has a 1024 characters limit (yeah, i got a big stack
	trace). Don't print exception name, that should be in ToString
	returned string.

svn path=/trunk/mono/; revision=6777
2002-08-20 02:24:46 +00:00
Tim Coleman 1de41a28ca 002-08-19 Tim Coleman <[email protected]>
* BindingCollection.cs:
                Use base constructor, remove SetParent call
        * FaultBindingCollection.cs:
        * ImportCollection.cs:
        * MessageCollection.cs:
        * MessagePartCollection.cs:
        * OperationBindingCollection.cs:
        * OperationCollection.cs:
        * OperationFaultCollection.cs:
        * PortCollection.cs:
        * PortTypeCollection.cs:
        * ServiceCollection.cs:
        * ServiceDescriptionFormatExtensionCollection.cs:
                Use base constructor
        * ServiceDescriptionCollection.cs:
                Use base constructor, Remove SetParent method
        * ServiceDescriptionBaseCollection.cs:
                Make parent object private as according to
                class status page.
        * OperationMessageCollection.cs:
                Use base constructor
                Remove excess break's to avoid compiler warning
                Remove TODO attribute (confirmed default retval)

svn path=/trunk/mcs/; revision=6776
2002-08-20 01:07:48 +00:00
Rodrigo Moya 1b48801db8 2002-08-19 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbSchemaGuid.cs: initialize static members.

svn path=/trunk/mcs/; revision=6775
2002-08-20 01:00:30 +00:00
Franklin Wise 1bdd1ab34b More validation. Mostly to the point now where I need to work on DataTable
to implement the actual constraints.

svn path=/trunk/mcs/; revision=6774
2002-08-20 00:51:09 +00:00
Ravi Pratap M f928cb0cda 2002-08-19 Ravi Pratap <[email protected]>
* error-4.cs : New test.

svn path=/trunk/mcs/; revision=6773
2002-08-20 00:10:52 +00:00
Ravi Pratap M 843eaac33a 2002-08-19 Ravi Pratap <[email protected]>
* ecore.cs (StandardConversionExists): Return a false
	if we are trying to convert the void type to anything else
	since that is not allowed.

svn path=/trunk/mcs/; revision=6772
2002-08-20 00:01:23 +00:00
Rodrigo Moya a110b9a863 Added info about new advances
svn path=/trunk/mono/; revision=6771
2002-08-19 23:14:24 +00:00
Martin Baulig 111ff55362 Make this work with events.
svn path=/trunk/mcs/; revision=6770
2002-08-19 22:55:09 +00:00
Martin Baulig 99527b60f7 2002-08-20 Martin Baulig <[email protected]>
* typemanager.cs, decl.cs: Moved MemberList, IMemberContainer and
	MemberCache from typemanager.cs to decl.cs.

svn path=/trunk/mcs/; revision=6769
2002-08-19 22:41:52 +00:00
Martin Baulig 9597e13153 Ooops, actually enable the cache.
svn path=/trunk/mcs/; revision=6768
2002-08-19 22:33:28 +00:00
Miguel de Icaza d434be130a Lock around critical data structures, patch from Jaroslaw Kowalski <[email protected]>
svn path=/trunk/mcs/; revision=6767
2002-08-19 22:07:20 +00:00
Martin Baulig 8b0455b109 2002-08-19 Martin Baulig <[email protected]>
* class.cs (TypeContainer): Implement IMemberContainer.
	(TypeContainer.DefineMembers): Create the MemberCache.
	(TypeContainer.FindMembers): Do better BindingFlags checking; only
	return public members if BindingFlags.Public was given, check
	whether members are static.

svn path=/trunk/mcs/; revision=6766
2002-08-19 22:00:34 +00:00
Martin Baulig 34885e320e Added some more documentation.
svn path=/trunk/mcs/; revision=6765
2002-08-19 21:55:30 +00:00
Martin Baulig d43ab974ad 2002-08-16 Martin Baulig <[email protected]>
* decl.cs (DeclSpace.Define): Splitted this in Define and
	DefineMembers.  DefineMembers is called first and initializes the
	MemberCache.

	* rootcontext.cs (RootContext.DefineMembers): New function.  Calls
	DefineMembers() on all our DeclSpaces.

	* class.cs (TypeContainer.Define): Moved all code to DefineMembers(),
	but call DefineMembers() on all nested interfaces.  We call their
	Define() in our new Define() function.

	* interface.cs (Interface): Implement IMemberContainer.
	(Interface.Define): Moved all code except the attribute stuf to
	DefineMembers().
	(Interface.DefineMembers): Initialize the member cache.

	* typemanager.cs (IMemberFinder): Removed this interface, we don't
	need this anymore since we can use MemberCache.FindMembers directly.

svn path=/trunk/mcs/; revision=6764
2002-08-19 21:36:33 +00:00
Martin Baulig f47d7b306e 2002-08-19 Martin Baulig <[email protected]>
* typemanager.cs (MemberCache): When creating the cache for an
	interface type, add all inherited members.
	(TypeManager.MemberLookup_FindMembers): Changed `ref bool searching'
	to `out bool used_cache' and documented it.
	(TypeManager.MemberLookup): If we already used the cache in the first
	iteration, we don't need to do the interfaces check.

svn path=/trunk/mcs/; revision=6763
2002-08-19 20:39:38 +00:00
Jaime Anguiano Olarra ba2bf46a3e Web makefile updated (mono-beginning-windows erased)
svn path=/trunk/mono/; revision=6762
2002-08-19 20:10:20 +00:00
Jaime Anguiano Olarra 83021387c7 Fixed one link
svn path=/trunk/mono/; revision=6761
2002-08-19 20:08:11 +00:00
Jaime Anguiano Olarra 323cc1f9cd Updated links
svn path=/trunk/mono/; revision=6760
2002-08-19 20:01:25 +00:00
Miguel de Icaza 0e89fce591 remove debuging
svn path=/trunk/mono/; revision=6759
2002-08-19 19:49:38 +00:00
Dick Porter d1246cf607 2002-08-19 Dick Porter <[email protected]>
* daemon.c: Rewrote the poll() loop to use GIOChannels instead,
	for legacy NeXT-based systems.

svn path=/trunk/mono/; revision=6758
2002-08-19 17:34:06 +00:00
Martin Baulig a879634218 Added some more documentation.
svn path=/trunk/mcs/; revision=6757
2002-08-19 16:07:37 +00:00
Rodrigo Moya 06e8478883 Added new file
svn path=/trunk/mcs/; revision=6756
2002-08-19 15:55:42 +00:00
Rodrigo Moya dfe239bd47 2002-08-14 Rodrigo Moya <[email protected]>
* TcpChannel.cs: new classes.

svn path=/trunk/mcs/; revision=6755
2002-08-19 15:54:59 +00:00
Martin Baulig 1e1ee95270 2002-08-19 Martin Baulig <[email protected]>
* decl.cs (DeclSpace.FindMembers): New abstract method.  Moved this
	here from IMemberFinder and don't implement this interface anymore.
	(DeclSpace.MemberCache): Moved here from IMemberFinder.

	* typemanager.cs (IMemberFinder): This interface is now only used by
	classes which actually support the member cache.
	(TypeManager.builder_to_member_finder): Renamed to builder_to_declspace
	since we only put DeclSpaces into this Hashtable.
	(MemberLookup_FindMembers): Use `builder_to_declspace' if the type is
	a dynamic type and TypeHandle.GetTypeHandle() otherwise.

svn path=/trunk/mcs/; revision=6754
2002-08-19 15:37:22 +00:00
Martin Baulig 591b660e93 2002-08-16 Martin Baulig <[email protected]>
* typemanager.cs (ICachingMemberFinder): Removed.
	(IMemberFinder.MemberCache): New property.
	(TypeManager.FindMembers): Merged this with RealFindMembers().
	This function will never be called from TypeManager.MemberLookup()
	so we can't use the cache here, just the IMemberFinder.
	(TypeManager.MemberLookup_FindMembers): Check whether the
	IMemberFinder has a MemberCache and call the cache's FindMembers
	function.
	(MemberCache): Rewrote larger parts of this yet another time and
	cleaned it up a bit.

svn path=/trunk/mcs/; revision=6753
2002-08-19 14:21:11 +00:00
Daniel Stodden 81991d6258 Delegate.Equals in insensitive w/ regards to the exact Type of the operand itself. just target types and methods count.
svn path=/trunk/mcs/; revision=6752
2002-08-19 13:27:58 +00:00
Daniel Stodden 82577871f3 fixed bug 28306: Delegate invocation works in reverse order
svn path=/trunk/mono/; revision=6751
2002-08-19 11:22:39 +00:00
Dick Porter f97ec68693 Missed one
svn path=/trunk/mcs/; revision=6750
2002-08-19 11:22:04 +00:00
Dick Porter 010cbb1bdf Optimisation suggested by Gonzalo, to avoid creating extra hashtable
provider and comparer objects.

svn path=/trunk/mcs/; revision=6749
2002-08-19 11:16:57 +00:00
Dick Porter 0a4551c1ae 2002-08-19 Dick Porter <[email protected]>
* MonoType.cs: Add a space before the Assembly name in
	AssemblyQualifiedName (needed for resource files so the MS runtime
	can load types)

2002-08-19  Dick Porter  <[email protected]>

	* BinaryWriter.cs: The length of a string is counted in bytes, not
	chars

2002-08-19  Dick Porter  <[email protected]>

	* ResourceWriter.cs: Implemented all methods

	* ResourceReader.cs: Cope with our ResourceSet class name, as well
	as theirs

svn path=/trunk/mcs/; revision=6748
2002-08-19 10:56:32 +00:00
Dick Porter 623e6fdae4 2002-08-19 Dick Porter <[email protected]>
* monoresgen.cs: Added ';' as a text format comment char

svn path=/trunk/mcs/; revision=6747
2002-08-19 10:52:45 +00:00
Gonzalo Paniagua Javier 1b55679695 2002-08-19 Gonzalo Paniagua Javier <[email protected]>
* icall.c: added ves_icall_FieldInfo_SetValueInternal.
	* object.c: added missing MONO_TYPE_ARRAY in mono_runtime_invoke_array.

svn path=/trunk/mono/; revision=6746
2002-08-19 10:51:40 +00:00
Gonzalo Paniagua Javier 465c49f4b8 2002-08-19 Gonzalo Paniagua Javier <[email protected]>
* FieldInfo.cs: implemented SetValue.

svn path=/trunk/mcs/; revision=6745
2002-08-19 10:50:31 +00:00
Gaurav Vaish d1ecd76eff 2002-08-19 Gaurav Vaish <[email protected]>
* DataGrid.cs                 - AutoCreateColumns: Bug fixes.

svn path=/trunk/mcs/; revision=6744
2002-08-19 09:37:16 +00:00
Gaurav Vaish e47493d38f 2002-08-19 Gaurav Vaish <[email protected]>
* DataGrid.cs                 - AutoCreateColumns: Bug fixes.

svn path=/trunk/mcs/; revision=6743
2002-08-19 09:29:48 +00:00
Nick Drochak 4e1d88e35e Comitted the wrong file before. Here's the correct one.
svn path=/trunk/mono/; revision=6742
2002-08-19 09:22:37 +00:00
Gaurav Vaish 55411e33a3 2002-08-19 Gaurav Vaish <[email protected]>
* DataGrid.cs                 - AutoCreateColumns: completed, hopefully!

svn path=/trunk/mcs/; revision=6741
2002-08-19 09:02:56 +00:00
Nick Drochak de5ce47aa4 2002-08-19 Nick Drochak <[email protected]>
* x86.brg (mono_llmult_ovf): Simplified the code greatly by refactoring
	the algebraic form we are using.  This also eliminated a silly overflow
	of the intermediate result that was causing troubles.

svn path=/trunk/mono/; revision=6740
2002-08-19 08:20:31 +00:00
Gonzalo Paniagua Javier 9c40e08964 Added FormatterServices.cs
svn path=/trunk/mcs/; revision=6739
2002-08-19 07:50:00 +00:00
Gaurav Vaish 735fbb5130 2002-08-19 Gaurav Vaish <[email protected]>
* DataGrid.cs                 - Working on the undocumented protected
            method CreateColumnSet. AutoCreateColumns method
            stubbed. Left CreateControlHierarchy for the time
            being, looks like I'm going insane. ;-)

svn path=/trunk/mcs/; revision=6738
2002-08-19 07:05:39 +00:00
Gaurav Vaish 6833db4028 2002-08-19 Gaurav Vaish <[email protected]>
* Button.cs                   - Steffen's OnCommand bug fix.

svn path=/trunk/mcs/; revision=6737
2002-08-19 05:06:24 +00:00
John Sohn 70988a3ad3 *** empty log message ***
svn path=/trunk/mcs/; revision=6736
2002-08-19 04:37:35 +00:00
John Sohn ffe328056b Fixed link from monostub WndProc to Appliation class
svn path=/trunk/mcs/; revision=6735
2002-08-19 04:35:18 +00:00
Gonzalo Paniagua Javier c2ac301c3b Updated list file
svn path=/trunk/mcs/; revision=6734
2002-08-19 04:22:41 +00:00
Gonzalo Paniagua Javier 57a7e40935 2002-08-19 Gonzalo Paniagua Javier <[email protected]>
* object.c:
	(mono_print_unhandled_exception): after previous commit, i realized
	that MS calls ToString on the exception. I changed this function to
	do that. This way we get stack_trace for free.

svn path=/trunk/mono/; revision=6733
2002-08-19 03:38:47 +00:00
Gonzalo Paniagua Javier e72146160f 2002-08-19 Gonzalo Paniagua Javier <[email protected]>
* object.c:
	(mono_print_unhandled_exception): invoke Message property instead of
	getting 'message' field from Exception. Don't allocate memory for
	'trace' and 'message' if not needed.

svn path=/trunk/mono/; revision=6732
2002-08-19 02:46:01 +00:00
Gonzalo Paniagua Javier 67008ec355 2002-08-19 Gonzalo Paniagua Javier <[email protected]>
* AppDomain.cs: parameter name when throwing ArgumentNullException.

	* ArgumentException.cs: modified Message to do what MS does.

	* ArgumentNullException.cs: don't use {0} in message.

	* Exception.cs: use Message property in ToString ().

svn path=/trunk/mcs/; revision=6731
2002-08-19 02:40:35 +00:00
Gonzalo Paniagua Javier 9d79ec487d 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpContext.cs: reformatted.
	* System.Web/HttpStaticObjectsCollection.cs: implemented GetEnumertor,
	CopyTo and the indexer.
	* System.Web.Compilation/PageCompiler.cs: fixed compilation.
	* System.Web.SessionState/HttpSessionState.cs: IsAbandoned is internal.
	* System.Web.SessionState/SessionDictionary.cs: scope fixes.
	* System.Web.SessionState/SessionStateModule.cs: added events.

svn path=/trunk/mcs/; revision=6730
2002-08-19 01:31:11 +00:00
Gonzalo Paniagua Javier 3023fcd88d 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
* PageCompiler.cs: generate C# file using AspGenerator.

svn path=/trunk/mcs/; revision=6729
2002-08-19 00:43:59 +00:00
Gonzalo Paniagua Javier 802d88b3f7 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
* CompiledTemplateBuilder.cs: InstantiateIn is virtual.
	* EmptyControlCollection.cs: throw correct exception.
	* LosFormatter.cs: stubbed out.
	* OutputCacheLocation.cs: little fix.

svn path=/trunk/mcs/; revision=6728
2002-08-19 00:18:18 +00:00
Gonzalo Paniagua Javier 405055fb7d Some updates to ASP.NET page
svn path=/trunk/mono/; revision=6727
2002-08-18 19:07:30 +00:00
Gonzalo Paniagua Javier 66d8f07ae4 2002-08-18 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: LookupFoundry now returns bool.
	* AspGenerator.cs: New file.

svn path=/trunk/mcs/; revision=6726
2002-08-18 18:37:25 +00:00
Rodrigo Moya ab46838857 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (ChangeDatabase): implemented.

	* System.Data.OleDb/OleDbException.cs (OleDbException): added internal
	constructor.
	(ErrorCode, Message, Source, Errors): implemented.

	* System.Data.OleDb/OleDbError.cs: implemented the full class.

	* System.Data.OleDb/libgda.cs: added more libgda functions.

	* System.Data.OleDb/TestOleDb.cs (TestOleDb): display properties for
	the opened connection.

svn path=/trunk/mcs/; revision=6725
2002-08-18 18:35:06 +00:00
Rodrigo Moya e35eb40d4e 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbConnection.cs (ServerVersion): implemented.

svn path=/trunk/mcs/; revision=6724
2002-08-18 17:57:04 +00:00
John Sohn 7891402b56 Updates to better conform to Mono coding conventions
svn path=/trunk/mcs/; revision=6723
2002-08-18 17:33:07 +00:00
Rodrigo Moya 36253ba8b8 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbDataReader.cs (Close): clear the results
	ArrayList after releasing the items.
	(GetName, GetDateTime, GetDouble, GetSingle, GetInt16, GetInt32,
	 GetOrdinal, GetString): implemented.
	(GetDataTypeName): made it get the type from the data model, not from
	the current value, which could not have been retrieved yet.
	(GetValue): call the Get* method corresponding with the data type of
	the requested column.

	* System.Data.OleDb/libgda.cs: added more libgda functions.
	(GdaTimestamp, GdaDate, GdaTime): new marshalled structures.

	* System.Data.OleDb/TestOleDb.cs (TestDateReader): display column
	titles via OleDbDataReader.GetName ().
	(TestOleDb): create temporary table with a date field.
	(InsertRow): set current date for the date field.

svn path=/trunk/mcs/; revision=6722
2002-08-18 15:54:49 +00:00
Rodrigo Moya 0624655c6e 2002-08-18 Rodrigo Moya <[email protected]>
* System.Data.OleDb/OleDbDataReader.cs (this[]): made it just call
	GetValue, which will take care of all the work needed.
	(Close): implemented basic stuff.
	(~OleDbDataReader): implemented.

	* System.Data.OleDb/libgda.cs: added more needed functions.

svn path=/trunk/mcs/; revision=6721
2002-08-18 12:47:50 +00:00
Dick Porter 16d25f7466 2002-08-18 Dick Porter <[email protected]>
* ResourceReader.cs: Finished basic implementation.  Some
	optimisation in conjunction with ResourceSet still possible though

svn path=/trunk/mcs/; revision=6720
2002-08-18 11:18:03 +00:00
Dick Porter ac65c444d4 2002-08-18 Dick Porter <[email protected]>
* BinaryReader.cs: Fixed buffering

svn path=/trunk/mcs/; revision=6719
2002-08-18 11:17:22 +00:00
Dick Porter 0df658baf4 2002-08-18 Dick Porter <[email protected]>
* Encoding.cs: Make GetString() return a useful representation of
	the bytes, rather than "System.Char[]"

svn path=/trunk/mcs/; revision=6718
2002-08-18 11:15:44 +00:00
Dick Porter 20be524dd8 2002-08-18 Dick Porter <[email protected]>
* BinaryFormatter.cs: Stubbed out

svn path=/trunk/mcs/; revision=6717
2002-08-18 11:14:48 +00:00
Dick Porter 2ae8208e44 2002-08-18 Dick Porter <[email protected]>
* unicode.c: Fix asserts to match Encoder.cs checks

svn path=/trunk/mono/; revision=6716
2002-08-18 11:01:27 +00:00
Jason Diamond 5c59c1a2b1 Fixed matching on patterns that look like absolute XPath expressions.
svn path=/trunk/mcs/; revision=6715
2002-08-18 03:29:24 +00:00
Jason Diamond 4d87d2bf42 2002-08-17 Jason Diamond <[email protected]>
* XPathNavigator.cs: Added naive (but working) implementation of
	 Matches.

svn path=/trunk/mcs/; revision=6714
2002-08-17 21:34:21 +00:00
Gonzalo Paniagua Javier 624f147292 i'm dumb
svn path=/trunk/mcs/; revision=6711
2002-08-17 16:31:09 +00:00
Gonzalo Paniagua Javier 3cef05cec5 Removed double tests ?!
svn path=/trunk/mcs/; revision=6710
2002-08-17 16:29:54 +00:00
Gonzalo Paniagua Javier 0aca46a040 2002-08-17 Eduardo Garcia Cebollero <[email protected]>
* AllTests.cs: added BinaryReaderTest.Suite.
	* BinaryReaderTest.cs: New file.

svn path=/trunk/mcs/; revision=6709
2002-08-17 16:26:49 +00:00
Tim Coleman a9aba76378 2002-08-15 Tim Coleman <[email protected]>
* makefile.gnu:
		Add Microsoft.VisualBasic to linux build.

svn path=/trunk/mcs/; revision=6707
2002-08-17 07:47:00 +00:00
Tim Coleman 60e89612fa 2002-08-15 Tim Coleman <[email protected]>
* list:
        * makefile.gnu:
                Added files to allow build on linux.

svn path=/trunk/mcs/; revision=6706
2002-08-17 07:46:02 +00:00
Tim Coleman d63d755da1 2002-08-15 Tim Coleman <[email protected]>
* ChangeLog:
                Added a ChangeLog
        * Constants.cs:
                Make these actual constants so mcs will compile them.

svn path=/trunk/mcs/; revision=6705
2002-08-17 07:44:46 +00:00
Tim Coleman c60ac16378 2002-08-15 Tim Coleamn <[email protected]>
* CompareInfo.cs:
                Stubbed out some methods.

svn path=/trunk/mcs/; revision=6704
2002-08-17 07:43:15 +00:00
Tim Coleman d0cd3ef160 2002-08-15 Tim Coleman <[email protected]>
* makefile.gnu:
		Added System.Runtime.Serialization.Formatters.Soap to build

svn path=/trunk/mcs/; revision=6703
2002-08-17 06:56:35 +00:00
Tim Coleman b6b04ba966 2002-08-15 Tim Coleman <[email protected]>
* ChangeLog:
                New changelog added
        * list:
        * makefile.gnu:
                Added so we can build this assembly on linux now.

svn path=/trunk/mcs/; revision=6702
2002-08-17 06:49:45 +00:00
Tim Coleman 4881b16d89 2002-08-15 Tim Coleman <[email protected]>
* SoapFormatter.cs:
                That should be IRemotingFormatter, not IRemoteFormatter.
                Some stubs to make it compile on linux.
        * TODOAttribute.cs:
                Added this class to this assembly.

svn path=/trunk/mcs/; revision=6701
2002-08-17 06:48:29 +00:00
Tim Coleman bece72d5b5 2002-08-15 Tim Coleman <[email protected]>
* list.unix: Added System.IO files.

svn path=/trunk/mcs/; revision=6700
2002-08-17 06:31:12 +00:00
Tim Coleman 9915204379 Missed commit of this file previously.
svn path=/trunk/mcs/; revision=6699
2002-08-17 06:29:45 +00:00
Tim Coleman 8f708d9159 2002-08-15 Tim Coleman <[email protected]>
* ErrorEventArgs.cs:
        * ErrorEventHandler.cs:
        * FileSystemEventArgs.cs:
        * FileSystemEventHandler.cs:
        * FileSystemWatcher.cs:
        * InternalBufferOverflowException.cs:
        * IODescriptionAttribute.cs:
        * NotifyFilters.cs:
        * RenamedEventArgs.cs:
        * RenamedEventHandler.cs:
        * WaitForChangedResult.cs:
        * WatcherChangeTypes.cs:
                New stubs added.

svn path=/trunk/mcs/; revision=6698
2002-08-17 06:28:37 +00:00
Tim Coleman 1f42623354 2002-08-15 Tim Coleman <[email protected]>
* WebServicesDescriptionAttribute:
                Added Description property.  Should've known I spoke
                too soon about being complete. :-)

svn path=/trunk/mcs/; revision=6697
2002-08-17 04:59:12 +00:00
Tim Coleman 0df7d558ad 2002-08-15 Tim Coleman <[email protected]>
* ServerProtocol.cs:
        * SoapServerProtocol.cs:
                Some more implementation.

svn path=/trunk/mcs/; revision=6696
2002-08-17 04:53:53 +00:00
Tim Coleman cdc6e8121a 2002-08-15 Tim Coleman <[email protected]>
* unix.args:
                Add System.Globalization/TextInfo.cs
                Add System.Runtime.Serialization/FormatterConverter.cs

svn path=/trunk/mcs/; revision=6695
2002-08-17 04:31:06 +00:00
Jason Diamond 5a5f87e557 2002-08-16 Jason Diamond <[email protected]>
* XmlElement.cs: Fixed writing out qualified elements courtesy of
	Marcus B�rgel <[email protected]>.

svn path=/trunk/mcs/; revision=6694
2002-08-17 03:20:36 +00:00
Piers Haken cdd9ebc625 2002-08-13 Piers Haken <[email protected]>
* class/library.make: merge back original makefile.gnu behavior
	* */makefile.gnu: merge back original makefile.gnu behavior

svn path=/trunk/mcs/; revision=6693
2002-08-17 03:14:32 +00:00
Jason Diamond ca909bc565 2002-08-16 Jason Diamond <[email protected]>
* makefile.gnu: Added SOURCES_INCLUDE and SOURCES_EXCLUDE variables
	to get tests to build with the new build system.

svn path=/trunk/mcs/; revision=6692
2002-08-17 03:04:46 +00:00
Gonzalo Paniagua Javier 8cc436531a doh!
svn path=/trunk/mono/; revision=6691
2002-08-17 02:31:44 +00:00
Gonzalo Paniagua Javier e68f350007 2002-08-17 Gonzalo Paniagua Javier <[email protected]>
* configure.in: don't link against libdl on windoze.

svn path=/trunk/mono/; revision=6690
2002-08-17 02:29:46 +00:00
Gonzalo Paniagua Javier 4493c2f403 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* AspComponentFoundry.cs: New file.
	* AspElements.cs: renamed Component to Aspcomponent.

svn path=/trunk/mcs/; revision=6689
2002-08-17 01:11:54 +00:00
Rodrigo Moya e5d383158e 2002-08-16 Rodrigo Moya <[email protected]>
* System.Data.OleDb/TestOleDb.cs: made it work with a temporary table
	we create.
	(TestTransaction): added test for transactions.

svn path=/trunk/mcs/; revision=6688
2002-08-17 00:51:53 +00:00
Miguel de Icaza 398784cf63 1.3 -> 2.0
svn path=/trunk/mono/; revision=6687
2002-08-16 22:09:33 +00:00
Miguel de Icaza 04def0e093 Add -ldl when linking to -lgc
svn path=/trunk/mono/; revision=6686
2002-08-16 19:51:00 +00:00
Paolo Molaro e7cfe17f72 Fri Aug 16 21:42:57 CEST 2002 Paolo Molaro <[email protected]>
* marshal.c: fix unaligned store issue and a few wrong
	opcode argument types.

svn path=/trunk/mono/; revision=6685
2002-08-16 19:46:11 +00:00
Gonzalo Paniagua Javier f6d18264e8 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* FormatterServices.cs: implemented GetUninitializedObject.
	PopulateObjectMembers needs a working FieldInfo.SetValue (it's
	not implemented right now).

svn path=/trunk/mcs/; revision=6684
2002-08-16 19:23:57 +00:00
Gonzalo Paniagua Javier 26f10a5ef2 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* icall.c: added GetUninitializedObjectInternal internal call.

svn path=/trunk/mono/; revision=6683
2002-08-16 19:21:10 +00:00
Gonzalo Paniagua Javier 2db68a79ec Fix
svn path=/trunk/mcs/; revision=6681
2002-08-16 17:09:38 +00:00
1521 changed files with 268788 additions and 37536 deletions

No files matched your search

+110
View File
@@ -1,3 +1,113 @@
2002-10-01 Duncan Mak <[email protected]>
* mono/os/Makefile.am: Add gc_wrapper.h.
* runtime/Makefile.am: Fix the path for monoresgen.exe.
2002-09-27 Dick Porter <[email protected]>
* configure.in: Check for semaphore.h. Patch for BSD from
[email protected] (Julio Merino).
2002-09-20 Duncan Mak <[email protected]>
* data/config.in: Added reference to libxslt.
2002-09-20 Mark Crichton <[email protected]>
* configure.in: added NEED_LINK_UNLINK to make io-layer more portable.
Linux has a "virtual fs" for UNIX sockets, Solaris and BSD don't.
For systems that do not have such a virtual FS, define
NEED_LINK_UNLINK.
* acconfig.h: added NEED_LINK_UNLINK
Wed Sep 4 18:09:58 CEST 2002 Paolo Molaro <[email protected]>
* configure.in: add some needed defines to fix support of
threads in the GC.
2002-09-19 Mark Crichton <[email protected]>
* configure.in: Added checks for Solaris to use X/Open functionality.
Really needed for the io-layer code.
2002-09-15 Andrew Birkett <[email protected]>
* man/mcs.1: --probe is now --expect-error.
2002-09-09 Dick Porter <[email protected]>
* acconfig.h:
* configure.in: Simplify thread checks, by using canned rules for
particular systems (based on the sleepycat db configure.in).
Tested on linux/x86, freebsd and w32. Solaris also added, but I
don't have a solaris machine to try it on.
2002-09-04 Juli Mallett <[email protected]>
* configure.in: Include <sys/types.h> when checking <sys/un.h> stuff.
2002-09-02 Diego Sevilla Ruiz <[email protected]>
* doc/ccvs: Added how to convert SSH keys (from SSH Communications
Security) to the OpenSSH keys required by mono CVS
access.
2002-09-01 Juli Mallett <[email protected]>
* configure.in, mono/interpreter/interp.c,
mono/io-layer/handles.c, mono/io-layer/processes.c,
mono/io-layer/threads.c, mono/io-layer/timed-thread.c,
mono/io-layer/wait.c, mono/jit/helpers.c, mono/jit/jit.c,
mono/metadata/appdomain.c, mono/metadata/class.c,
mono/metadata/domain.c, mono/metadata/gc.c,
mono/metadata/object.c, mono/metadata/reflection.c,
mono/metadata/threads.c, mono/os/gc_wrapper.h,
mono/utils/mono-hash.c: Add a new header, gc_wrapper.h, to
wrap inclusion of gc.h for boehm, since from FreeBSD and
OpenBSD ports, gc.h is <gc.h>, but on GNU it seems to be
in <gc/gc.h>. This will reduce the diffs FreeBSD ports has
to apply, and also makes it possible for me to build with
GC on OpenBSD/macppc built by hand.
2002-09-01 Juli Mallett <[email protected]>
* configure.in: On BSD don't try to use -ldl, we simply don't use it.
2002-09-01 Juli Mallett <[email protected]>
* mono/dis/dis-cil.c:
* configure.in: Check for <wchar.h> via autoconf, don't use it if
it isn't there, as it seems to work fine without it on OpenBSD.
2002-08-28 Dick Porter <[email protected]>
* mono/os/win32/util.c:
* mono/os/unix/util.c:
* mono/os/util.h: mono_set_rootdir() doesnt take any args now.
(It doesn't do anything on unix builds, and the w32 version no
longer needs an arg.)
* configure.in: Add HOST_CC for w32 builds
Tue Aug 27 18:17:43 CEST 2002 Paolo Molaro <[email protected]>
* configure.in: remove iconv checks.
2002-08-24 Juli Mallett <[email protected]>
* configure.in: Recognise OpenBSD/macppc as PowerPC.
Tue Aug 20 15:15:52 CEST 2002 Paolo Molaro <[email protected]>
* configure.in: patch by [email protected] (Daniel Resare)
to error out if bison is missing.
2002-08-17 Gonzalo Paniagua Javier <[email protected]>
* configure.in: don't link against libdl on windoze.
2002-08-12 Dick Porter <[email protected]>
* mono.pc.in: Add $includedir to Cflags
+2 -2
View File
@@ -1,8 +1,8 @@
AUTOMAKE_OPTIONS = foreign
SUBDIRS = mono doc docs runtime scripts man
SUBDIRS = mono doc docs runtime scripts man data
EXTRA_DIST= mono.pc.in
EXTRA_DIST= mono.pc.in mono.spec.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA= mono.pc
+794
View File
@@ -1,3 +1,797 @@
Hello!
Version 0.16 of Mono has been released! This is mostly a bug
fix release, a lot of work has been going on to make existing
features more robust and less buggy. Also, contributions are
too varied, so it is hard to classify them in groups.
* Stats
795 commits to mono and mcs since August 23rd.
* News
The changes that got in this releases are mostly
bugfixes. Miguel, Martin and Ravi attacked lots of bugs in the
compiler, Dick fixed a bunch of bugs related to processes and
threads. Mark Crichton resumed his work on the SPARC port and
made lots of progress there. Juli Mallett has been working on
making sure Mono also builds on BSD systems. As usual, Dietmar
and Paolo supplied their continuous stream of fixes to the
runtime.
Dietmar has completed the work on the runtime side for
remoting support and we ship now with a sample channel, the
System.Runtime.Remoting.Sample. This can be used as a
reference implementation for anyone interested in implementing
other channels (like a CORBA channel).
Duncan got preliminary XSLT support done by using
libxslt.
Gonzalo (with some help from Patrik) has been working hard
making our ASP.NET implementation work on both Mono and MS by
migrating the existing xsp code to the class library. Gaurav
started working on the classes in System.Design.dll and Chris
Toshok checked in Mono.Directory.LDAP, which will be the
foundation to implement the System.DirectoryServices assembly.
Various fixes from Kral, Jason, Piers and Gonzalo were
committed to System.Xml; Martin Algiers reports that the
upcoming NAnt release will be fully compatible with Mono.
Miguel imported Sergey Chaban's Mono.PEToolkit and ilasm code
to CVS. Nick, as always, continues to refine our testing
framework by improving our tests. Andrew Birkett continues to
improve the implementation of our security/cryptographic
classes. Jonathan Pryor contributed type-reflector the our
list of tools.
* Other News From Behind de Curtain.
While the above is pretty impressive on its own, various other
non-released portions of Mono have been undergoing: Adam Treat
has been leading the effort to document our class libraries
and produce the tools required for it.
Martin Baulig has been working on the Mono Debugger which is
not being released yet. This debugger allows both native
Linux application as well as CIL applications to be debugged
at the same time (and in fact, you can use this to debug the
JIT engine). The debugger is written in C# with some C glue
In the meant A new JIT engine is under development, focused on
adding more of the high-end optimizations which will be
integrated on an ahead-of-time-compiler. Dietmar and Paolo
have been working on this.
* Contributors to this release
* Non-Ximian developers: Adam Treat, Andrew Birkett, Dennis
Hayes, Diego Sevilla, Franklin Wise, Gaurav Vaish ,Jason
Diamond, Johannes Roith, John Sohn, Jonathan Pryor, Juli
Mallett, Kral Ferch, Mike Crichton, Nick Drochak, Nick
Zigarovich, Piers Haken, Rafael Teixeira, Ricardo Fernandez
Pascual, Sergey Chaban, Tim Coleman.
* Ximian developers: Dietmar, Paolo, Dick, Duncan, Ravi,
Miguel, Martin, Chris, Joe, Gonzalo, Rodrigo.
---------------------------------------------------------------------------------
* Sergey Chaban added thread-safe support to
System.Collections.SortedList.
* Fixes to the compiler by Andrew Birkett.
* Tim Coleman contributed the OleDb provider for System.Data and started
work on System.Web.Services.
* Radek fixed a lot of problems on the PPC side. [*]
* Miguel and Martin committed the new type lookup system.
* Dietmar rewrote the marshalling code. [*]
* Peter Williams and Martin contributed the new Makefiles, with help
from Alp Toker as well.
* Contributors to this release:
* Non-Ximian developers: Nick Drochak, Martin Baulig, Tim
Coleman, Mike Kestner, Alp Toker, Jonathan Pryor, Jaime
Anguiano, Piers Haken, Rafael Teixeira, Mark Crichton,
Sergey Chabon, Ajay Kumar Dwivedi, Andrew Birkett, Dennis
Hayes (SWF), Adam Treat, Johannes Roith and Lawrence Pit.
* Ximian developers: Duncan, Ravi, Dick, Dietmar, Paolo,
Gonzalo, Rachel, Radek, Rodrigo, Jeff, Peter Williams and
Miguel.
Special thanks to Duncan for helping me put this release together.
Hello!
A new version of Mono (0.12), is out.
Mono is an open source implementation of the Microsoft.NET
Framework, and ships with a C# compiler, a runtime engine
(with a JIT on x86 cpus) and a set of class libraries.
Mono is know to work on a number of platforms:
x86/Linux, x86/Windows, x86/FreeBSD; sparc/solaris;
linuxppc/linux; strongarm/linux.
There have been many changes since the last release of Mono in
late April, thanks to Duncan for assembling the list of new
features, any omissions are my fault.
Changes since 0.11:
It is hard to keep track of the changes, as there are 1632
patches that were posted to the mailing list. One third of
the total number of patches since we opened mono-patches
list. I am sure I missed some stuff and probably missed some
contributors. I apologize in advance.
Runtime:
Paolo: New Reflection.Emit generation code generates
code that can be executed in Windows. Now binaries
generated by Mono/MCS will run on Windows.
Paolo got Activator.CreateInstance to work.
Sergey's CPU-optimization for CPBLK.
Many many bug fixes to the runtime from Dick, Dan
Lewis, Dietmar, Gonzalo, Martin, Paolo, Radek and Sergey,
Compiler:
Many bug fixes: The compiler can now compile Gtk#,
Vorbis#, System.Data assembly and System.Xml assembly
which previously did not work (Dietmar, Miguel, Paolo,
Piers, Ravi, Miguel). Thanks to all the bug
reporters.
Class Libraries:
Mike started work on System.Xml.XPath
Christian, Dennis, Daniel and friends got more stubs
for System.Windows.Forms in.
Ajay revamped System.Xml.Schema. And Jason and Duncan
updated System.Xml
Daniel also checked in a working CodeDOM
implementation and a C# provider.
Many bug fixes by everyone. Thanks to Daniel, Duncan,
Jonathan, Lawrence, Martin Mike, Nick and Piers. I am
missing a lot of contributors that should be listed.
ASP.NET support
A lot of work from Gonzalo allows some small and
modest ASP.NET applications to run (you still need the
unreleased XSP code though).
System.Data:
Integrated the MySQL provider from Brad Merryl.
Lots of work by Dan, Rodrigo, Tim.
Microsoft.VisualBasic runtime support
Rafael and Chris have been working on the VisualBasic
runtime support DLLs
Hello everyone!
Mono 0.11 is out!
This new version has new features:
* Massive:
* Ultrich Kunitz implemented the whole calendar set of
classes. Yes, thats right. The whole thing, with a
complete test suite. Thanks Ultrich!
* JIT/runtime features:
* Martin's debugging framework is included (see web
site for details on how to use it). (Martin)
* Transparent Proxy has been implemented for the
runtime (lets you run/debug/hack on remoting for Mono) (Dietmar)
* Inline and constant folding/propagation support
in the JIT engine (Dietmar)
* Profiling support for the JIT engine (--profile).
* Cool runtime hacks, that made our compiler twice as fast:
* New string rewrite: faster, speedier, leaner, cooler!
Paolo had been talking about a new string rewrite,
and super hacker Patrik Torstensson started the
implementation, Dietmar then switched the object
layout and the Mono team helped iron out a few of
the details.
* New array reprensetation: Dan Lewis contributed a new
faster and smaller array implementation.
* Improved Reflection.Emit: Paolo improved our
reflection emit code.
* ADO.NET
* Daniel Morgan, Rodrigo Moya have some pieces of the
Sql classes ready to run. he first signs of life
this week (we can connect, insert rows; do transactions:
commit/rollback; SQL errors and exceptions work).
* Http Runtime
* The HTTP runtime (to be used by our ASP.NET implementation)
was contributed by Patrik Torstensson. Patrik not only
contributed a massive ammount of classes, but he immediately
went on to implement ThreadPools and then helped out with the
new String rewrite.
* XML improvements:
* Kral Ferch and Duncan Mak contributed more
improvements to the XML implementation.
* Work on Xml Serialization from John Donagher.
* Documentation:
* MonoDoc ships for the first time!
(John Barnette, Adam Treat and John Sohn)
* New documentation stubs ready to be filled, and translated
included (thanks to our doc team!)
* General fixes:
* Piers Haken fixed many of our attributes and many
little problems that were exposed by his CorCompare tool
* Many Mono C# compiler bug fixes.
* Other improvements:
* NUnit works on Linux! (Patrik Torstensson)
* More NUnit tests (Nick Drochak)
* Windows.Forms progress: Dennis Hayes and Christian
Meyer have been contributing stubs for the
Windows.Forms work.
* Full Parse implementations and bug fixing by Gonzalo
* Dan Lewis contributed some missing classes for the
Regexp implementation.
* Jonathan's trace classes
* This Month's Mono is brought to you by:
Adam Treat, Chris Podugriel, Christian Meyer, Daniel Lewis,
Daniel Morgan, Dennis Hayes, Dick Porter, Dietmar Maurer,
Duncan Mak, Guarav Vaish, Gonzalo Paniagua, Jaime Anguiano,
Jason Diamond, Joe Shaw, John Barnette, John Donagher, John
Sohn, Jonathan Pryor, Kral Ferch, Martin Baulig, Miguel de
Icaza, Mike Kestner, Nick Drochak, Paolo Molaro, Patrik
Tostensson, Piers Haken, Ravi Pratap, Rodrigo Moya, Sergey
Chanben, Ultrich Kunitz, Wictor Wilen.
I know that I missed some features, there is a lot of work
that happens in a month. I apologize in advance for any
features I omited by accident.
Special thanks go to Duncan for helping out with all those
little details in the project. And also Nick who has been
keeping us in good shape by maintaining and helping new
contributors provide more test suites.
* Reporting bugs
If you find a bug in Mono, please file a bug here:
http://bugzilla.ximian.com
That way we wont loose your bug report, and will be able to
follow up properly with it. Also try to provide simple test
cases whenever possible and try as hard as possible to
identify the root of a problem (compiler, runtime, class
libraries).
* Forum
The [email protected] mailing list is open for
those of you who want to discuss the future of Mono.
Hello everyone!
Mono "Self Hosting" 0.10 is out! (Alex insisted I used the
<blink> tag for "Self Hosting", but was dissapointed when he
realized most mailers dont support this).
Too many things have happened since the the 0.9 release,
almost an entire month. The big news is that we are shipping
a the self-hosting Mono C# compiler. This has been tested on
Linux/x86 only.
Also, we delayed the release for one reason or other, but it
turns out that as a extra bonus, Paolo fixed the last
outstanding bug in the JIT engine, so the compiler now runs in
the JIT engine instead of the interpreter.
The mono-0.10 release includes the libraries required to run
the compiler as well as assorted .NET programs [1].
* What is new
There is so much stuff in this release that is hard to keep
track of it.
Jason, Kral and Duncan have done an amazing job with
System.Xml, up to the point that it is even being used by
gtk-sharp's code generator (and it all comes with great test
suites to verify that it works!). Ajay's XmlSchema code is
also shipped.
Martin worked on our debugging infrastructure (the JIT can
load dwarf files, and our class libraries now generate dwarf
debugging info; we are in the process of adding this to the
compiler, the patch did not make it to this release though).
For the first time the System.Web assembly has built without
all the excludes, so you can get your hands on Gaurav and
Lee's massive code base.
Lots of new tests to the runtime, class libraries and compiler
are included. As always, big thanks go to Nick for continued
guidance to new developers, and writing new tests.
Dan removed the System.PAL dependency, we now have moved to an
internalcall setup for all the System.IO calls, and dropped
the MonoWrapper shared library.
Porting wise: Sergey's StrongARM port is included now; Jeff's
SPARC port and Radek's PowerPC port have been updated to
reflect the new changes in the engine.
Runtime wise: Dietmar also got us asyncronous delegates
implemented. Dick continues his work on our foundation
classes, and has resumed his work on the IO layer.
Paolo is the hero behind self hosting on Linux. Send your
congrats (and wine) to him.
And without the help from Mike, Duco, David, Piers, Nick,
Sergey, Mark, Jonathan, John, Adam and Dennis this release
would have not been possible.
This release is mostly ECMA compatible. I did not expect this
to happen so soon. I am very grateful to everyone who has
made this happen
* The goods
The runtime sources and binaries to the compiler/libraries:
http://www.go-mono.com/archive/mono-0.10.tar.gz
The class and compiler sources:
http://www.go-mono.com/archive/mcs-0.10.tar.gz
* Requirements:
You still need glib-2, and pkg-config. If you plan on
compiling large applications, getting the Boehm GC is a plus
(we will integrate this in a future version, for now it is an
external requirement).
Boehm GC is available in packaged format for Debian and Red
Hat systems.
* To compile on Linux
Do your regular chores with mono-0.10.tar.gz, you know the
drill. In the end, after you reach the `make install' phase,
now you can do some cool stuff.
If you want to compile the compiler (just to try it out),
untar the sources to the compiler (mcs-0.10.tar.gz) and do
manually:
cd mcs-0.10
(cd jay; make)
(cd mcs; make monomcs)
Now you will end up with a nice mcs4.exe in the mcs/mcs
directory, that is the compiler. If you want to use that,
replace the mcs.exe we distribute with the mcs4.exe you got.
* Gadgets
Man pages for mcs, mono and mint are included for your
enjoyment.
Particularly of interest is `mint --profile' which is awesome
to profile your application, the output is very useful.
Also, if you want to impress your friends, you might want to
run the JIT with the `-d' flag, that shows you how the JITer
compiles the code (and shows the basic blocks and the forst of
trees as it goes).
* Next steps
More classes are missing. These are required so we can run
nant and nunit natively. Once we achieve that, we will be
able to ship a complete environment that compiles on Linux.
Currently our makefiles still use csc, as we still need
nunit/nant to work.
[1] Of course, .NET programs that try to use classes we have not yet
implemented, will be left wondering `why did this happen to me?'.
Hello!
I have just uploaded Mono 0.9 to the web server, you can get
the goodies here:
http://www.go-mono.com/archive/mono-0.9.tar.gz
http://www.go-mono.com/archive/mcs-0.9.tar.gz
mono-0.9.tar.gz contains the source code to the runtime (JIT
and interpreter) as well as a pre-compiled version of the
compiler (mcs.exe) and the class libraries.
To compile the compiler and the class libraries, you still
need Windows with the .NET SDK, as our runtime can not host
the compiler completely yet.
* Improved Build System
You can check http://www.go-mono.com/download.html for the
new and fresh compilation instructions. Same requirements as
the last version (pkg-config, glib 1.3.xx need to be
installed).
* What is new:
Compiler can compile about 75% of our regression test suite
on Linux. Most of this work is on the class libraries and
Paolo has been the magician behind the work here.
JIT can run the compiler now (Dietmar)
Mint works on Windows now (Dick).
Application Domains have been implemented (Dietmar)
* Two modes of operation are available, depending on
your needs: share code, or maximize speed (does not
share code). This is described by the the
LoaderOptimization enumeration in .NET.
Corlib no longer has references to mscorlib (Daniel Lewis)
Ports:
PowerPC has been updated (Radek Doulik)
New SPARC port (Jeffrey Stedfast)
Documentation system:
Adam Treat has been working on finishing the Doctools
to maintain the Mono class library documentation. We
still need a GUI editor though.
Tracking progress:
Nick's new tools to track progress are included in
this release.
Many new more regression tests for the class library
(David Brandt, Mark Crichton, Nick Drochak, Bob Doan,
Duco Fijma).
Lots of new code:
Gaurav Vaish (the hacking god behind System.Web),
Chris Podugriel (System.Data) and Mark Crichton (Crypto)
Runtime:
Socket layer is finished (Dick Porter)
Compiler has full support for unsafe code now (Miguel)
Still a few things missing: constant folding is not
finished everywhere and access permissions are not
enforced yet.
Many many many bug fixes everywhere from everyone on the team:
Paolo Molaro, Daniel Lewis, Daniel Stodden, Dietmar
Maurer, Jeff Stedfast, Nick Drochak, Duco Fijma, Ravi Pratap,
Dick Porter, Duncan Mak, Jeff Stedfast and Miguel de Icaza.
I am sorry if I left a major component out of the
announcement, this were some intense 11 days of work.
* What is obviously missing
Currently our System.Reflection.Emit is lacking array and
pointer support, which is why many programs still do not
compile, but this should be taken care of next week.
* How can you help
There are many ways to help the project, check the details
documentation in:
http://www.go-mono.com/contributing.html
You might also want to stop by our IRC channel on
irc.gnome.org, channel #mono if you are interested in
contributing.
Have a happy weekend!
Miguel.
Hey guys!
Mono 0.7 has been released.
It has been a long time since the last release of Mono (almost
three weeks). We have made an incredible ammount of work in the past
three weeks.
* Highlights of this release:
* The monoburg: BURS-instruction selector implemented (for our
portable JIT engine).
* JIT engine works for very simple programs (Fibonacci works
for instance). It is about 30% faster running than the
equivalent code compiled with Kaffe.
The interesting part is that this was accomplished with the
a minimum register allocator, and very simple monoburg
rules, so there is a *lot* of room to improve here.
* The Interpreter has madured a lot. Value Types are fully
supported now; We dropped the FFI dependency, as we now
have our own code generator.
* The runtime has been expanded and extended as to support
real file I/O (including console I/O). So Hello World works
in there.
* The compiler can generate code for most statements now; It
also performs semantic analysis on most expressions.
Creation of new objects is supported, access to parameters,
fields and local variables works. Method invocation works.
Implicit type conversions, assignments and much more.
Operator overloading is implemented, but broken on this
release, hopefully this will be fixed soon.
Delegates and Attributes are now declared and passed around,
but no code generation for those exist yet.
* More classes (look for details). Sergey and Paolo have been
working on various classes in System.Reflection.Emit to get
the compiler self-hosting.
* NUnit is now part of the distribution, so it should be
trivial to write test cases (and if you want to help out,
this is one way to do it, we really need more tests cases).
I am going to try to switch to Nick's JB for C# this week or next
week. But the excitement of having the compiler deal with real C#
programs is too much to be contained, and I can not keep my hands of
the code generation in the compiler.
* Availability:
http://www.go-mono.com/archive/mono-0.7.tar.gz
http://www.go-mono.com/archive/mcs-0.7.tar.gz
* Details
Class Library Changes:
Many enumerations have been revamped to have the same value
definitions as those in .NET as those cause problems. They were also
missing the [Flags] attributes, so we got that right too.
* System
SerializableAttribute impl (Miguel)
String updates (Jeff)
System.Char (Ravi)
* System.Configuration
ConfigurationSettings impl (Christopher Podurgiel)
SingleTagSectionHandler impl (Christopher Podurgiel)
DictionarySectionHandler impl (Christopher Podurgiel)
* System.Collections.Specialized
NameObjectCollectionBase impl (Nick Drochak)
* System.Diagnostics
StackFrame stubs (alexk)
StackTrace stubs (alexk)
* System.IO
File stubs (Jim Richardson)
IOException impl (Paolo)
StreamWriter impl (Dietmar)
StreamReader stubs (Dietmar)
* System.Net
ConnectionModes (Miguel)
ProxyUseType (Miguel)
WebStatus (Miguel)
* System.Reflection
Assembly (stubs) (Paolo)
MethodBase (Paolo)
MethodInfo (Paolo)
* System.Reflection.Emit
EventToken (Sergey)
FieldToken (Sergey)
FlowControl (Sergey)
ILGenerator (stubbed) (Paolo)
Label (Paolo)
MethodToken (Sergey)
OpCode.cs (Sergey)
OpCodeType (Sergey)
OpCodes.cs (Sergey)
OperandType (Sergey)
PEFileKinds (Paolo)
PackingSize (Sergey)
ParameterToken (Sergey)
PropertyToken (Sergey)
SignatureToken (Sergey)
StackBehaviour (Sergey)
StringToken (Sergey)
TypeToken (Sergey)
* System.Threading
Most classes stubbed out by Dick Porter (Dick)
* System.Web
HttpWorkerRequest stubs (Bob Smith)
* System.Web.Hosting (Bob Smith)
AppDomainFactory stubs (Bob Smith)
ApplicationHost stubs (Bob Smith)
IAppDomainFactory stubs (Bob Smith)
IISAPIRuntime stubs (Bob Smith)
ISAPIRuntime stubs (Bob Smith)
SimpleWorkerRequest stubs (Bob Smith)
* System.Web.UI
LiteralControl implemented (Bob Smith)
HtmlContainerControl bugfixes (Bob Smith)
BuildMethod
BuildTemplateMethod
HtmlTextWriterAttribute
HtmlTextWriterStyle
HtmlTextWriterTag
IAttributeAccessor
IDataBindingsAccessor
INamingContainer
IParserAccessor
IPostBackDataHandler
IPostBackEventHandler
IStateManager
ITagNameToTypeMapper
ITemplate
IValidator
ImageClickEventHandler
OutputCacheLocation
PersistanceMode
StateItem
* System.Web.UI.HtmlControls
HtmlAnchor impl (Leen Teolen)
HtmlTextArea impl (Leen Teolen)
* System.Web.UI.WebControls
WebControl.cs (Gaurav Vaish)
* System.XML
Lots of enumerations (Miguel)
(will add later)
* Add loads of enumerations throughout (Sergey)
(will add later)
Compiler Changes:
* Assignment (Miguel)
* expression semantic analysis (Miguel)
* constructor creation, chaining (Miguel)
* Unified error reporting (Ravi)
* initial attribute support (Ravi)
* calling convention support (Miguel)
* loop construct code generation (Miguel)
* conditional statement code generation (Miguel)
* indexer declarations (Ravi)
* event declarations (Ravi)
* try/catch parsing fixed (Ravi)
* initial delegate support (Ravi)
* operator overload (Ravi)
Tools Changes:
* Add NUnit windows binaries to distribution (Nick Drochak, Miguel)
Runtime Changes:
* First JIT implementation (Dietmar, Paolo)
* value type size calculation (Dietmar)
* full value type support (Paolo)
* frequently used types cache (Paolo)
* FileStream support (Paolo)
* Console input/output support (Dietmar)
* print arguments and exception name in stack trace (Paolo)
* beginnings of virtual call support (Paolo)
* reimplement pinvoke support (Dietmar)
* remove libffi dependency (Dietmar)
* IBURG code generator implementation (Dietmar)
* new opcodes implemented: starg.s, ldobj, isinst, (Paolo, Miguel)
ldarg, starg, ldloc, ldloca, stloc, initobj,
cpblk, sizeof, conv.i, conv.i1, conv.i2, conv.i4,
conv.i8, conv.u1, conv.u2, conv.u4, conv.r4,
conv.r8, ldelema, ceq, cgt, clt.
* This list
Parts of this list of features were compiled by Alex by following
the CVS mailing list. My deepest thanks to Alex for helping me out
with this. I want to apologize for the missing features that I did
not document here, Mono is moving too fast to keep track of all the
changes.
2002-Feb-11 Miguel de Icaza <[email protected]>
New release, functional x86-JIT, x86 interpreter, ppc interpreter
+33 -19
View File
@@ -8,17 +8,40 @@ Installation:
http://www.go-mono.com/download.html
A directory roadmap:
* Using Mono
Once you have installed the software, you can run a few programs:
* runtime engine
mono program.exe
or
mint program.exe
* C# compiler
mcs program.cs
* CIL Disassembler
monodis program.exe
See the man pages for mono(1), mint(1), monodis(1) and mcs(2)
for further details.
* A directory roadmap:
doc/
Contains documentation and the web site contents.
mono/
The core of the executable.
The core of the Mono Runtime.
metadata/
The library to deal with executables and libraries for
.NET
The object system and metadata reader.
jit/
The Just in Time Compiler.
dis/
CIL executable Disassembler
@@ -26,6 +49,10 @@ A directory roadmap:
cli/
Common code for the JIT and the interpreter.
io-layer/
The I/O layer and system abstraction for
emulating the .NET IO model.
cil/
Common Intermediate Representation, XML
definition of the CIL bytecodes.
@@ -33,20 +60,7 @@ A directory roadmap:
interp/
Interpreter for CLI executables.
* Using Mono
Once you have installed the software, you can run a few programs:
monodis program.exe
That will dump the bytecodes for program.exe. Monodis support
a number of options that dumps various metadata tables
(chapter 23 of the Partition III).
You can try the interpreter like this:
mint program.exe
arch/
Architecture specific portions.
+1 -1
View File
@@ -5,7 +5,6 @@
#undef HAVE_SOL_TCP
#undef HAVE_IP_PKTINFO
#undef HAVE_STRUCT_IP_MREQN
#undef HAVE_PTHREAD
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
#undef USE_MONO_MUTEX
#undef HAVE_LARGE_FILE_SUPPORT
@@ -18,3 +17,4 @@
#undef HAVE_TIMEZONE
#undef HAVE_TM_GMTOFF
#undef MONO_SIZEOF_SUNPATH
#undef NEED_LINK_UNLINK
-51
View File
@@ -1,51 +0,0 @@
/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
#undef HAVE_INET_PTON
#undef HAVE_INET_ATON
#undef HAVE_SOL_IP
#undef HAVE_SOL_TCP
#undef HAVE_IP_PKTINFO
#undef HAVE_STRUCT_IP_MREQN
#undef HAVE_PTHREAD
#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK
#undef USE_MONO_MUTEX
#undef HAVE_LARGE_FILE_SUPPORT
#undef PLATFORM_WIN32
#undef HAVE_NEW_ICONV
#undef NAME_DEV_RANDOM
#undef HAVE_CRYPT_RNG
#undef HAVE_BOEHM_GC
/* The number of bytes in a void *. */
#undef SIZEOF_VOID_P
/* Define if you have the inet_aton function. */
#undef HAVE_INET_ATON
/* Define if you have the inet_pton function. */
#undef HAVE_INET_PTON
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H
/* Define if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
/* Define if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H
/* Define if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* Name of package */
#undef PACKAGE
/* Version number of package */
#undef VERSION
+83 -122
View File
@@ -1,25 +1,44 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono, 0.13)
AM_INIT_AUTOMAKE(mono, 0.16)
AM_MAINTAINER_MODE
dnl ****************************************
dnl *** Check if we're building on win32 ***
dnl ****************************************
AC_MSG_CHECKING([if building for some Win32 platform])
# Thread configuration inspired by sleepycat's db
AC_MSG_CHECKING([host platform characteristics])
case "$host" in
*-*-mingw*|*-*-cygwin*)
platform_win32=yes
AC_DEFINE(PLATFORM_WIN32)
CC="gcc -mno-cygwin"
HOST_CC="gcc"
CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS"
libdl=
;;
*-*-*bsd*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
LDFLAGS="$LDFLAGS -pthread"
AC_DEFINE(NEED_LINK_UNLINK)
libdl=
;;
*-*-linux*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT"
libdl="-ldl"
;;
*-*-solaris*)
platform_win32=no
CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT"
AC_DEFINE(NEED_LINK_UNLINK)
;;
*)
AC_MSG_WARN([*** Please add $host to configure.in checks!])
platform_win32=no
libdl="-ldl"
;;
esac
AC_MSG_RESULT($platform_win32)
AC_MSG_RESULT(ok)
AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
AC_CHECK_TOOL(CC, gcc, gcc)
@@ -27,6 +46,12 @@ AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_INSTALL
AC_CHECK_PROG(BISON, bison,yes,no)
if test "x$BISON" = "xno";
then
AC_MSG_ERROR([You need to install bison])
fi
dnl may require a specific autoconf version
dnl AC_PROG_CC_FOR_BUILD
dnl CC_FOR_BUILD not automatically detected
@@ -45,14 +70,14 @@ AC_HEADER_STDC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h)
AC_CHECK_HEADERS(iconv.h)
AC_CHECK_HEADERS(giconv.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h)
# for mono/metadata/debug-symfile.c
AC_CHECK_HEADERS(elf.h)
# for mono/dis
AC_CHECK_HEADERS(wchar.h)
# not 64 bit clean in cross-compile
AC_CHECK_SIZEOF(void *, 4)
@@ -98,7 +123,8 @@ AC_SUBST(GLIB_LIBS)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes")
AC_CHECK_HEADERS(gc.h gc/gc.h)
AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
gc=auto
AC_ARG_WITH(gc, [ --with-gc=boehm,none],[gc=$with_gc])
@@ -110,23 +136,21 @@ case "x$gc" in
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
LIBS="$LIBS -lgc"
LIBS="$LIBS -lgc $libdl"
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
;;
*)
dnl When the JIT works with libgc, use this chunk.
dnl # If libgc was found, use it. Otherwise just warn.
# If libgc was found, use it. Otherwise just warn.
if test "x$found_boehm" != "xyes"; then
AC_MSG_WARN("Compiling mono without GC.")
else
AC_DEFINE(HAVE_BOEHM_GC)
AC_SUBST(HAVE_BOEHM_GC)
LIBS="$LIBS -lgc"
LIBS="$LIBS -lgc $libdl"
gc="boehm"
fi
dnl AC_MSG_WARN("Compiling mono without GC.")
;;
esac
@@ -272,6 +296,7 @@ if test x$platform_win32 = xno; then
AC_MSG_CHECKING(size of sockaddr_un.sun_path)
AC_CACHE_VAL(cv_mono_sizeof_sunpath,
[AC_TRY_RUN([
#include <sys/types.h>
#include <stdio.h>
#include <sys/un.h>
@@ -288,87 +313,43 @@ if test x$platform_win32 = xno; then
AC_MSG_RESULT($cv_mono_sizeof_sunpath)
AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $cv_mono_sizeof_sunpath)
dnl *****************************
dnl *** Checks for libxnet ***
dnl *****************************
case "${host}" in
*solaris* )
AC_MSG_CHECKING(for Solaris XPG4 support)
if test -f /usr/lib/libxnet.so; then
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
LIBS="$LIBS -lxnet"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -Wno-char-subscripts"
fi
;;
esac
dnl *****************************
dnl *** Checks for libpthread ***
dnl *****************************
AC_SEARCH_LIBS(pthread_create, pthread c_r, [
AM_CONDITIONAL(THREADS_PTHREAD, true)
AC_DEFINE(HAVE_PTHREAD)
# Need pthread_mutex_timedlock
pthread_CFLAGS=""
orig_CPPFLAGS=$CPPFLAGS
# This is a gcc-specific error, but we already set
# gcc-specific options in CFLAGS
CPPFLAGS="$CPPFLAGS -Werror-implicit-function-declaration"
AC_MSG_CHECKING(for pthread_mutex_timedlock)
AC_TRY_COMPILE([ #include <pthread.h>], [
pthread_mutex_t mut=PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_timedlock(&mut, NULL);
], [
# Works!
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_MUTEX_TIMEDLOCK)
], [
AC_MSG_RESULT(no)
# glibc requires -D_GNU_SOURCE before it will declare
# this function
AC_MSG_CHECKING(whether _GNU_SOURCE is needed for pthread_mutex_timedlock)
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
AC_TRY_COMPILE([ #include <pthread.h>], [
pthread_mutex_t mut=PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_timedlock(&mut, NULL);
], [
AC_MSG_RESULT(yes)
pthread_CFLAGS="-D_GNU_SOURCE"
AC_DEFINE(HAVE_PTHREAD_MUTEX_TIMEDLOCK)
], [
AC_MSG_RESULT(no)
dnl Add other variants here
AC_MSG_WARN(Working around pthread_mutex_timedlock)
])
])
CPPFLAGS=$orig_CPPFLAGS
CPPFLAGS="$CPPFLAGS $pthread_CFLAGS"
# Need PTHREAD_MUTEX_RECURSIVE
pthread_CFLAGS=""
orig_CPPFLAGS=$CPPFLAGS
# This is a gcc-specific error, but we already set
# gcc-specific options in CFLAGS
CPPFLAGS="$CPPFLAGS -Werror-implicit-function-declaration"
AC_MSG_CHECKING(for PTHREAD_MUTEX_RECURSIVE)
AC_TRY_COMPILE([ #include <pthread.h>], [
pthread_mutexattr_t attr;
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
], [
# Works!
AC_MSG_RESULT(ok)
], [
AC_MSG_RESULT(no)
# glibc requires -D_GNU_SOURCE before it will declare
# this macro
AC_MSG_CHECKING(whether _GNU_SOURCE is needed for PTHREAD_MUTEX_RECURSIVE)
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
AC_TRY_COMPILE([ #include <pthread.h>], [
pthread_mutexattr_t attr;
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
], [
AC_MSG_RESULT(ok)
pthread_CFLAGS="-D_GNU_SOURCE"
], [
AC_MSG_RESULT(no)
dnl Add other variants here
AC_MSG_WARN(Using mono_mutex_t for recursive mutexes)
AC_DEFINE(USE_MONO_MUTEX)
])
])
CPPFLAGS=$orig_CPPFLAGS
CPPFLAGS="$CPPFLAGS $pthread_CFLAGS"
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
AC_CHECK_FUNCS(pthread_mutex_timedlock)
AC_MSG_CHECKING(for PTHREAD_MUTEX_RECURSIVE)
AC_TRY_COMPILE([ #include <pthread.h>], [
pthread_mutexattr_t attr;
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
], [
AC_MSG_ERROR([libpthread is required on non-win32 hosts])
AC_MSG_RESULT(ok)
], [
AC_MSG_RESULT(no)
AC_MSG_WARN(Using mono_mutex_t for recursive mutexes)
AC_DEFINE(USE_MONO_MUTEX)
])
dnl ********************************
@@ -402,12 +383,8 @@ if test x$platform_win32 = xno; then
fi
fi
else
AM_CONDITIONAL(THREADS_PTHREAD, false)
# This is a kludge, we really ought to test for libws2_32, but
# I can't make AC_CHECK_LIB link (the symbols seem to be mangled
# with @num suffixes)
LIBS="$LIBS -lws2_32"
CFLAGS="$CFLAGS -mno-cygwin"
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
fi
dnl ****************************
@@ -475,27 +452,6 @@ if test "x$ac_cv_have_dev_random" = "xno" \
***]])
fi
if test "x$cross_compiling" = "xno"; then
# check for new iconv version
AC_MSG_CHECKING(for new iconv)
AC_CACHE_VAL(new_iconv,[
AC_TRY_RUN([#include <stdio.h>
#include <iconv.h>
int main()
{
exit (iconv_open ("UTF-16le", "UTF-8") == (iconv_t)-1);
}
],
new_iconv=yes,new_iconv=)])
if test -n "$new_iconv"; then
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_NEW_ICONV)
else
AC_MSG_RESULT(no)
fi
fi
AC_MSG_CHECKING([if inter-process shared handles are requested])
AC_ARG_ENABLE(shared-handles, [ --disable-shared-handles disable inter-process shared handles], try_shared_handles=$enableval, try_shared_handles=yes)
AC_MSG_RESULT($try_shared_handles)
@@ -513,7 +469,7 @@ i*86-*-*) TARGET=X86; arch_target=x86;;
sparc*-*-*) TARGET=SPARC; arch_target=sparc; ACCESS_UNALIGNED="no";;
#alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; ACCESS_UNALIGNED="no";;
#m68k-*-linux*) TARGET=M68K;;
powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; arch_target=ppc;;
macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | powerpc-*-sysv*) TARGET=POWERPC; arch_target=ppc;;
arm-*-linux-* | armv4l-*-linux-*) TARGET=ARM; arch_target=arm; ACCESS_UNALIGNED="no";;
esac
@@ -535,6 +491,9 @@ AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
AM_CONDITIONAL(ARM, test x$TARGET = xARM)
LIBC="libc.so.6"
AC_SUBST(LIBC)
AC_SUBST(arch_target)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
@@ -568,6 +527,8 @@ scripts/Makefile
man/Makefile
doc/Makefile
docs/Makefile
data/Makefile
mono.spec
])
echo "
+9
View File
@@ -0,0 +1,9 @@
monodir = $(sysconfdir)/mono
EXTRA_DIST = config.in
mono_DATA = config
config: config.in Makefile
sed -e 's^\@LIBC\@^libc.so.6^g' < $(srcdir)/config.in > config.tmp \
&& mv config.tmp config
+5
View File
@@ -0,0 +1,5 @@
<configuration>
<dllmap dll="cygwin1.dll" target="@LIBC@" />
<dllmap dll="libc" target="@LIBC@" />
<dllmap dll="libxslt.dll" target="libxslt.so" />
</configuration>
+15 -10
View File
@@ -29,23 +29,26 @@
<b>Step 2:</b> <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDataOleDb.asp?frame=true">System.Data.OleDb</a> Provider:
<ul>
* <p>On Unix systems: System.Data.OleDb will use the
* <p>On Unix systems: System.Data.OleDb uses the
<a href="http://www.gnome-db.org/">LibGDA</a>
engine.
<p>LibGDA is a data access engine like ADO/OLE-DB, but for Unix. The
GDA in libGDA stands for GNU/GNOME Data Access, but it does not require GNOME.
It only requires glib2 and libxml2. LibGDA is used by
libgnomedb, GNOME-DB, and gaSQL.
libgnomedb, GNOME-DB, and gaSQL.
<p>There is work under way to get libgda working under
Windows using Cygwin by the GNOME-DB developers.
<p>LibGDA has providers for MySQL, PostgreSQL, XML, ODBC,
and MDB Tools (MS Access support).
Oracle, Interbase, Sybase/SQL server (via FreeTDS), IBM DB2,
SQLite and MDB Tools
(MS Access support).
* On Windows systems: System.Data.OleDb will use OLE-DB as
its engine. It may have the option of using libgda too.
* On Windows systems: System.Data.OleDb will use libgda as well,
if we can get it working, or OLE-DB as
its engine.
</ul>
<b>Step 3:</b> <a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdatasqlclient.asp?frame=true">System.Data.SqlClient</a> Provider:
@@ -58,7 +61,7 @@
<p>Once Step 1 has been completed and the PostgreSQL
provider support has been moved to its own place at
System.Data.PostgreSQL, we will use
Mono.Data.PostgreSQL, we will use
<a href="http://www.freetds.org/">FreeTDS</a> as the basis
for providing access to Microsoft SQL Server databases.
@@ -111,11 +114,13 @@
<p>For Step 1, the PostgreSQL is starting to come together - it
still needs a lot of work.
<p>For Step 2, Rodrigo Moya has begun System.Data.OleDb which will use libgda
<p>For Step 2, Rodrigo Moya has been working on System.Data.OleDb which uses libgda
which is an OLE-DB/ADO data access for Unix. The C-Sharp bindings to libgda
currently work - meaning they can compile, run, and you can connect to a
PostgreSQL database via libgda via the C-Sharp bindings to libgda. He has also
added class stubs for System.Data.OleDb to cvs.
PostgreSQL database via libgda via the C-Sharp bindings to libgda. Basic
functionality (execution of commands, data retrieval, transactions, etc) are
now working. Current focus is on filling up the missing pieces (Data adapters
mainly).
<p>For Step 3, we need someone to start the FreeTDS .NET Data Provider so
we can have data access to Microsoft SQL Server and Sybase databases, or either
@@ -386,7 +391,7 @@
one locally. PostgreSQL is the DBMS used for the initial
implementation of System.Data.SqlClient.
<p>Why? Because it is open source, has a client
<p>Why? Because it is free software, has a client
library that is easy to use, PostgreSQL is easy to install on
Unix and Windows (using the Cygwin install program), not difficult to setup after
installation, and it runs under: Linux,
+27 -19
View File
@@ -12,11 +12,11 @@
programs can be run using the Mono runtime and the XSP page
parser.
Tim started work on the Web Services early this week.
Although we have a SoapFormatter as part of the remoting
infrastructure already (contributed by Jesus), most people
will be using the ASP.NET Web-services support. Work for the
supporting class libraries just started recently.
Tim started work on the Web Services. Although we have a
SoapFormatter as part of the remoting infrastructure already
(contributed by Jesus), most people will be using the ASP.NET
Web Services support. Work for the supporting class libraries
just started recently.
* Web Forms: The pieces
@@ -41,7 +41,7 @@
files and generated the code required to run them (the code lives in
module `xsp' along with a little web server for testing).
Most of the runtime support was mostly written by Patrik Torstensson
Most of the runtime support was written by Patrik Torstensson
(now at Intel). This was interesting, because in order to implement
some of its features, Patrik had to go into the runtime/JIT engine and
he spent a few weeks doing work there.
@@ -56,14 +56,18 @@
** HttpRuntime
Patrik has authored most of the HttpRuntime support (both on
the System.Web and on the foundation) but it is still not
ready to run.
the System.Web and on the foundation).
He is now working on finishing HttpRuntime and a few needed
classes.
** XSP
Currently XSP provides the .aspx compiler to C#. It would be
interesting to see if it makes sense to extend the ASP.NET
syntax to make it simpler to develop applications.
Currently XSP provides the .aspx compiler to C#.
There is also a small web server for testing in module xsp
along with a bunch of .aspx pages to test the server.
The C# code generator is being moved to System.Web.Compilation.
Gonzalo is in charge of the compiler.
@@ -73,10 +77,11 @@
implement the controls (UI.HtmlControls and UI.WebControls),
but they have been coded mostly in the dark, and without being
able to test them in real life: Gaurav and Leen worked very
hard on this namespace, but needs to be finished.
hard on this namespace.
We can now render all HtmlControls and some WebControls. Work is
ongoing to make all WebControls render HTML.
We can now render all HtmlControls and almost all WebControls.
DataGrid and DataList controls are being finisehd by Gaurav.
Xml control needs some work on System.Xml related to XSL.
** Extending ASP.NET
@@ -101,16 +106,19 @@
but using our generated page.
4. Run the sample with our classes with the .NET runtime.
<b>We are here</b>.
5. Finish HttpRuntime.
5. Run the samples with our classes with the our runtime (without
using HttpRuntime).
6. Finish HttpRuntime.
<b>We are here</b>.
6. Running our sample code with our classes with our runtime.
7. Running our sample code with our classes with our runtime.
** How to Help
Currently we are testing and fixing HtmlControls, WebControls and
validators.
Testing and fixing HtmlControls, WebControls and validators is an
easy way to help.
In the CVS module XSP you can find the aspx to C# page parser,
a little web server used for testing and a directory containing
+12 -35
View File
@@ -2,17 +2,13 @@
MCS is currently able to compile itself and many more C#
programs (there is a test suite included that you can use).
It is routinely used to compile Mono, roughly half a million
lines of C# code.
We are in feature completion mode right now. There are still
a couple of areas that are not covered by the Mono compiler, but
they are very very few at this point.
MCS was able to parse itself on April 2001, MCS compiled itself
for the first time on December 28 2001. MCS became self hosting
on January 3rd, 2002.
The Mono Runtime and the Mono execution engine were able to make
our compiler self hosting on March 12, 2002.
they are very very few at this point (security attributes),
you can also browse the MCS <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FMCS&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">bugs</a> from Bugzilla.
A test suite is maintained to track the progress of
the compiler and various programs are routinely compiled and
@@ -27,8 +23,8 @@
** Running MCS
MCS is written in C# and uses heavily the .NET APIs. MCS runs
on Linux (with the Mono runtime) and Windows (with the .NET
framework runtime)
on Linux with the Mono runtime and on Windows with both the
.NET runtime and the Mono runtime.
** Reporting Bugs in MCS
@@ -103,33 +99,14 @@
able to use this generic CIL optimizer in their projects
reducing their time to develop a production compiler.
<a name="tasks">
** Current pending tasks
** History
Simple tasks:
MCS was able to parse itself on April 2001, MCS compiled itself
for the first time on December 28 2001. MCS became self hosting
on January 3rd, 2002.
<ul>
* Redo the way we deal with built-in operators.
</ul>
Larger tasks:
<ul>
* Jay does not work correctly with `error'
productions, making parser errors hard to point. It
would be best to port the Bison-To-Java compiler to
become Bison-to-C# compiler.
Nick Drochak has started a project on SourceForge for this.
You can find the project at: <a href="http://sourceforge.net/projects/jb2csharp/">
http://sourceforge.net/projects/jb2csharp/</a>
* Semantic Analysis: Return path coverage and
initialization before use coverage are two great
features of C# that help reduce the number of bugs
in applications. It is one interesting hack.
</ul>
The Mono Runtime and the Mono execution engine were able to make
our compiler self hosting on March 12, 2002.
** Questions and Answers
+24 -4
View File
@@ -6,10 +6,11 @@
If you are not a developer, but want to track the development, please
see the <a href="anoncvs.html">AnonCVS</a> instructions.
Send an e-mail to miguel with your public SSH key for this
purpose. Please specify if the key was generated with SSH1 or SSH2.
Send an e-mail to miguel with your public OpenSSH key for this
purpose. Please specify if the key was generated with SSH version 1
or version 2.
If you are using SSH2, please generate your key using:
If you are using SSH version 2, please generate your key using:
<pre>
ssh-keygen -t rsa
@@ -17,13 +18,32 @@
And mail me the id_rsa.pub file.
If you are using SSH1, run:
If you are using SSH version 1, run:
<pre>
ssh-keygen
</pre>
And mail me your identity.pub file.
If you are using SSH from SSH Communications Security (they offer
a free SSH client for personal use), you have to use OpenSSH to
convert your public key to the required format. You have to use
OpenSSH's ssh-keygen program and write the following:
<pre>
ssh-keygen -i -f id_XXX.pub > my_public_key.pub
</pre>
where the file <pre>id_XXX.pub</pre> is your public key file,
normally located under <pre>~/.ssh/</pre> or <pre>~/.ssh2/</pre>.
Send to miguel the <pre>my_public_key.pub</pre> file.
The *exact* format for this file must be:
<pre>
ssh-rsa XXXXX....
</pre>
You will need CVS and SSH. Windows users can get both by
installing Cygwin (<a
href="http://www.cygwin.com">http://www.cygwin.com</a>)
+32 -70
View File
@@ -14,87 +14,49 @@
and updating class library documentation, including:
<ul>
<li><a href="#docstub">docstub</a></li>
<li><a href="#docverify">docverify</a></li>
<li><a href="#docconv">docconv</a></li>
<li><a href="#docgen">docgen</a></li>
<li><a href="#monodoc">monodoc</a></li>
<li><a href="#monodoc">MonoDoc - A graphical documentation editor and viewer.</a></li>
<li><a href="#mkmaster">MkMaster - A command line tool to feed stub information to MonoDoc.</a></li>
<li><a href="#aspnet">An ASP.NET documentation editor.</a></li>
<li><a href="#xsltool">An xsl tool to convert monodoc xml to html documentation.</a></li>
</ul>
** XML Documentation Files and Formats
*** Monodoc XML
This XML is similar to the XML documentation described in the
C# standard, with added tags for internationalization and a
slightly different structure. Documentation and a DTD/Schema
for Monodoc XML is forthcoming.
Monodoc XML does not contain any definitive type information,
and is only useful in conjunction with the Type definition for
whatever is being documented.
This XML could be generated by hand, by monostub, or by monodoc.
*** Assembly XML
This XML is generated by combining runtime type information for
an Assembly with a collection of Monodoc XML files. The resultant
XML (in the best of cases) contains both complete type and
documentary information for each type in the assembly.
This XML contains enough information to be transformed into
user-accessible documentation. It is likely that scripts
will be created to generate reference docs as HTML and other
formats.
Documentation and a DTD/Schema for Assembly XML is forthcoming.
This XML is Mono's documentation format. Documentation and a DTD/Schema
for Monodoc XML is located in cvs and can be found <a href="http://go-mono.org/monodoc.dtd">here</a>.
This XML could be generated by MonoDoc or the ASP.NET client.
More about the XML format <a href="http://go-mono.org/monodoc-xml.html">here</a>.
** Documentation Tools
*** <a name="docstub">docstub</a>
Given a type name and an assembly, generates stub Monodoc XML
documentation for the type. Optionally, docstub can attempt to
populate initial documentation from an XML file in the format
published along with the ECMA standard.
*** <a name="docverify">docverify</a>
Given a Monodoc XML file and an assembly, verifies that the
documentation matches the compiled type. Checks signatures,
parameters, et cetera.
*** <a name="docconv">docconv</a>
Converts from Monodoc XML to the standard C# compiler-emitted
XML format and vice versa.
*** <a name="docgen">docgen</a>
Given an assembly and a collection of Monodoc XML files, creates
an Assembly XML file containing all documentation and type information
available. This output is suitable for transforming into user
documentation.
*** <a name="monodoc">monodoc</a>
A GUI tool for documentation and translation, this encapsulates
the capabilities of docstub, docverify, docconv, and docgen in
a friendly user interface. In addition, monodoc provides features
to ease translation, such as side-by-side editing and coverage
statistics.
*** <a name="monodoc">MonoDoc</a>
A graphical documentation editor and viewer. Currently, MonoDoc
consists of a Qt# application and is in heavy development.
*** <a name="mkmaster">MkMaster</a>
This tool creates the Master.xml file that MonoDoc uses as a reference
for documentation generation. This is a reflection engine that is used
to gather metadata from assemblies and create an xml representation.
*** <a name="aspnet">ASP.NET</a>
This tool is planned.
*** <a name="xsltool">An XSL converter</a>
This tool is planned. If someone wants to step forward and adopt this
project, it would be very helpful ;)
** Status and Roadmap
*** 2 January 2002
*** 16, September 2002
As I write the initial version of this document, very little has been
implemented. Currently, there is a:
<ul>
<li>Preliminary version of the Monodoc XML format</li>
<li>Preliminary version of the docstub utility</li>
</ul>
Here's hoping for frequent, productive updates.
A preliminary version of MonoDoc is in Mono's cvs. It is under heavy development.
Once this is complete we will start documenting the API!
** Get Involved
Help us define Mono's documentation structure! Subscribe to
Help us develop Mono's documentation tools! Subscribe to
<a href="http://lists.ximian.com/mailman/listinfo/mono-docs-list">mono-docs-list</a>
and wade right in.
+1 -1
View File
@@ -9,5 +9,5 @@
href="http://primates.ximian.com/~miguel">http://primates.ximian.com/~miguel"</a>
You can also <a
href="http://www.ximian.com/about/contact.php3">reach Ximian.</a>
href="http://www.ximian.com/about_us/contact/">reach Ximian.</a>
+253 -275
View File
@@ -6,72 +6,158 @@
href="runtime.html">Runtime</a> description for more details
on this part of the project.
The code for the C# compiler as well as the language error
test suite and the class library are in the `mcs' package, we
will move this later into `mono' itself.
Some useful links: <a
href="http://www.go-mono.org/mono-beginning.html">Resources/Beginning
section</a>, the <a
href="http://www.go-mono.org/faq.html">FAQ</a> and the <a
href="http://geneura.ugr.es/~jaime/deploy/mono-common-problems.html">
Mono Common Problems</a>.
In order to make mcs and the class libraries you will need a computer
running Windows with the <strong>GNU make tools</strong> from the
<strong>Cygwin</strong> environment, <strong>Microsoft's .NET Framework
SDK</strong>, <strong>GLIB 2.0</strong> and
<strong>pkg-config</strong>.
<table>
<tbody>
<tr bgcolor="#DDDDDD">
<td>
<b>Release 0.15</b><br>
<a href="archive/mono-0.15">Release notes</a><br>
Aug 23rd, 2002.
</td>
<td>
<table cellspacing="1" cellpadding="3">
<tr bgcolor="#BBBBBB">
<td>
<b>Source Code</b>
</td>
<td>
<ul>
<li><a href="archive/mcs-0.15.tar.gz">Mono Class Libraries and C# Compiler.</a>
<li><a href="archive/mono-0.15.tar.gz">Mono Runtime</a>
<li><a href="archive/gc6.1alpha5.tar.gz">Boehm GC 6.1alpha5</a>
</ul>
</td>
</tr>
<tr bgcolor="#BBBBBB">
<td>
<b>Source RPMs</b>
</td>
<td>
<ul>
<li><a href="archive/libgc-6.1alpha5-1.src.rpm">libgc-6.1alpha5-1.src.rpm</a>
<li><a href="archive/mono-0.15-1.src.rpm">mono-0.15-1.src.rpm</a>
</ul>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="#999999">
<b>Red Hat 7.3/x86</b>
<ul>
<li><a href="archive/redhat-73-i386/libgc-6.1alpha5-1.i386.rpm">libgc-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/libgc-devel-6.1alpha5-1.i386.rpm">libgc-devel-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-0.15-1.i386.rpm">mono-0.15-1.i386.rpm</a>
<li><a href="archive/redhat-73-i386/mono-devel-0.15-1.i386.rpm">mono-devel-0.15-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Red Hat 7.1/x86</b>
<ul>
<li><a href="archive/redhat-71-i386/libgc-6.1alpha5-1.i386.rpm">libgc-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/libgc-devel-6.1alpha5-1.i386.rpm">libgc-devel-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/mono-0.15-1.i386.rpm">mono-0.15-1.i386.rpm</a>
<li><a href="archive/redhat-71-i386/mono-devel-0.15-1.i386.rpm">mono-devel-0.15-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#999999">
<b>Mandrake 8.2/x86</b>
<ul>
<li><a href="archive/mandrake-82-i386/libgc-6.1alpha5-1.i586.rpm">libgc-6.1alpha5-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/libgc-devel-6.1alpha5-1.i586.rpm">libgc-devel-6.1alpha5-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-0.15-1.i586.rpm">mono-0.15-1.i586.rpm</a>
<li><a href="archive/mandrake-82-i386/mono-devel-0.15-1.i586.rpm">mono-devel-0.15-1.i586.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
<b>SuSE 8.0/x86</b>
<ul>
<li><a href="archive/suse-80-i386/libgc-6.1alpha5-1.i386.rpm">libgc-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/libgc-devel-6.1alpha5-1.i386.rpm">libgc-devel-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/mono-0.15-1.i386.rpm">mono-0.15-1.i386.rpm</a>
<li><a href="archive/suse-80-i386/mono-devel-0.15-1.i386.rpm">mono-devel-0.15-1.i386.rpm</a>
</ul>
</td>
</tr>
<tr bgcolor="#999999">
<td>
<b>Windows (win95 friendly)</b>
<ul>
<li><a href="archive/mono-w32-Aug_28_2002.zip">Mono-w32</a>
</ul>
</td>
<td bgcolor="#999999">
<b>Windows Setup Wizard (NT/2000/XP)</b>
<ul>
<li><a href="http://www.sport-huettn.de/mono/mono-0.15-stable.exe">Mono-Setup</a>
</ul>
</td>
</tr>
<tr bgcolor="#999999">
<td bgcolor="#999999">
<b>Red Hat null-8.0/x86</b>
<ul>
<li><a href="archive/redhat-null-i386/libgc-6.1alpha5-1.i386.rpm">libgc-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/redhat-null-i386/libgc-devel-6.1alpha5-1.i386.rpm">libgc-devel-6.1alpha5-1.i386.rpm</a>
<li><a href="archive/redhat-null-i386/mono-0.15-1.i386.rpm">mono-0.15-1.i386.rpm</a>
<li><a href="archive/redhat-null-i386/mono-devel-0.15-1.i386.rpm">mono-devel-0.15-1.i386.rpm</a>
</ul>
</td>
<td bgcolor="#999999">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<tr bgcolor="#CCCCC">
<td>
<b>Regression Tests</b><br>
</td>
<td>
You can get binaries for the Mono Regression Test
Suite <a href="archive/mono-tests.tar.gz">here</a>
</td>
</tr>
</tbody>
</table>
When installing Cygwin, don't forget to include
<tt>mingw-runtime</tt>. If you omit this, you will encounter
configure problems regarding not being able to generate
executables.
** Binaries for other platforms.
<a name="sources">
*** Sources
Stay up to date on the Mono team's development using the
<a href="http://lists.ximian.com/mailman/listinfo/mono-cvs-list">
mono-cvs-list</a> mailing list. The CVS source code can also
be browsed <a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/?cvsroot=Mono#dirlist">here</a>
<a name="jun-7">
<b>Mono 0.13</b>
New packaged versions of the Mono C# compiler and Mono runtime
are now available. The latest version is 0.13.
Already daily volunteer's made binaries:
<ul>
* <a href="archive/mono-0.13">Mono 0.13 release notes</a>
* <a href="archive/mcs-0.13.tar.gz">mcs-0.13.tar.gz</a>
Mono C# compiler with class library source code.
* <a href="archive/mono-0.13.tar.gz">mono-0.13.tar.gz</a>
Mono runtime.
</ul>
* Snapshots
Volunteers package up daily the sources:
<ul>
* <a href="http://www.atoker.com/mono">Debian Linux</a>
* <a href="http://mono.baselabs.org/index.php/software">Red Hat Linux</a>
* <a href="http://www.debianplanet.org/mono/">DebianPlanet</a>
* <a href="http://www.superin.formativ.net/mono/mono.htm">Windows</a> (works without cygwin!)
</ul>
* Snapshots
<a name="snapshots">
For up to date sources, it is recommended that you use the Mono
source code from either the
<a href="http://www.go-mono.com/snapshots">nightly snapshots</a> or
the <a href="anoncvs.html">Anonymous CVS</a>. The nightly
snapshots are done every night at 10pm EST (Boston Time).
The nightly snapshots are not guaranteed to build, but most of the
time they should. They should give you a window to see what we are
up to.
<a href="http://www.go-mono.com/snapshots">Nightly snapshots</a> of
the CVS repository are made every day at 10pm EST (Boston
Time). These are not guaranteed to build, they are just a
snapshot of the tree.
You can download the GNU make tools and the Cygwin environment from
<a href="http://www.cygwin.com">www.cygwin.com</a>.
The <a href="anoncvs.html">anoncvs</a> mirrors provided by
Hispalinux are updated every six hours.
You can download Microsoft's .NET Framework SDK from
<a href="http://msdn.microsoft.com/downloads">
msdn.microsoft.com/downloads</a>.
* Compiling with scripts
There are scripts to help build mono for both Unix and Windows. Get
<a href="mono-build.sh">mono-build.sh</a> for Unix, or <a
@@ -92,25 +178,117 @@
The script requires wget on either platform, and building the
software requires make, gcc, automake, autoconf, and libtool.
You should install these packages from your distribution or
with the cygwin installer.
with the cygwin installer. You should also take care of setting
the right environment variables as the PKG_CONFIG_FLAGS, etc.
The script will download required packages from
www.go-mono.com and do a cvs checkout of mono in the current
directory. The cvs server chosen defaults to anonymous cvs;
directory. <b>IMPORTANT!:</b> The cvs server chosen defaults to
anonymous cvs;
set your CVSROOT environment variable before running the script to
select a particular cvs server.
** Mono Regression Test Suite
You can get binaries for the Mono Regression Test Suite <a
href="archive/mono-tests.tar.gz">here</a>
<a name="install">
** Building the software manually
*** Download the required software.
You will need to obtain the Mono dependencies first: <a
href="http://www.gtk.org">glib 2.x</a> and
<a href="http://www.freedesktop.org/software/pkgconfig">pkg-config</a>.
*** Building on Linux
<ul>
Unpack the Mono runtime distribution:
<pre>
tar xzvf mono-X.XX.tar.gz
cd mono-X.XX
</pre>
<p>
Then configure, compile and install:
<pre>
./configure --prefix=/usr/local
make
make install</pre>
This will give you a runtime, C# compiler and runtime
libraries.
If you want to recompile the runtime and the compiler,
follow these steps, first unpack the MCS package:
<pre>
tar xzvf mcs-X.XX.tar.gz
cd mcs-X.XX
</pre>
Then use the following command to compile and install:
<pre>
make -f makefile.gnu install prefix=/usr/local
</pre>
You can change /usr/local to something else if you want.
</ul>
*** On Windows, to install and work on the compiler and the class libraries:
**** Install Cygwin and the GNU build tools, Microsoft's .NET Framework SDK and the precompiled GLIB 2.0 and pkg-config libraries.
<ul>
* Install <a href="http://www.cygwin.com">Cygwin</a>.
* Install <a href="http://msdn.microsoft.com/downloads">
Microsoft .NET Framework SDK</a>.
* Change to the /usr/local directory
of your Cygwin installation.<br>
Unzip the precompiled packages listed above.
</ul>
<ul>
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshot
</a>, untar the snapshot.
* Change directories to "mcs".
* Compile:
<pre>
make
</pre>
</ul>
*** On Windows, to compile the mono runtime:
<ul>
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshot
</a>, untar the snapshot.
* Change directories to "mono".
* Configure, compile and install:
<pre>
./configure --prefix=c:/mono
make
make install
</pre>
</ul>
* Software resources and notes
The required and additional software can be downloaded here:
* Microsoft's .NET Framework SDK from
<a href="http://msdn.microsoft.com/downloads">
@@ -121,14 +299,15 @@
Some people observed problems with autoconf 2.52. Installing
autoconf 2.13 helped in those cases.
* Precompiled GLIB 1.3 and pkg-config packages (and
* Precompiled GLIB 2.0 and pkg-config packages (and
their dependencies) by the <a href="http://www.gimp.org/~tml/gimp/win32//index.html">GIMP for Windows</a> project from
<a href="http://www.go-mono.com/archive/pkgconfig-0.80-tml-20020101.zip">http://www.go-mono.com/archive/pkgconfig-0.80-tml-20020101.zip</a>
<a href="http://www.go-mono.com/archive/glib-1.3.12-20020101.zip">http://www.go-mono.com/archive/glib-1.3.12-20020101.zip</a>
<a href="http://www.go-mono.com/archive/glib-dev-1.3.12-20020101.zip">http://www.go-mono.com/archive/glib-dev-1.3.12-20020101.zip</a>
<a href="http://www.go-mono.com/archive/libiconv-1.7.zip">http://www.go-mono.com/archive/libiconv-1.7.zip</a>
<a href="http://www.go-mono.com/archive/libiconv-dev-1.7.zip">http://www.go-mono.com/archive/libiconv-dev-1.7-20020101.zip</a>
<a href="http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip">http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip</a>
<a href="http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip">http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip</a><br>
<a href="http://www.go-mono.com/archive/glib-2.0.4-20020703.zip">http://www.go-mono.com/archive/glib-2.0.4-20020703.zip</a> <br>
<a href="http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip">http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip</a> <br>
<a href="http://www.go-mono.com/archive/libiconv-1.7.zip">http://www.go-mono.com/archive/libiconv-1.7.zip</a> <br>
<a href="http://www.go-mono.com/archive/libiconv-dev-1.7.zip">http://www.go-mono.com/archive/libiconv-dev-1.7-20020101.zip</a> <br>
<a href="http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip">http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip</a><br>
* Download the Mono source code from the
<a href="#feb-11">packaged versions</a> or
@@ -142,88 +321,7 @@
</ul>
*** Install Cygwin and the GNU build tools, Microsoft's .NET Framework SDK and the precompiled GLIB 1.3 and pkg-config libraries.
<ul>
* Install <a href="http://www.cygwin.com">Cygwin</a>.
* Install <a href="http://msdn.microsoft.com/downloads">
Microsoft .NET Framework SDK</a>.
* Change to the <strong>/usr/local</strong> directory
of your Cygwin installation.<br>
Unzip the precompiled packages listed above.
</ul>
*** On Windows, to install and work on the compiler and the class libraries:
<ul>
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshot
</a>, untar the snapshot.
* Change directories to <strong>"mcs"</strong>.
* Compile:
<pre>
<strong>make windows</strong>
</pre>
</ul>
*** On Windows, to compile the mono runtime:
<ul>
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshot
</a>, untar the snapshot.
* Change directories to <strong>"mono"</strong>.
* Configure, compile and install:
<pre><strong>
./configure --prefix=c:/mono
make
make install
</strong></pre>
</ul>
*** On Unix, to compile the mono runtime:
<ul>
* Install <a href="http://www.freedesktop.org/software/pkgconfig">pkg-config</a>.
* Install glib 1.3. You can download it
from <a href="ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz">ftp.gtk.org</a>. Maybe you need
to modify your ACLOCAL_FLAGS for pkg-config, for example if
your install prefix is /usr/local:
<pre>
<strong>export ACLOCAL_FLAGS="-I /usr/local/share/aclocal"</strong>
</pre>
* If you downloaded the Mono
<a href="http://www.go-mono.com/snapshots">nightly snapshots
</a>, untar the snapshot.
* Change directories to <strong>"mono"</strong>.
* Configure, compile and install:
<pre><strong>
./configure
make
make install</strong>
</pre>
</ul>
*** Notes on compiling GLIB 1.3 and pkg-config from source:
*** Notes on compiling GLIB 2.0 and pkg-config from source:
<ul>
@@ -238,12 +336,12 @@ make install</strong>
<nobr><tt>extern char *strsignal (int sig);</tt></nobr> to
<nobr><tt>extern const char *strsignal (int sig);</tt></nobr>.
<pre><strong>
<pre>
tar xzvf pkg-config-0.8.0.tar.gz
cd pkg-config-0.8.0
./configure --prefix=/usr
make
make install</strong>
make install
</pre>
* Download, compile and install <a href="ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.7.tar.gz">libiconv</a> from source.<br>
@@ -254,128 +352,8 @@ make install</strong>
* Download, compile and install the
<a href="ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.12.tar.gz">
glib 1.3</a> from source.
<a href="ftp://ftp.gtk.org/pub/gtk/v2.0/glib-2.0.6.tar.gz">
glib 2.0</a> from source.
</ul>
<a name="oldreleases">
*** Old releases.
<ul>
<ul>
<a name="apr-24">
<b>Mono 0.11; April 24, 2002</b>
* <a href="archive/mono-0.11">Mono 0.11 release notes</a>
* <a href="archive/mcs-0.11.tar.gz">mcs-0.11.tar.gz</a>
Mono C# compiler
* <a href="archive/mono-0.11.tar.gz">mono-0.11.tar.gz</a>
Mono runtime
</ul>
<ul>
<a name="mar-27">
<b>Mono 0.10; March 27, 2002</b>
* <a href="archive/mono-0.10">Mono 0.10 release notes</a>
* <a href="archive/mcs-0.10.tar.gz">mcs-0.10.tar.gz</a>
Mono C# compiler
* <a href="archive/mono-0.10.tar.gz">mono-0.10.tar.gz</a>
Mono runtime
</ul>
<ul>
<a name="feb-22">
<b>Mono 0.9; February 22, 2002</b>
* <a href="archive/mono-0.9">Mono 0.9 release notes</a>
* <a href="archive/mcs-0.9.tar.gz">mcs-0.9.tar.gz</a>
Mono C# compiler
* <a href="archive/mono-0.9.tar.gz">mono-0.9.tar.gz</a>
Mono runtime
</ul>
<a name="feb-11">
<b>February 11, 2002</b>
* <a href="archive/mcs-0.8.tar.gz">mcs-0.8.tar.gz</a>
Mono C# compiler
* <a href="archive/mono-0.8.tar.gz">mono-0.8.tar.gz</a>
Mono runtime
</ul>
<a name="sep-18">
<b>September 18, 2001</b>
<ul>
* <a href="archive/mono-0.7.tar.gz">mono-0.7.tar.gz</a>: Mono Runtime 0.7 release.
* <a href="archive/mcs-0.7.tar.gz">mcs-0.7.tar.gz</a>: Mono Compiler and Classes 0.7 release.
* <a href="archive/mono-0.7">Release Notes.</a>
</ul>
<a name="august-22">
<b>August 22, 2001</b>
<ul>
* <a href="archive/mono-0.6.tar.gz">mono-0.6.tar.gz</a>: Mono Runtime 0.6 release.
* <a href="archive/mono-compiler-classes-0.6.tar.gz">mono-compiler-classes-0.6.tar.gz</a>: Mono Compiler and Classes 0.6 release.
* <a href="archive/mono-0.6">Release Notes.</a>
</ul>
<a name="july-29">
<b>July 29, 2001</b>
<ul>
* <a href="archive/mono-0.5.tar.gz">mono-0.5.tar.gz</a>: Mono Runtime 0.5 release.
* <a href="archive/mono-0.5">Release Notes.</a>
</ul>
<a name="july-22">
<b>July 22, 2001</b>
<ul>
* <a href="archive/mcs-22-Jul-2001.tar.gz">mcs-22-Jul-2001.tar.gz</a>: CVS snapshot.
* <a href="archive/mcs-Jul-22-Jul-19-2001.tar.gz">Differences since 19</a>: CVS snapshot.
* <a href="archive/mcs-22">Release Notes.</a>
</ul>
<a name="july-19">
<b>July 19th, 2001</b>
<ul>
* <a href="archive/mcs-19-Jul-2001.tar.gz">mcs-19-Jul-2001.tar.gz</a>: CVS snapshot.
* <a href="archive/mcs-Jul-17-Jul-19-2001.tar.gz">Differences since 17</a>: CVS snapshot.
* <a href="archive/mcs-19">Release Notes.</a>
</ul>
<a name="july-17">
<b>July 17th, 2001</b>
<ul>
* <a href="archive/mcs-17-Jul-2001.tar.gz">mcs-17-Jul-2001.tar.gz</a>: CVS snapshot.
* <a href="archive/mcs-Jul-15-Jul-17-2001.tar.gz">Differences since 15</a>: CVS snapshot.
* <a href="archive/mcs-17">Release Notes.</a>
</ul>
<a name="july-15">
<b>July 15th, 2001</b>
<ul>
* <a href="archive/mcs-15-Jul-2001.tar.gz">mcs-15-Jul-2001.tar.gz</a>: CVS snapshot.
* <a href="archive/mono-0.4.tar.gz">mono-0.4.tar.gz</a>: Packaged Source Code.
* <a href="archive/mono-0.4">Release Notes.</a>
</ul>
<a name="july-14">
<b>July 14th, 2001</b>
<ul>
* <a href="archive/mcs-12-Jul-2001.tar.gz">mcs-12-Jul-2001.tar.gz</a>: CVS snapshot.
* <a href="archive/mono-0.3.tar.gz">mono-0.3.tar.gz</a>: Packaged Source Code.
</ul>
<a name="july-8">
<b>July 8th, 2001</b>
<ul>
* <a href="archive/mcs-08-Jul-2001.tar.gz">mcs-08-Jul-2001.tar.gz</a>: CVS Snapshot
* <a href="archive/mono-08-Jul-2001.tar.gz">mono-08-Jul-2001.tar.gz</a>: CVS Snapshot
</ul>
</ul>
+109 -165
View File
@@ -2,7 +2,6 @@
<a href="#ximian">The Ximian Role in the Mono project</a><br>
<a href="#gnome">Mono and GNOME</a><br>
<a href="#gui">Building GUI applications with Mono</a><br>
<a href="#winforms">Mono and WinForms</a><br>
<a href="#msft">Mono and Microsoft</a><br>
<a href="#pnpproject">Mono and the Portable.NET Project</a><br>
<a href="#webservices">Web Services</a><br>
@@ -18,9 +17,10 @@
<a href="#licensing">Licensing</a><br>
<a href="#patents">Patents</a><br>
<a href="#etc">Miscellaneous Questions</a><br>
<a href="#problems">Mono Common Problems</a><br>
A <a
href="http://www.es.gnome.org/documentacion/articulos/MONO-PUF/MONO-PUF/">spanish
href="http://www.es.gnome.org/documentacion/articulos/mono-puf/mono-puf/">Spanish
translation</a> is also available
<a name="basics"></a>
@@ -43,7 +43,7 @@ A: The ".NET Initiative" is a somewhat nebulous company-wide effort by
framework. Mono is an implementation of the development framework,
but not an implementation of anything else related to the .NET
Initiative, such as Passport, software-as-a-service, or
corporate rebranding.
corporate re-branding.
Q: What technologies are included in Mono?
@@ -96,7 +96,7 @@ A: Yes, we will be implementing the APIs of the .NET Framework SDK
Q: Will you offer an ECMA-compliant set of class libraries?
A: Eventually we will. Our current focus is on interoperating
A: Eventually we will. Our current focus is on inter-operating
with the Microsoft SDK, but we will also offer an ECMA compliant
set of libraries.
@@ -195,7 +195,7 @@ A: Mono will ship on various stages as they mature. Some people
require only a subset of the technologies, those will ship first.
More advanced features will take more time to develop. A support
timeline will be available in June 2002.
time line will be available in June 2002.
<a name="gnome"></a>
** Mono and GNOME
@@ -224,7 +224,7 @@ A: It is still far to early for discussions of "switching over." No
We encourage GNOME developers to continue using the existing tools,
libraries and components. Improvements made to GNOME will have an
impact on Mono, as they would be the "backend" for various classes.
impact on Mono, as they would be the "back-end" for various classes.
Q: Will Mono include compatibility with Bonobo components? What is the
relationship between Mono and Bonobo?
@@ -272,7 +272,7 @@ A: As long as your applications are 100% .NET and do not make use
of P/Invoke to call Win32 functions, your smart client applications
will run on Mono platforms.
Q: Where can I learn mora about Gtk#?
Q: Where can I learn more about Gtk#?
A: The following <a href="http://gtk-sharp.sourceforge.net>link</a> sends you to the page of the project.
@@ -299,47 +299,11 @@ A: There is a sample file called `DbClient' in gtk-sharp/samples that you
gtk-sharp/sample/DbClient, where there is a GTK# application that uses
System.Data. It does not use DataAdapter, but DataReader though.
<a name="winforms"></a>
** Mono and WinForms
Q: Can you tell me why aren't you implementing WinForms?.
A: (This is based in an original mail to mono-list written by Miguel de
Icaza. You should read it for completion, but the core part is here).
First, Windows.Forms is packed with quirks and is not that great of a
toolkit in the first place. Up to the point of the unconfirmed rumor
that Microsoft is working on a replacement for it.
Once the runtime is done, we will very likely start contributing to
the Gtk# project ourselves, and we will likely start doing feasibility
work on getting Mono used by Gnome developers: full gnome apps and
extending existing applications.
Those interested in hacking on Windows.Forms are welcome to do so,
but Ximian will not likely look at it in the near future; if there is
enough demand, or I can be convinced that Windows.Forms is useful for
something Ximian might re-evaluate our resource allocation for this
task.
By doing native ports, we could use the same API on all those systems.
Also, Gtk is mature enough, we know this because we have built an entire
desktop (and all sorts of very window system-specific hacks), and we
have built a bunch of productivity applications with it.
Q: What about VCL?.
Someone mentioned VCL. The only problem with the VCL is that it can
only be used for GPL applications (or I guess you could license it from
Borland for your app), and would have to be ported from Delphi to C#
(or someone would have to write a CIL compiler for it).
Q: What about doing something like the eclipse project (www.eclipse.org)?
A: The Eclipse toolkit is not a general purpose toolkit.  It will require a
lot of work before it is such a thing.  It is a toolkit used to
implement a development environment.
Q: Do you have an estimate for when Windows.Forms will be released?
A: We do not know, volunteers are working on this, but there is no set
date yet. The current approach is using the Wine Library to implement
it.
<a name="msft"></a>
** Mono and Microsoft
@@ -364,7 +328,7 @@ Q: Do you fear that Microsoft will change the spec and render Mono
A: No. Microsoft proved with the CLI and the C# language that it was
possible to create a powerful foundation for many languages to
interoperate. We will always have that.
inter-operate. We will always have that.
Even if changes happened in the platform which were undocumented,
the existing platform would a value on its own.
@@ -444,17 +408,17 @@ Q: Will I be able to compile a Microsoft VB.NET application and execute
A: Once we have a complete VisualBasic runtime, yes.
Q: Can mono run the WebMatrix ?
Q: Can mono run the WebMatrix?
A: No. That requires winforms (we don't have).
A: No. That requires System.Windows.Forms support which is not
currently implemented.
Q: Does mono have something like Passport ? (ie PassportIdentity class,somewhere
in System.Web ?) . Will mono have a server side Passport/Similar framework
for XSP as well as client classes ?
Q: Does mono have something like Passport?
Will mono have a server side Passport/Similar framework for XSP as well as client classes?
A: Not yet, but the client side API for authentication is not the problem.
We will likely have a lot of other authentication APIs, like the Liberty
Aliance APIs. The problem is people on the web provider end that might use
Alliance APIs. The problem is people on the web provider end that might use
this for authentication.
<a name="pnpproject"></a>
@@ -473,7 +437,7 @@ A: Most of Mono is being written using C#, with only
<li> A multi-platform runtime engine: both a JIT engine and an
interpreter exist. The JIT engine runs currently on x86
systems, while the interpreter works on Sparc, StrongARM and
systems, while the interpreter works on SPARC, StrongARM and
PowerPC systems.
<li> Supports Linux, Windows and Solaris at this point.
@@ -481,21 +445,21 @@ A: Most of Mono is being written using C#, with only
<li> The JIT engine is written using a portable instruction
selector which not only generates good code (we are told
that we are faster than Rotor, but it is hard to tell) but
is also the foundation to retarget the JIT engine to other
is also the foundation to re-target the JIT engine to other
systems.
The system employed is described in various compiler
books and it is very similar to what is described in the
book that covers LCC, the Ansi C retargetable C compiler.
book that covers LCC, the ANSI C retargetable C compiler.
<li> The JIT engine supports inlining, constant folding and propagation,
<li> The JIT engine supports in-lining, constant folding and propagation,
<li> Full support for remoting in the runtime, but the class
libraries are still behind.
<li> The C# compiler, the JIT engine and the class libraries are
mature enough that the whole system is self-hosting, ie, that
it can be fully developed with itself at this point.
mature enough that the whole system is self-hosting. This means that
we develop Mono completely with itself at this point.
<li> We are not yet done, and there is a lot of work left to be
done
@@ -522,7 +486,7 @@ A: Mono is only related to Web Services in that it will implement the
Q: Can I author Web Services with Mono?
A: You will be able to write Web Services on .NET that run on Mono and
viceversa.
vice-versa.
Q: If Mono implements the SDK classes, will I be able to write and
execute .NET Web Services with it?
@@ -544,9 +508,9 @@ A: Yes. The CLI contains enough information about a class that
exposing it to other RPC systems (like CORBA) is really simple, and
does not even require support from an object.
We will be implementing CORBA interoperation as an extension to the
We will be implementing CORBA inter-operation as an extension to the
Mono classes so that we can integrate with Bonobo, just like
Microsoft provides COM interoperation classes and support
Microsoft provides COM inter-operation classes and support
mechanisms.
Q: Can I serialize my objects to other things other than XML?
@@ -561,13 +525,13 @@ A: No. Mono will be using a new implementation of CORBA that isn't still started
<a name="devel"></a>
** Development Tools and Issues
Q: Will it be possible to use the CLI features without using bytecodes
Q: Will it be possible to use the CLI features without using byte codes
or the JIT?
A: Yes. The CLI engine will be made available as a shared library.
The garbage collection engine, the threading abstraction, the
object system, the dynamic type code system and the JIT will be
available for C developers to integreate with their applications if
available for C developers to integrate with their applications if
they wish to do so.
Q: Will you have new development tools?
@@ -608,7 +572,7 @@ Q: What about using something like Jabber instead of the System.Messaging
namespace?.
A: In short, MSMQ is not something like Jabber, but asynchronous messaging
through queues. Usefull queues do more than serialize messages, they are
through queues. Useful queues do more than serialize messages, they are
also platform bridges.
Q: Are you supporting XMLDocument and relatives?.
@@ -619,14 +583,14 @@ A: Currently, we aren't implementing them yet. It would require updates to
Q: Is there any plan to develop an aspx server for Mono?.
A: The webserver turned out to be very simple compared to the rest of the
A: The web server turned out to be very simple compared to the rest of the
work. Gonzalo has got the page generator mostly done (a module called
xsp, who has nothing to do with the XSP term used in the Apache Project).
Patrik has done a lot of the work to get the ProcessRequest to work.
You can try to help in the final touches to the System.Web classes and
writing regression tests for the widgets we have.
Q: Is there any way I can develop the class libraries using linux yet?
Q: Is there any way I can develop the class libraries using Linux yet?
A: Yes. Some class libraries can be developed on Linux. Search for
Paolo's post (he lists which classes can be compiled fine now).
@@ -634,7 +598,7 @@ A: Yes. Some class libraries can be developed on Linux. Search for
Q: Is there any way I can install a known working copy of mono in /usr,
and an experimental copy somewhere else, and have both copies use
their own libraries? (I'm still not very good at library paths in
linux)
Linux)
A: Yes. Just use two installation prefixes.
@@ -644,52 +608,19 @@ A: If you do a test suite for C#, you might want to keep it
independent of the Mono C# compiler, so that other compiler
implementations can later use it.
Q: Is the current stage the implementation of mono_create_trampoline
function? Hence the sparc-codegen.h is reasonably complete? Is
mono/arch/x86/* the best reference material for this stuff?
A: sparc-codegen.h is basically complete. We may want to add some
convenience macros along the way, but it has all the stuff you need.
And yes, or, the ppc/ dir, since the ppc call convention is more similar
to the sparc one than the x86 one. The current issues with the sparc
code are. roughly:
1) it needs to handle overflowing the out registers (the additional
arguments need to be put on the stack)
2) it needs to flush the icache where the generated code is stored
3) it needs to implement mono_create_method_pointer to get delegates
working
4) it needs a couple of updates (mono_method_pointer_get is no longer
needed, for example)
Q: Would it be too terrible to have another corlib signed as mscorlib?
A: We rename corlib to mscorlib also when saving the PE files, in fact,
the runtime can execute program created by mono just fine.
Q: How do I build corlib under Linux?
A: You can build your own (see the web site on how to get the mcs
project from cvs), but in order to build them using mcs you need a
set of working class libraries. After building the runtime (using
mono-build.sh) get them from the nightly build and put them (and
mcs.exe) in your mono/install/lib directory. Then you should be able
to do: cd mcs, then: make -f makefile.gnu, then: cp mcs/mcs.exe
class/lib/*.dll ../install/lib Also, you should know that you can
either get your dose of DLLs from MonoCharge, or from
http://primates.ximian.com/~miguel/runtime. MonoCharge is updated
automatically, while the later is only updated when Miguel is around
Once you have the DLLs, you can use `make -f makefile.gnu' as described
before to self-host.
Q: Is there a relatively straightforward way to repeat the steps taken
by Paolo to get Mono completely self-hosted on linux?
by Paolo to get Mono completely self-hosted on Linux?
A: To build the compiler and class libraries in Linux, run:
<ul><li>make -f makefile.gnu. To install them, run: </li>
<li>make -f makefile.gnu install</li>
<li>You can also specify a prefix:</li>
<li>make -f makefile.gnu install prefix=/opt</li>
<li>make -f makefile.gnu install prefix=/opt/mono</li>
</ul>
If you want to produce and distribute a monocharge tarball, run:
make -f makefile.gnu dist
Of course you have to run these in the top level mcs directory.
@@ -707,7 +638,7 @@ A: The remoting infrastructure is in place. Some of the channels and
formatters are not.
Q: I'm wondering if there are any plans to start using nant to build the
class lib + test lib. i think that every project neeed/should use an
class lib + test lib. i think that every project need/should use an
automated build process and nant + a couple of tools enables this. is
the problem that the compiler can't run nant yet?
@@ -732,7 +663,7 @@ Q: Do I need install cygwin to work on ASP.NET in mono or Linux is enough since
A: Linux is enough.
Q: Any plan to make ASP.NET in mono works with Apache in linux?.
Q: Any plan to make ASP.NET in mono works with Apache in Linux?.
A: Yes, we have plans to do so, but we need to wait for Patrik's patches to
HttpRuntime. Once that is there, writing a mod_mono should be trivial
@@ -755,12 +686,9 @@ Q: In developing the data architecture for the application are there and
transition (minimum code rewrite) to Mono's ADO.NET implementation? (For
example, strongly typed datasets versus untyped datasets, etc...)
A: we are implementing all the classes in Microsoft .NET's System.Data, so
you can be sure that things will work the same in Mono as with the MS's
implementation. We'll maybe provide extra classes to fix some things
we've found missing while developing ADO.NET in Mono, but if you keep
using the MS's System.Data classes, things will work out of the box with
no changes (or at least that's the plan :-)
A: We are implementing all the classes in Microsoft .NET's System.Data, so
you can be sure that things will work the same in Mono as with the Microsoft
implementation.
<a name="java">
** Mono and Java
@@ -771,7 +699,7 @@ Q: Why don't you use Java? After all, there are many languages that
A: You can get very good tools for doing Java development on free
systems right now. <a href="http://www.redhat.com">Red Hat</a> has
contributed a <a href="http://gcc.gnu.org">GCC</a> <a
href="http://gcc.gnu.org/java">frontend for Java</a> that can take
href="http://gcc.gnu.org/java">front-end for Java</a> that can take
Java sources or Java byte codes and generate native executables; <a
href="http://www.transvirtual.com">Transvirtual</a> has implemented
<a href="http://www.kaffe.org">Kaffe</a> a JIT engine for Java;
@@ -790,10 +718,10 @@ A: Yes, Java could target the CLI. We have details on a <a
href="ideas.html#guavac">project</a> that someone could take on to
make this happen.
Microsoft has an implemenation of the Java language called J# that
Microsoft has an implementation of the Java language called J# that
can target the CIL execution engine.
Q: Is it possible to write a JVM byte code to CIL convertor?
Q: Is it possible to write a JVM byte code to CIL converter?
A: Yes, it is possible. Here are a few starting point:
@@ -813,7 +741,7 @@ A: Yes, it is possible. Here are a few starting point:
be translated into the equivalent "meaning" in CLR-land.
</ul>
Q: Could mono become a hybrid cil/java platform?
Q: Could mono become a hybrid CIL/java platform?
A: No. It is quite far from the philosophy of the project. The idea of Mono
is, to have only _one_ VM, on which all can run. And if there existing a
@@ -821,15 +749,15 @@ A: No. It is quite far from the philosophy of the project. The idea of Mono
like J-Sharp on Mono, you can write programs in Java, which than can run
on Mono. You do not need two bindings (like your example: GTK-Sharp _and_
Java-Gnome). You need only _one_ of it (GTK-Sharp). Thats the idea of Mono.
An other point is, that there are no people, who use OpenSource-JVMs. They
An other point is, that there are no people, who use Open Source-JVMs. They
all prefer Suns original. But for Unix there don't exist a .NET-Framework.
So it is possible, that in the future Mono is the standard .NET for unixes.
So it is possible, that in the future Mono is the standard .NET for Unixes.
Q: Do you plan to implement a Javascript compiler?
A: Yes. Eto Demerzal has started a Rhino port to C#.
After this is completed, we will begin developing
the Javascript compiler.
the JavaScript compiler.
<a name="extending"></a>
** Extending Mono
@@ -860,7 +788,7 @@ A: Embracing a good technology is good. Extending technologies in
encourage you to make those classes operate correctly well in both
Mono and .NET.
Q: Is there any way I can develop the class libraries using linux yet?
Q: Is there any way I can develop the class libraries using Linux yet?
A: Yes. Some class libraries can be developed on Linux. Search for
Paolo's post (he lists which classes can be compiled fine now).
@@ -868,7 +796,7 @@ A: Yes. Some class libraries can be developed on Linux. Search for
Q: Is there any way I can install a known working copy of mono in /usr,
and an experimental copy somewhere else, and have both copies use
their own libraries? (I'm still not very good at library paths in
linux)
Linux)
A: Yes. Just use two installation prefixes.
@@ -886,7 +814,7 @@ Q: What about Mono on non Linux-based systems?
A: Our main intention at Ximian is to be able to develop GNOME
applications with Mono, but if you are interested in providing a
port of the Winform classes to other platforms (frame buffer or
port of the Winforms classes to other platforms (frame buffer or
MacOS X for example), we would gladly integrate them, as long
they are under an open source license.
@@ -896,21 +824,21 @@ A: Mono currently runs on Linux, Windows, Solaris and FreeBSD.
There is a JIT engine available for x86 processors that can
generate code and optimizations tailored for a particular CPU.
Interpreters exist for the SPARC, PowerPC and StrongARM cpus.
Interpreters exist for the SPARC, PowerPC and StrongARM CPUs.
Q: Does Mono run on Windows?
A: Yes. The Compiler and the runtime both run on Windows.
A: Yes. You can get pre-compiled
binaries from <a href="http://www.go-mono.com/download.html">http://www.go-mono.com/download.html</a>
Q: When will mono and mcs compile on Linux?.
Q: Does Mono run on Linux?
A: That happend a long time ago. Know you can download and compile
them or even install them from already made binary packages for
Windows and for Linux (RPM/DEB).
A: Yes. You can get pre-compiled
binaries from <a href="http://www.go-mono.com/download.html">http://www.go-mono.com/download.html</a>
Q: Will I require Cygwin to run mono?
A: No. While you'll need it to compile it, it runs without cygwin and does not even require cygwin1.dll
A: No. Cygwin is only required to build Mono.
Q: Will Mono depend on GNOME?
@@ -939,7 +867,7 @@ Q: Has anyone succeeded in building a Mac version of the C# environment.
A: You could try to check with the Darwin people, or the Fink people.
Mono/C# is self hosting on Linux/PPC which is the hard part, so it
should be relatively simple to get it to work on macos
should be relatively simple to get it to work on MacOS
<a name="reuse"></a>
** Reusing Existing Code
@@ -986,7 +914,7 @@ Q: Will built-in reporting be supported for crystal reports? This is a
heavily used part of our system.
A: Probably not. Crystal Reports are propriety. Someone may try to emulate
the behaviour, but no-one has yet volunteered.
the behavior, but no-one has yet volunteered.
Q: Who about writing to the registry? As I understand it, Linux does not have
a counterpart to the registry. Should I avoid relying on that feature?
@@ -1007,7 +935,7 @@ A: if their license is compatible with mono's, yes, we'd think about porting
<a name="gcc"></a>
** Mono and GCC
Q: Are you working on a GCC front-end to C#? A GCC backend that will
Q: Are you working on a GCC front-end to C#? A GCC back-end that will
generate CIL images? What about making a front-end to GCC that
takes CIL images and generates native code?
@@ -1073,6 +1001,14 @@ A: The C# Compiler is released under the terms of the <a
href="http://www.opensource.org/licenses/mit-license.html">MIT X11</a>
license.
The Mono runtime and the Mono C# Compiler are also available under
a proprietary license for those who can not use the LGPL and the
GPL in their code.
For licensing details, contact <a
href="mailto:[email protected]">[email protected]</a>
Q: I would like to contribute code to Mono under a particular
license. What licenses will you accept?
@@ -1080,7 +1016,10 @@ A: We will have to evaluate the licenses for compatibility first,
but as a general rule, we will accept the code under the same
terms of the "container" module.
<a name="patents></a>
Q: Is the Mono
<a name="patents"></a>
** Patents
Q: Could patents be used to completely disable Mono (either submarine
@@ -1090,7 +1029,9 @@ Q: Could patents be used to completely disable Mono (either submarine
A: No. First, its basic functional capabilities have pre-existed too
long to be held up by patents. The basic components of Mono are
technologically equivalent to Sun's Java technology, which has been
around for years. Mono will also implement multi-language and
around for years.
Mono will also implement multi-language and
multi-architecture support, but there are previous technologies
such as UCSD p-code and ANDF that also support multiple languages
using a common intermediate language. The libraries are similar
@@ -1116,11 +1057,11 @@ A: The key difference between CORBA (and COM) and the CLI is that the
CLI allows "data-level interoperability" because every
language/component uses the same data layout and memory management.
This means you can operate directly upon the datatypes that someone
This means you can operate directly upon the data types that someone
else provides, without having to go via their interfaces. It also
means you don't have to "marshall" (convert) parameters (data
means you don't have to "marshal" (convert) parameters (data
layouts are the same, so you can just pass components directly) and
you don't have to worry about memory managment, because all
you don't have to worry about memory management, because all
languages/components share the same garbage collector and address
space. This means much less copying and no need for reference
counting.
@@ -1134,48 +1075,51 @@ Q: Will Ximian offer certifications on Mono or related technologies?.
A: It's possible. But there is no plan about this. So the short answer is no.
Q: Are there any Boehm's gc binaries?
Q: Are there any Boehm's GC binaries?
A: Yes. You can find them <a href="http://java.thn.htu.se/~toor/">here</a>
Q: I have get into trouble when trying to build the site in my Linux box, what
can I do?.
A: Try to change the line "./mono-rss.exe ../index deploy/index.rss" for
"mono ./mono-rss.exe ../index deploy/index.rss"
A: Yes. You can find RPMs <a href="http://java.thn.htu.se/~toor/">here</a>, though
if your distribution provides the correct packages, you should use those.
The suggested version of the Boehm GC is 6.1.
Q: How can I report a bug?
A: The best thing is to track down the bug and provide a simple test to
reproduce the bug. You can then add the bug to bugzilla:
http://bugzilla.ximian.com/enter_bug.cgi or simply send it to
[email protected].
reproduce the bug. You can then add the bug to the
<a href="http://bugzilla.ximian.com/enter_bug.cgi">bugtracking system</a>.
Please provide information about what version of mono you're using
and any relevant details to be able to reproduce the bug. Note that
bugs reported on the mailing-list may be easily forgotten, so it's
better to file them in the <a href="http://bugzilla.ximian.com/enter_bug.cgi">bug tracking system</a>.
Q: Does mcs support the same command line options as the MS C#
compiler?
A: The Mono C# compiler on CVS now supports the same command line
A: The Mono C# compiler now supports the same command line
arguments as the Microsoft C# compiler does.
Q: I am thinking about making a VS.NET solution and include as
projects both the library and the System.Xml.dll project
file: is that the best way (sure at the beginning, when the
compiler was not self hosting, you made something similar...)?
A: Jason and Krall did check in VS.NET files that you can use
to compile our System.XML and even to run the System.XML tests
(which is way cool, and way simple).
Q: How about getting searchable archives on lists.ximian.com?
A: You mean like http://www.go-mono.com/mailing-lists.html?
A: You can perform a search on the mono-related mailing lists
<a href="http://www.go-mono.com/mailing-lists.html">here</a>.
Q: I downloaded the lastest snapshot and did a make and make install on
mono which ran normal but when I tried to do the same with mcs it
errored out with a message saying Mono and Runtime out of sync.
Q: When using mono from cvs or from a snapshot, I get an error messaage
saying that Mono and the runtime are out of sync. How do I fix that?
A: You need to compile first the class libraries and install them with your
existing compiler and then the runtime.
A: If you use mono from cvs, you need to be prepared for changes in the
runtime internals. This means that you should keep a working setup
before blindling updating (a working setup may just be the last released
tarball or a recent binary snapshot).
Usually, compiling corlib with mcs before recompiling the C runtime does
the right thing (but occasionally you may need to do it the other
way around).
<a name="problems"></a>
** Mono Common Problems
If you are having problems compiling or running Mono software
or if you think that you found a bug, etc. Please visit the
<a href="http://geneura.ugr.es/~jaime/deploy/mono-common-problems.html">Mono Common Problems</a> document and try there.
+8
View File
@@ -13,6 +13,14 @@ Some of them may start contributing because they want a mention in the
* Mono Hackers
** Sergey Chaban
Sergey has been a long time contributor to the project, from the early
work on the class libraries that were critical to Mono's origin: every
time you use a Hashtable in Mono, it runs Sergey's code, to the
low-level optimizations on the JIT engine and to his work on ILASM and
the PEToolkit. And countless other things.
** Nick Drochak
The first, deserved, entry in the <b>Mono Hackers Hall Of Fame</b> is for
+130 -11
View File
@@ -5,12 +5,12 @@
<td>
<a href="http://www.ximian.com">Ximian</a> announced the
launch of the Mono project, an effort to create an open source
implementation of the .NET Development Framework.
implementation of the .NET Development Framework.
Mono includes: <a href="c-sharp.html">a compiler</a> for the
C# language, a <a href="runtime.html">runtime</a> for the
Common Language Infrastructure (the CLR) and a set of <a
href="class-library.html">class libraries</a>.
Common Language Infrastructure (also refered as the CLR) and a
set of <a href="class-library.html">class libraries</a>.
You can read our <a href="rationale.html">rationale</a> for
this project. If you have questions about the project, please
@@ -32,6 +32,11 @@
</td>
<td>
<table border=1>
<tr>
<td colspan="3">
<b><center>Mono Status</center></b>
</td>
</tr>
<tr>
<td>
<b><a href="c-sharp.html">C# Compiler</a></b>
@@ -56,7 +61,8 @@
<td>
Working:<br>
Linux/x86, Linux/PPC<br>
In progress: StrongARM, SPARC.
In progress:<br>
StrongARM, SPARC.
</td>
</tr>
<tr>
@@ -80,16 +86,129 @@
</tr>
</table>
<b>Mono Talks:</b>
<h3>Events</h3>
<b>Valencia</b>: August 8th.
<ul>
<li><b><a
href="http://www.sigs-datacom.de/sd/kongresse/dotnet_2002/index.htm">.NET
ONE 2002:</a></b> Come see Paolo, Mike and Miguel from the Mono team at the .NET ONE conference in Frankfurt.</ul>
</ul>
<b>Hong Kong:</b> August 10th. If you live in Hong
Kong, come see Duncan Mak talk about the Mono project.
Details are <a
href="http://linux.org.hk/org/event/200208-talk/">here</a>
@item Sep 19th, 2002: Mono Survey.
<b>San Francisco</b>: August 14th. Linux World Expo.
Help us plan for the future of Mono by filing out the <a
href="http://primates.ximian.com/~miguel/monosurvey">First Mono
Survey</a>
@item Sep 17th, 2002: Mono Hackers Hall of Fame: Sergey Chaban
The <a href="hackers.html">Mono Hackers Hall Of Fame</a>
continues to show our appreciation to the excellent
contributors that made <b>mono::</b> a successful free
software project.
This time the Hall of Fame welcomes Sergey Chaban. Sergey has
been a long time contributor to the project, from the early
work on the class libraries that were critical to Mono's
origin: every time you use a Hashtable in Mono, it runs
Sergey's code, to the low-level optimizations on the JIT
engine and to his work on ILASM and the PEToolkit.
@item Sep 16th, 2002: Documentation Tools, ILASM, Debugger, Mono LDAP, Winforms
Adam Treat has started moving the documentation universe again. We
have a new strategy to document our APIs (given that we have
chosen <a href="classlib-doc.html">not to document the code
inline</a>). This includes the use of a master reference file
that will hold the entry points to document. All master files
for our assemblies have been checked into CVS now.
Sergey Chaban's Mono.PEToolkit and ILASM tools have been
checked into CVS. Although ILASM is old and will soon be
updated, we wanted to get the build issues sorted out.
Martin Baulig's Mono Debugger is still on its early stages,
but you can run and run step by step your C# code and C code
(including the Mono runtime). Dwarf-2 is required to compile
your code. The regular step, step-into, and assembly-level
step and step-into are supported. And comes with a Gtk#
UI. The debugger is written mostly in C# with some C glue
code. Most of the work is on the engine, we will be working
on making a good UI in the future.
Chris Toshok of the Hungry Programmer's fame has checked in
Mono.Directory.LDAP, a C# wrapper for the LDAP libraries.
This is the substrate for implementing the
System.DirectoryServices assembly.
Andrew has also continued with some of the cryptographic
classes implemetation.
After much public debate, we have chosen a new <a
href="winforms.html">strategy to implement winforms</a>.
Implementing a Gtk, Qt or Aqua based version of Winforms was
going to be almost as complex as implementing Wine itself. So
the new strategy is to only roll out a WineLib-based
implementation.
@item Sep 4th, 2002: .NET One 2002 Program available
The <a
href="http://www.sigs-datacom.de/sd/kongresse/dotnet_2002/index.htm">.NET
ONE 2002</a> conference in Frankfurt is now available. Paolo
will be talking about the Mono JIT and embedding the Mono
runtime in your Windows and Linux applications. Mike Kestner
will talk about <a href="http://gtk-sharp.sf.net">Gtk#</a> and
the automatic binding generator used by Gtk# and Miguel will
be talking about the Mono project on Monday's keynote and on
the Mono C# compiler on Tuesday.
@item Sep 3rd, 2002: Apache integration
<a
href="http://lists.ximian.com/archives/public/mono-list/2002-September/001862.html">Sterling</a>
announced an Apache module that hosts
Mono, and allows CIL code to run from within Apache, giving the
module access to the Apache runtime. This uses the Mono embedding
API.
@item Aug 24th, 2002: Gtk# 0.4 released
Shortly after <a href="download.html">Mono 0.15</a> was
released a fresh version of <a
href="http://gtk-sharp.sf.net">Gtk#</a> was <a
href="http://lists.ximian.com/archives/public/mono-list/2002-August/001702.html">announced</a>.
@item Aug 23rd, 2002: Mono 0.15 released
Mono 0.15 has been released. Source and RPMs are <a
href="download.html">available</a>. The release notes are <a
href="archive/mono-0.15">here</a>
@item Aug 21th, 2002: Portable.NET encodings integrated into Mono.
Rhys Weatherley has contributed the Portable.NET encoders to
the Mono class libraries. This is a great step towards
cooperation between these projects. Thanks to Paolo for doing the
merger on our side.
His encoders are more complete than the iconv-based approach
that mono used, which was unreliable under certain
circumstances.
@item Aug 20th, 2002: Remoting work, Resources, SPARC checkins, ADO.NET
Mark Crichton has checked in his patches to get the SPARC port
on par with the PPC port.
Dick has checked-in the resource reader and resource writers
to the class libraries, and Dietmar checked in the C# support
code for the remoting infrastructure.
More work on System.Data: the LibGDA (our OleDB backend) based
providers are quickly maturing, and recently they executed
their first query.
@item Aug 13th, 2002: MCS news, Gtk# progress, Windows.Forms, ADO.NET
+4
View File
@@ -1,5 +1,9 @@
* Java
<b>This is an outline on how to support Java, actual
implementations of ideas like this can be found <a href="http://radio.weblogs.com/0109845/">here</a></b>
It would be interesting to support the Java language as part
of the Mono project.
+8 -5
View File
@@ -32,6 +32,10 @@
monodis /home/export/martin/MONO-LINUX/bin/mcs.exe > mcs.il
</pre>
This is normally done automatically, but you can also disable
it and create them by hand. See the <tt>mono</tt> manual page
for details.
Make sure that all the .il files have the same name as their corresponding
assembly and that they're all created in the current directory.
@@ -43,7 +47,7 @@
than 65.535 lines and it's type support is also very limited. You should only
use this if your debugger doesn't support DWARF 2.
To generate STABS output, use the <tt>--stabs</tt> command line argument.
To generate STABS output, use the <tt>--debug=stabs</tt> command line argument.
* DWARF 2: The DWARF 2 debugging format is a very powerful debugging format
@@ -51,10 +55,9 @@
type support. It's the recommended format unless you need to use STABS because
your debugger doesn't support DWARF 2.
To generate DWARF 2 output, use the <tt>--dwarf</tt> command line argument.
To generate DWARF 2 output, use the <tt>--debug=dwarf</tt> command line argument.
</ul>
You need to regenerate the symbol file each time the JIT compiled a new
method and each time you restart the JIT. You cannot reuse your symbol file
if you start the JIT a second file, not even if you're running the same
@@ -110,7 +113,7 @@
assembler to produce an object file <tt>Foo-debug.o</tt>. This object file must be
in the current directory.
Then start the JIT in your debugger and give it the <tt>--dwarf-plus</tt> command
Then start the JIT in your debugger and give it the <tt>--debug=dwarf-plus</tt> command
line argument.
Each time you call <tt>mono_debug_make_symbols ()</tt> from withing your debugger,
@@ -140,7 +143,7 @@
** Breakpoints and single stepping
The JIT has a <tt>--debug</tt> command line argument to insert a breakpoint at the
The JIT has a <tt>--break</tt> command line argument to insert a breakpoint at the
beginning of this method. It takes a <tt>Namespace.Class:Method</tt> argument which
is the method. This argument can be given multiple times.
+2 -2
View File
@@ -38,8 +38,8 @@
<pre>
$ gdb ~/monocvs/mono/mono/jit/mono
(gdb) r --dwarf --debug Foo:Main ./Foo.exe
Starting program: /home/martin/monocvs/mono/mono/jit/mono --dwarf --debug Foo:Main ./Foo.exe
(gdb) r --debug=dwarf --break Foo:Main ./Foo.exe
Starting program: /home/martin/monocvs/mono/mono/jit/mono --debug=dwarf --break Foo:Main ./Foo.exe
0x081e8911 in ?? ()
(gdb) call mono_debug_make_symbols ()
(gdb) add-symbol-file /tmp/Foo.o
+2 -2
View File
@@ -39,8 +39,8 @@
<pre>
$ gdb ~/monocvs/mono/mono/jit/mono
(gdb) r --dwarf-plus --debug Foo:Main ./Foo.exe
Starting program: /home/martin/monocvs/mono/mono/jit/mono --dwarf-plus --debug Foo:Main ./Foo.exe
(gdb) r --debug=dwarf-plus --break Foo:Main ./Foo.exe
Starting program: /home/martin/monocvs/mono/mono/jit/mono --debug=dwarf-plus --break Foo:Main ./Foo.exe
Program received signal SIGTRAP, Trace/breakpoint trap.
0x081e8681 in ?? ()
(gdb) call mono_debug_make_symbols ()
+12 -5
View File
@@ -14,7 +14,7 @@
<ul>
* <a href="#JavaScript">Java Script</a>
* <a href="java.html">Java</a>
* <a href="#java.html">Java</a>
* <a href="#c">C</a>
</ul>
@@ -24,6 +24,13 @@
* <a href="#Tachy">Tachy</a> (scheme-like)
</ul>
<a name="Java">
** Java
There is a very interesting project to make a JavaVM for .NET
<a href="http://radio.weblogs.com/0109845/">here</a>
<a name="MonoLogo">
** MonoLogo
@@ -101,10 +108,10 @@
Ideally GCC could be modified to generate CIL, but it is a
big task. That would give us various compilers in one pass.
Rumor is that the next version of the LCC compiler will
include an IL backend. We do not know how extensive the support
for integration with .NET will be, but it would be an interesting
excercise to add an extension to C to call into .NET code.
<a href="http://www.cs.princeton.edu/software/lcc">LCC</a> 4.2
has been recently released. This release adds support for compiling
ANSI C programs to CIL. Note that the CIL support only works on Win32
right now, but should be easy to convert to Mono/other architectures.
LCC is not an open source compiler, but it is free as long as you
do not profit from selling it.
+4 -3
View File
@@ -11,21 +11,22 @@
For <a href="mono-beginning/t1.html">RPM Linux based systems</a>
For <a href="mono-beginning-windows/t1.html">Microsoft Windows</a>
For <a href="http://geneura.ugr.es/~jaime/mono-beginning-windows/t1.html">Microsoft Windows</a>
PDF Format
For <a href="mono-beginning.pdf">RPM Linux based systems</a>
For <a href="mono-beginning-windows.pdf">Microsoft Windows</a>
For <a href="http://geneura.ugr.es/~jaime/mono-beginning-windows/mono-beginning-windows.pdf">Microsoft Windows</a>
XML Source
For <a href="mono-beginning.xml">RPM Linux based systems</a>
For <a href="mono-beginning-windows.xml">Microsoft Windows</a>
For <a href="http://geneura.ugr.es/~jaime/mono-beginning-windows/mono-beginning-windows.xml">Microsoft Windows</a>
Currently Hinne is working on a Mono Tools HOWTO. Which will be
+51 -12
View File
@@ -17,6 +17,12 @@ echo "Building Mono and dependencies in $here, installing to $here/install"
PATH=$here/install/bin:$here/install/lib:$PATH
# Make sure cygwin's libiconv is installed, or libtool blows its tiny mind
if [ ! -f /usr/lib/libiconv.la ]; then
echo "You need to install the cygwin \"libiconv\" package!"
exit -1
fi
# Check mono out first, so we can run aclocal from inside the mono dir (it
# needs to see which version of the real aclocal to run)
test -z "$CVSROOT" && CVSROOT=:pserver:[email protected]:/mono
@@ -42,6 +48,18 @@ fi
cvs checkout mono || exit -1
echo "Checking automake version"
automake_required="1.6.2"
automake_version=`automake --version | head -1 | awk '{print $4}' | tr -d '[a-zA-Z]' | sed 's/-.*$//g'`
echo "Found automake version $automake_version"
if expr $automake_version \< $automake_required > /dev/null; then
echo "Your automake is too old! You need version $automake_required or newer."
exit -1
else
echo "Automake version new enough."
fi
# Select the stable version anyway...
if [ ! -z "${AUTO_STABLE}" -o -e /usr/autotool/stable ]; then
export AUTO_STABLE=${AUTO_STABLE:-/usr/autotool/stable}
export AUTO_DEVEL=${AUTO_STABLE}
@@ -49,8 +67,7 @@ fi
# Need to install pkgconfig and set ACLOCAL_FLAGS if there is not a
# pkgconfig installed already. Otherwise set PKG_CONFIG_PATH to the
# glib we're about to install in $here/install. This script could
# attempt to be clever and see if glib 2 is already installed, too.
# glib we're about to install in $here/install.
# --print-ac-dir was added in 1.2h according to the ChangeLog. This
@@ -61,15 +78,17 @@ fi
# it finds two copies of the m4 macros). The GIMP for Windows
# pkgconfig sets its prefix based on the location of its binary, so we
# dont need PKG_CONFIG_PATH (the internal pkgconfig config file
# $prefix is handled similarly).
# $prefix is handled similarly). For the cygwin pkgconfig we do need to
# set it, and we need to edit the mingw pc files too.
function aclocal_scan () {
# Quietly ignore the rogue '-I' and other aclocal flags that
# aren't actually directories...
#
# cd into mono/ so that the aclocal wrapper can work out which version
# of aclocal to run
for i in `(cd mono && aclocal --print-ac-dir)` $ACLOCAL_FLAGS
# of aclocal to run, and add /usr/share/aclocal too cos aclocal looks there
# too.
for i in `(cd mono && aclocal --print-ac-dir)` /usr/share/aclocal $ACLOCAL_FLAGS
do
if [ -f $i/$1 ]; then
return 0
@@ -96,10 +115,17 @@ function install_package() {
fi
}
if ! aclocal_scan pkg.m4 ; then
ACLOCAL_FLAGS="-I $here/install/share/aclocal $ACLOCAL_FLAGS"
# pkgconfig is only used during the build, so we can use the cygwin version
# if it exists
if aclocal_scan pkg.m4 ; then
install_pkgconfig=no
else
install_pkgconfig=yes
fi
# But we still need to use the mingw libs for glib & co
ACLOCAL_FLAGS="-I $here/install/share/aclocal $ACLOCAL_FLAGS"
export PATH
export ACLOCAL_FLAGS
@@ -110,15 +136,28 @@ fi
# Fetch and install pkg-config, glib, iconv, intl
install_package pkgconfig-0.80-tml-20020101.zip bin/pkg-config.exe pkgconfig
install_package glib-1.3.12-20020101.zip lib/libglib-1.3-12.dll glib
install_package glib-dev-1.3.12-20020101.zip lib/glib-1.3.lib glib-dev
if [ $install_pkgconfig = "yes" ]; then
install_package pkgconfig-0.11-20020310.zip bin/pkg-config.exe pkgconfig
else
echo "Not installing pkgconfig, you already seem to have it installed"
fi
install_package glib-2.0.4-20020703.zip lib/libglib-2.0-0.dll glib
install_package glib-dev-2.0.4-20020703.zip lib/glib-2.0.lib glib-dev
install_package libiconv-1.7.zip lib/iconv.dll iconv
install_package libiconv-dev-1.7.zip lib/iconv.lib iconv-dev
install_package libintl-0.10.40-20020101.zip lib/libintl-1.dll intl
install_package libgc-dev.zip lib/gc.dll gc-dev
# Needed to find the libiconv bits
if [ $install_pkgconfig = "no" ]; then
echo "Fixing up the pkgconfig paths"
for i in $here/install/lib/pkgconfig/*.pc
do
mv $i $i.orig
sed -e "s@^prefix=/target\$@prefix=$here/install@" < $i.orig > $i
done
export PKG_CONFIG_PATH=$here/install/lib/pkgconfig
fi
# Needed to find the libgc bits
CPPFLAGS="$CPPFLAGS -I$here/install/include"
LDFLAGS="$LDFLAGS -L$here/install/lib"
export CPPFLAGS
+61 -12
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
# Script to automate the building of mono and its dependencies.
# Relies on wget being installed (could make it fall back to using
@@ -17,6 +17,44 @@ echo "Building Mono and dependencies in $here, installing to $here/install"
PATH=$here/install/bin:$PATH
LD_LIBRARY_PATH=$here/install/lib:$LD_LIBRARY_PATH
# Find a tool to fetch files. It must take an HTTP URL on the command line and
# save the file in the current directory. (It must also talk HTTP/1.1, which
# rules out BSD's ftp(1), at least on FreeBSD 4.4.)
viable_downloaders="wget fetch"
for i in $viable_downloaders
do
if which $i > /dev/null; then
downloader=`which $i`
break
fi
done
if [ -z "$downloader" ]; then
echo "Can't find a commandline download tool (tried: $viable_downloaders)"
exit -1
else
echo "Using $downloader to fetch files"
fi
# We need to prefer GNU make if there's a choice. BSD make falls over in
# the glib build if gtk-doc is disabled.
viable_makers="gmake make"
for i in $viable_makers
do
if which $i > /dev/null; then
MAKE=$i
break
fi
done
if [ -z "$MAKE" ]; then
echo "Can't find a make tool (tried: $viable_makers)"
exit -1
else
echo "Using $MAKE"
export MAKE
fi
# Need to install pkgconfig and set ACLOCAL_FLAGS if there is not a
# pkgconfig installed already. Otherwise set PKG_CONFIG_PATH to the
# glib we're about to install in $here/install. This script could
@@ -64,14 +102,14 @@ function install_package() {
echo "Installing $name..."
if [ ! -f $here/$tarfile ]; then
wget http://www.go-mono.org/archive/$tarfile
(cd $here && $downloader http://www.go-mono.com/archive/$tarfile)
fi
# Assume that the package built correctly if the dir is there
if [ ! -d $here/$dirname ]; then
# Build and install package
tar xzf $here/$tarfile || exit -1
(cd $here/$dirname; ./configure --prefix=$here/install $configure_options || exit -1; make || exit -1; make install || exit -1)
(cd $here && tar xzf $tarfile) || exit -1
(cd $here/$dirname; ./configure --prefix=$here/install $configure_options || exit -1; $MAKE || exit -1; $MAKE install || exit -1)
success=$?
if [ $success -ne 0 ]; then
echo "***** $name build failure. Run rm -rf $here/$dirname to have this script attempt to build $name again next time"
@@ -113,12 +151,23 @@ export LD_LIBRARY_PATH
export ACLOCAL_FLAGS
export PKG_CONFIG_PATH
CPPFLAGS="$CPPFLAGS -I$here/install/include"
LDFLAGS="$LDFLAGS -L$here/install/lib"
# Freebsd puts iconv in /usr/local, so see if we need to add
# /usr/local/include and /usr/local/lib to CPPFLAGS and LDFLAGS. We could
# skip this if it would add /usr/include and /usr/lib, but leaving it
# shouldnt break anything.
iconvh=`locate include/iconv.h`
iconvh_dir=`dirname $iconvh`
iconvlib_dir=`echo $iconvh_dir | sed -e 's/include/lib/'`
echo "Adding $iconvh_dir to CPPFLAGS"
echo "Adding $iconvlib_dir to LDFLAGS"
CPPFLAGS="$CPPFLAGS -I$here/install/include -I$iconvh_dir"
LDFLAGS="$LDFLAGS -L$here/install/lib -L$iconvlib_dir"
export CPPFLAGS
export LDFLAGS
# Grab pkg-config-0.8, glib-1.3.12 if necessary
# Grab pkg-config, glib and libgc if necessary
if [ $install_pkgconfig = "yes" ]; then
install_package pkgconfig-0.8.0.tar.gz pkgconfig-0.8.0 pkgconfig ""
@@ -127,16 +176,16 @@ else
fi
if [ $install_glib = "yes" ]; then
install_package glib-1.3.13.tar.gz glib-1.3.13 glib ""
install_package glib-2.0.6.tar.gz glib-2.0.6 glib ""
else
echo "Not installing glib, you already seem to have it installed"
fi
if [ $install_libgc = "yes" ]; then
LIBS="-ldl" install_package gc6.0.tar.gz gc6.0 libgc "--enable-threads=pthreads"
install_package gc6.1alpha5.tar.gz gc6.1alpha5 libgc "--enable-threads=pthreads"
# make install didnt do the headers!
mkdir -p $here/install/include/gc
cp -r $here/gc6.0/include/* $here/install/include/gc
cp -r $here/gc6.1alpha5/include/* $here/install/include/gc
else
echo "Not installing libgc, you already seem to have it installed"
fi
@@ -166,12 +215,12 @@ elif [ ${CVSROOT:0:9} = ":pserver:" ]; then
fi
fi
cvs checkout mono || exit -1
(cd $here && cvs checkout mono) || exit -1
# Build and install mono
echo "Building and installing mono"
(cd $here/mono; ./autogen.sh --prefix=$here/install || exit -1; make || exit -1; make install || exit -1) || exit -1
(cd $here/mono; ./autogen.sh --prefix=$here/install || exit -1; $MAKE || exit -1; $MAKE install || exit -1) || exit -1
echo ""
-246
View File
@@ -1,246 +0,0 @@
System.Object
System.Exception
System.ValueType
System.Delegate
System.MulticastDelegate
System.Enum
System.Activator
System.ArgIterator
System.__ComObject
System.TypedReference
System.Security.AllowPartiallyTrustedCallersAttribute
System.Runtime.Serialization.Formatter
System.Runtime.Serialization.FormatterConverter
System.Runtime.Serialization.FormatterServices
System.Runtime.Serialization.ObjectIDGenerator
System.Runtime.Serialization.ObjectManager
System.Reflection.ModuleResolveEventHandler
System.Reflection.Pointer
System.Globalization.CompareInfo
System.Globalization.HebrewCalendar
System.Globalization.HijriCalendar
System.Globalization.JapaneseCalendar
System.Globalization.KoreanCalendar
System.Globalization.SortKey
System.Globalization.StringInfo
System.Globalization.TaiwanCalendar
System.Globalization.TextElementEnumerator
System.Globalization.TextInfo
System.Globalization.ThaiBuddhistCalendar
System.IO.IsolatedStorage.IsolatedStorageFile
System.Reflection.Emit.MethodRental
System.Runtime.CompilerServices.AccessedThroughPropertyAttribute
System.Runtime.CompilerServices.CallConvCdecl
System.Runtime.CompilerServices.CallConvStdcall
System.Runtime.CompilerServices.CallConvThiscall
System.Runtime.CompilerServices.CallConvFastcall
System.Runtime.CompilerServices.CustomConstantAttribute
System.Runtime.CompilerServices.DateTimeConstantAttribute
System.Runtime.CompilerServices.DiscardableAttribute
System.Runtime.CompilerServices.DecimalConstantAttribute
System.Runtime.CompilerServices.CompilationRelaxationsAttribute
System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
System.Runtime.CompilerServices.IDispatchConstantAttribute
System.Runtime.CompilerServices.IsVolatile
System.Runtime.CompilerServices.IUnknownConstantAttribute
System.Runtime.CompilerServices.RequiredAttributeAttribute
System.Runtime.InteropServices.ArrayWithOffset
System.Runtime.InteropServices.DispIdAttribute
System.Runtime.InteropServices.ClassInterfaceType
System.Runtime.InteropServices.ClassInterfaceAttribute
System.Runtime.InteropServices.ComVisibleAttribute
System.Runtime.InteropServices.LCIDConversionAttribute
System.Runtime.InteropServices.ComRegisterFunctionAttribute
System.Runtime.InteropServices.ComUnregisterFunctionAttribute
System.Runtime.InteropServices.ProgIdAttribute
System.Runtime.InteropServices.ImportedFromTypeLibAttribute
System.Runtime.InteropServices.IDispatchImplType
System.Runtime.InteropServices.IDispatchImplAttribute
System.Runtime.InteropServices.ComSourceInterfacesAttribute
System.Runtime.InteropServices.ComConversionLossAttribute
System.Runtime.InteropServices.TypeLibTypeFlags
System.Runtime.InteropServices.TypeLibFuncFlags
System.Runtime.InteropServices.TypeLibVarFlags
System.Runtime.InteropServices.TypeLibTypeAttribute
System.Runtime.InteropServices.TypeLibFuncAttribute
System.Runtime.InteropServices.TypeLibVarAttribute
System.Runtime.InteropServices.ComImportAttribute
System.Runtime.InteropServices.PreserveSigAttribute
System.Runtime.InteropServices.ComAliasNameAttribute
System.Runtime.InteropServices.AutomationProxyAttribute
System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute
System.Runtime.InteropServices.CoClassAttribute
System.Runtime.InteropServices.ComEventInterfaceAttribute
System.Runtime.InteropServices.COMException
System.Runtime.InteropServices.ComMemberType
System.Runtime.InteropServices.CurrencyWrapper
System.Runtime.InteropServices.DispatchWrapper
System.Runtime.InteropServices.ErrorWrapper
System.Runtime.InteropServices.ExtensibleClassFactory
System.Runtime.InteropServices.HandleRef
System.Runtime.InteropServices.InvalidComObjectException
System.Runtime.InteropServices.InvalidOleVariantTypeException
System.Runtime.InteropServices.TypeLibImporterFlags
System.Runtime.InteropServices.ExporterEventKind
System.Runtime.InteropServices.ITypeLibExporterNotifySink
System.Runtime.InteropServices.ITypeLibConverter
System.Runtime.InteropServices.MarshalDirectiveException
System.Runtime.InteropServices.ObjectCreationDelegate
System.Runtime.InteropServices.RuntimeEnvironment
System.Runtime.InteropServices.RegistrationServices
System.Runtime.InteropServices.SafeArrayRankMismatchException
System.Runtime.InteropServices.SafeArrayTypeMismatchException
System.Runtime.InteropServices.SEHException
System.Runtime.InteropServices.TypeLibConverter
System.Runtime.InteropServices.BIND_OPTS
System.Runtime.InteropServices.UCOMIBindCtx
System.Runtime.InteropServices.UCOMIConnectionPointContainer
System.Runtime.InteropServices.UCOMIConnectionPoint
System.Runtime.InteropServices.UCOMIEnumMoniker
System.Runtime.InteropServices.CONNECTDATA
System.Runtime.InteropServices.UCOMIEnumConnections
System.Runtime.InteropServices.UCOMIEnumConnectionPoints
System.Runtime.InteropServices.UCOMIEnumString
System.Runtime.InteropServices.UCOMIEnumVARIANT
System.Runtime.InteropServices.FILETIME
System.Runtime.InteropServices.UCOMIMoniker
System.Runtime.InteropServices.UCOMIPersistFile
System.Runtime.InteropServices.UCOMIRunningObjectTable
System.Runtime.InteropServices.STATSTG
System.Runtime.InteropServices.UCOMIStream
System.Runtime.InteropServices.DESCKIND
System.Runtime.InteropServices.BINDPTR
System.Runtime.InteropServices.UCOMITypeComp
System.Runtime.InteropServices.TYPEKIND
System.Runtime.InteropServices.TYPEFLAGS
System.Runtime.InteropServices.IMPLTYPEFLAGS
System.Runtime.InteropServices.TYPEATTR
System.Runtime.InteropServices.FUNCDESC
System.Runtime.InteropServices.IDLFLAG
System.Runtime.InteropServices.IDLDESC
System.Runtime.InteropServices.PARAMFLAG
System.Runtime.InteropServices.PARAMDESC
System.Runtime.InteropServices.TYPEDESC
System.Runtime.InteropServices.ELEMDESC
System.Runtime.InteropServices.VARDESC
System.Runtime.InteropServices.DISPPARAMS
System.Runtime.InteropServices.EXCEPINFO
System.Runtime.InteropServices.FUNCKIND
System.Runtime.InteropServices.INVOKEKIND
System.Runtime.InteropServices.CALLCONV
System.Runtime.InteropServices.FUNCFLAGS
System.Runtime.InteropServices.VARFLAGS
System.Runtime.InteropServices.UCOMITypeInfo
System.Runtime.InteropServices.SYSKIND
System.Runtime.InteropServices.LIBFLAGS
System.Runtime.InteropServices.TYPELIBATTR
System.Runtime.InteropServices.UCOMITypeLib
System.Runtime.InteropServices.UnknownWrapper
System.Runtime.Remoting.IObjectHandle
System.Runtime.Remoting.IRemotingTypeInfo
System.Runtime.Remoting.IChannelInfo
System.Runtime.Remoting.IEnvoyInfo
System.Runtime.Remoting.RemotingConfiguration
System.Runtime.Remoting.TypeEntry
System.Runtime.Remoting.ActivatedClientTypeEntry
System.Runtime.Remoting.ActivatedServiceTypeEntry
System.Runtime.Remoting.WellKnownClientTypeEntry
System.Runtime.Remoting.WellKnownServiceTypeEntry
System.Runtime.Remoting.RemotingException
System.Runtime.Remoting.ServerException
System.Runtime.Remoting.RemotingTimeoutException
System.Runtime.Remoting.RemotingServices
System.Runtime.Remoting.InternalRemotingServices
System.Runtime.Remoting.SoapServices
System.Runtime.Remoting.Activation.UrlAttribute
System.Runtime.Remoting.Messaging.IMessageSink
System.Runtime.Remoting.Messaging.AsyncResult
System.Runtime.Remoting.Messaging.CallContext
System.Runtime.Remoting.Messaging.ILogicalThreadAffinative
System.Runtime.Remoting.Messaging.InternalMessageWrapper
System.Runtime.Remoting.Messaging.IMethodCallMessage
System.Runtime.Remoting.Messaging.MethodCallMessageWrapper
System.Runtime.Remoting.Messaging.HeaderHandler
System.Runtime.Remoting.Messaging.IMessageCtrl
System.Runtime.Remoting.Messaging.IRemotingFormatter
System.Runtime.Remoting.Messaging.ReturnMessage
System.Runtime.Remoting.Messaging.MethodCall
System.Runtime.Remoting.Messaging.ConstructionCall
System.Runtime.Remoting.Messaging.MethodResponse
System.Runtime.Remoting.Messaging.ConstructionResponse
System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper
System.Runtime.Remoting.Messaging.OneWayAttribute
System.Runtime.Remoting.Messaging.MessageSurrogateFilter
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
System.Runtime.Remoting.Contexts.CrossContextDelegate
System.Runtime.Remoting.Contexts.ContextProperty
System.Runtime.Remoting.Contexts.IContextPropertyActivator
System.Runtime.Remoting.Contexts.IContributeClientContextSink
System.Runtime.Remoting.Contexts.IContributeDynamicSink
System.Runtime.Remoting.Contexts.IContributeEnvoySink
System.Runtime.Remoting.Contexts.IContributeObjectSink
System.Runtime.Remoting.Contexts.IContributeServerContextSink
System.Runtime.Serialization.Formatters.InternalRM
System.Runtime.Serialization.Formatters.InternalST
System.Runtime.Serialization.Formatters.SoapMessage
System.Runtime.Serialization.Formatters.SoapFault
System.Runtime.Serialization.Formatters.ServerFault
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
System.Security.Cryptography.CryptoConfig
System.Security.Cryptography.KeyedHashAlgorithm
System.Security.Cryptography.HMACSHA1
System.Security.Cryptography.MACTripleDES
System.Security.Cryptography.MaskGenerationMethod
System.Security.Cryptography.PasswordDeriveBytes
System.Security.Cryptography.PKCS1MaskGenerationMethod
System.Security.Cryptography.RC2
System.Security.Cryptography.RC2CryptoServiceProvider
System.Security.Cryptography.RSACryptoServiceProvider
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter
System.Security.Cryptography.RSAOAEPKeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
System.Security.Cryptography.RSAPKCS1SignatureDeformatter
System.Security.Cryptography.RSAPKCS1SignatureFormatter
System.Security.Cryptography.SHA1Managed
System.Security.Cryptography.TripleDES
System.Security.Cryptography.TripleDESCryptoServiceProvider
System.Security.Permissions.EnvironmentPermission
System.Security.Permissions.FileDialogPermission
System.Security.Permissions.IsolatedStorageFilePermission
System.Security.Permissions.PrincipalPermissionAttribute
System.Security.Permissions.SecurityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermissionAttribute
System.Security.Permissions.PublisherIdentityPermission
System.Security.Permissions.ReflectionPermission
System.Security.Permissions.RegistryPermission
System.Security.Permissions.PrincipalPermission
System.Security.Permissions.SiteIdentityPermission
System.Security.Permissions.StrongNameIdentityPermission
System.Security.Permissions.StrongNamePublicKeyBlob
System.Security.Permissions.UIPermission
System.Security.Permissions.UrlIdentityPermission
System.Security.Permissions.ZoneIdentityPermission
System.Security.Policy.ApplicationDirectory
System.Security.Policy.ApplicationDirectoryMembershipCondition
System.Security.Policy.FirstMatchCodeGroup
System.Security.Policy.Hash
System.Security.Policy.HashMembershipCondition
System.Security.Policy.NetCodeGroup
System.Security.Policy.PermissionRequestEvidence
System.Security.Policy.Publisher
System.Security.Policy.PublisherMembershipCondition
System.Security.Policy.Site
System.Security.Policy.SiteMembershipCondition
System.Security.Policy.StrongName
System.Security.Policy.StrongNameMembershipCondition
System.Security.Policy.UnionCodeGroup
System.Security.Policy.Url
System.Security.Policy.UrlMembershipCondition
System.Security.Policy.Zone
System.Security.Policy.ZoneMembershipCondition
System.Security.Principal.WindowsIdentity
System.Security.Principal.WindowsImpersonationContext
System.Security.Principal.WindowsPrincipal
System.Threading.CompressedStack
+8 -5
View File
@@ -7,11 +7,14 @@
1,Class Status,class-status.html,class-status.src,cm/cormissing.css,cm/cormissing.js
2,corlib,class-status-corlib.html,class-status-corlib.src,cm/cormissing.css,cm/cormissing.js
2,System,class-status-System.html,class-status-System.src,cm/cormissing.css,cm/cormissing.js
2,System.Xml,class-status-System.Xml.html,class-status-System.Xml.src,cm/cormissing.css,cm/cormissing.js
2,System.Data,class-status-System.Data.html,class-status-System.Data.src,cm/cormissing.css,cm/cormissing.js
2,System.Drawing,class-status-System.Drawing.html,class-status-System.Drawing.src,cm/cormissing.css,cm/cormissing.js
2,System.Web,class-status-System.Web.html,class-status-System.Web.src,cm/cormissing.css,cm/cormissing.js
2,System.Web.Services,class-status-System.Web.Services.html,class-status-System.Web.Services.src,cm/cormissing.css,cm/cormissing.js
2,Xml,class-status-System.Xml.html,class-status-System.Xml.src,cm/cormissing.css,cm/cormissing.js
2,Data,class-status-System.Data.html,class-status-System.Data.src,cm/cormissing.css,cm/cormissing.js
2,Drawing,class-status-System.Drawing.html,class-status-System.Drawing.src,cm/cormissing.css,cm/cormissing.js
2,Web,class-status-System.Web.html,class-status-System.Web.src,cm/cormissing.css,cm/cormissing.js
2,Web.Services,class-status-System.Web.Services.html,class-status-System.Web.Services.src,cm/cormissing.css,cm/cormissing.js
2,Microsoft.VisualBasic,class-status-Microsoft.VisualBasic.html,class-status-Microsoft.VisualBasic.src,cm/cormissing.css,cm/cormissing.js
2,EnterpriseServices,class-status-System.EnterpriseServices.html,class-status-System.EnterpriseServices.src,cm/cormissing.css,cm/cormissing.js
2,Formatters.Soap,class-status-System.Runtime.Serialization.Formatters.Soap.html,class-status-System.Runtime.Serialization.Formatters.Soap.src,cm/cormissing.css,cm/cormissing.js
1,C# Compiler,c-sharp.html,c-sharp.src
1,Status,status.html,status.src
0,Download,download.html,download.src
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

+54 -61
View File
@@ -4,57 +4,63 @@ CSC=csc
CORCOMPARE=../../../mcs/tools/corcompare
OBJECTS= \
deploy/ado-net.html \
deploy/anoncvs.html \
deploy/asp-net.html \
deploy/books.html \
deploy/contributing.html \
deploy/class-status.html \
deploy/class-status-corlib.html \
deploy/class-status-System.html \
deploy/class-status-System.Xml.html \
deploy/class-status-System.Drawing.html \
deploy/class-status-System.Data.html \
deploy/class-status-System.Web.html \
deploy/class-status-System.Web.Services.html \
deploy/class-library.html \
deploy/classlib-doc.html \
deploy/contact.html \
deploy/c-sharp.html \
deploy/ccvs.html \
deploy/documentation.html \
deploy/download.html \
deploy/faq.html \
deploy/gcc-frontend.html \
deploy/hackers.html \
deploy/index.html \
deploy/ideas.html \
deploy/java.html \
deploy/jit-debug.html \
deploy/jit-debug-sample.html \
deploy/jit-debug-sample2.html \
deploy/languages.html \
deploy/mailing-lists.html \
deploy/mono-beginning.html \
deploy/mono-contribution-howto.html \
deploy/monodoc-xml.html \
deploy/papers.html \
deploy/passport.html \
deploy/plans.html \
deploy/porting.html \
deploy/ppc.html \
deploy/rationale.html \
deploy/resources.html \
deploy/roadmap.html \
deploy/runtime.html \
deploy/status.html \
deploy/testing.html \
deploy/tools.html \
deploy/ado-net.html \
deploy/anoncvs.html \
deploy/asp-net.html \
deploy/books.html \
deploy/contributing.html \
deploy/class-status.html \
deploy/class-status-corlib.html \
deploy/class-status-System.html \
deploy/class-status-System.Xml.html \
deploy/class-status-System.Drawing.html \
deploy/class-status-System.Data.html \
deploy/class-status-System.Web.html \
deploy/class-status-System.Web.Services.html \
deploy/class-status-Microsoft.VisualBasic.html \
deploy/class-status-System.EnterpriseServices.html \
deploy/class-status-System.Runtime.Serialization.Formatters.Soap.html \
deploy/class-library.html \
deploy/classlib-doc.html \
deploy/contact.html \
deploy/c-sharp.html \
deploy/ccvs.html \
deploy/documentation.html \
deploy/download.html \
deploy/faq.html \
deploy/gcc-frontend.html \
deploy/hackers.html \
deploy/index.html \
deploy/ideas.html \
deploy/java.html \
deploy/jit-debug.html \
deploy/jit-debug-sample.html \
deploy/jit-debug-sample2.html \
deploy/languages.html \
deploy/mailing-lists.html \
deploy/mono-beginning.html \
deploy/mono-contribution-howto.html \
deploy/monodoc-xml.html \
deploy/papers.html \
deploy/passport.html \
deploy/plans.html \
deploy/porting.html \
deploy/ppc.html \
deploy/rationale.html \
deploy/resources.html \
deploy/roadmap.html \
deploy/runtime.html \
deploy/status.html \
deploy/testing.html \
deploy/tools.html \
deploy/winforms.html
#2,Configuration.Install,class-status-System.Configuration.Install.html,class-status-System.Configuration.Install.src,cm/cormissing.css,cm/cormissing.js
#2,Runtime.Remoting,class-status-System.Runtime.Remoting.html,class-status-System.Runtime.Remoting.src,cm/cormissing.css,cm/cormissing.js
# deploy/class-status-System.html \
# deploy/class-status-System.Configuration.Install.html \
# deploy/class-status-System.Runtime.Remoting.html \
NON_HTML_SOURCES= \
NON_HTML_SOURCES= \
../mono-build.sh \
../mono-build-w32.sh
@@ -65,9 +71,6 @@ all: $(OBJECTS) deploy/index.rss
tutorial: mono-beginning.html.stamp mono-beginning.pdf
cp -a mono-beginning mono-beginning.xml mono-beginning.pdf deploy
tutorial-windows: mono-beginning-windows.html.stamp mono-beginning-windows.pdf
cp -a mono-beginning-windows.xml mono-beginning-windows.pdf deploy
mono-beginning.html.stamp: mono-beginning.xml
db2html mono-beginning.xml
touch mono-beginning.html.stamp
@@ -78,16 +81,6 @@ mono-beginning.pdf: mono-beginning.xml
mono-beginning.xml: ../mono-beginning.xml
cp ../mono-beginning.xml .
mono-beginning-windows.html.stamp: mono-beginning-windows.xml
db2html mono-beginning-windows.xml
touch mono-beginning-windows.html.stamp
mono-beginning-windows.pdf: mono-beginning-windows.xml
db2pdf mono-beginning-windows.xml
mono-beginning-windows.xml: ../mono-beginning-windows.xml
cp ../mono-beginning-windows.xml .
deploy/index.rss: mono-rss.exe ../index
./mono-rss.exe ../index deploy/index.rss
+4 -3
View File
@@ -2,10 +2,11 @@
<html>
<head>
<title>#TITLE#</title>
<!-- background-image: url("images/bgsquares.gif"); -->
<style type="text/css">
<!--
body { font-family: "trebuchet ms", lucida, verdana, helvetica;
background-image: url("images/bgsquares.gif");
background-attachment: fixed; }
body, td, table { font-family: "trebuchet ms", lucida, verdana, helvetica;
font-size: 14px; }
@@ -27,7 +28,7 @@
a.navi2:visited { color: #cccccc; }
a.navi2:hover { color: #ee9900; text-decoration: underline; }
// -->
// -->
</style>
#CSS#
#SCRIPT#
@@ -38,7 +39,7 @@
<tr>
<td><img src="images/pixel.gif" alt=""></td><!-- left border -->
<td colspan="4">
<a href="http://www.go-mono.com"><img src="images/mono.gif"
<a href="http://www.go-mono.com"><img src="images/mono-new.gif"
alt="mono-logo" border="0"></a></td>
<td><img src="images/pixel.gif" alt=""></td><!-- right border -->
</tr>
+25 -17
View File
@@ -1,9 +1,20 @@
* System.Windows.Forms
System.Windows.Forms eventually will support multiple
toolkits. Ximian will be delivering a product that will allow
for System.Windows.Forms applications to integrate with GNOME
through Gtk and MacOS X using Cocoa.
System.Windows.Forms is currently being implemented using the
Win32 API, we will be using <a
href="http://www.winehq.com">WineLib</a> on Unix systems to
emulate the Win32 API.
Although the original plans were to use Gtk on X and Cocoa on
MacOS X, it would be very hard to emulate the event model in
which some Winforms applications depend, and it would be very
hard to implement the Wndproc method.
In terms of integrating visually with the desktop, we are
hoping to contribute to the Wine project an mechanism to make
it use the Gtk+ themes on X11 and Cocoa on MacOS to render the
widgets, and get the native look and feel on each of these
platforms.
There are no current plans to support embedded devices, but
Gtk/FrameBuffer is an option. If you have suggestions or
@@ -12,19 +23,15 @@
* Contributing
Currently Ximian developers are busy making our JIT engine
feature complete, and dealing with the low-level details of
the Mono runtime.
If you are interested in contributing, you can start stubbing
out classes and providing enumerations. That will help us
significantly when we start working on the actual bindings.
Christian Meyer is currently organizing this effort.
The Winforms effort is being coordinated by <a
href="mailto:[email protected]">Dennis Hayes</a>. If you are
interested in helping out with this effort, get in touch with
him.
* System.Drawing
Using existing libraries to implement some of the functionality required
Using existing libraries to implement some of the
functionality required:
<ul>
* gdk-pixbuf is a generic image loader that loads an image
@@ -75,12 +82,13 @@
MacOS
System.Drawing.Blah
MacOS ports of "System.Drawing.Blah"
Win32
WineLIB
System.Drawing.Blah
Win32 ports of "System.Drawing.Blah"
Then we use nant targets to include/exclude the right set of
files to create the assembly.
Notice that there is a proof of concept Gtk-backend for
Windows.Forms, but nobody is working on it, and for the
reasons stated before it is not a long term strategy.
* Open questions:
+19 -8
View File
@@ -44,6 +44,14 @@ the math operations checked (the default is unchecked).
Sets the default compilation mode to `unchecked'. This makes all
the math operations unchecked (this is the default).
.TP
.I -codepage:ID
Specifies the code page used to process the input files from the
point it is specified on. By default files will be processed in the
Latin-1 code page. The compiler will also automatically detect
Unicode files that have an embedded byte mark at the beginning. The
special ID "utf8" can be used to switch to utf8 and the ID "reset"
restores the automatic handling of code pages.
.TP
.I \-define:SYMLIST, -d:SYMLIST
Defines the symbol listed by the semi-colon separeted list SYMLIST
SYMBOL. This can be tested in the source code by the pre-processor,
@@ -56,6 +64,10 @@ Generate debugging information.
.I \-debug-
Do not generate debugging information.
.TP
.I \-\-expect-error X L
The compiler will expect the code to generate an error
named `X' in line `L'. This is only used by the test suite.
.TP
.I \-\-fatal
This is used for debugging the compiler. This makes the error emission
generate an exception that can be caught by a debugger.
@@ -90,15 +102,14 @@ Names the output file to be generated.
.I \-\-parse
Used for benchmarking. The compiler will only parse its input files.
.TP
.I \-\-probe X L
Probes for the code to generate an error named `X' in line `L'. This
is only used by the test suite.
.TP
.I /resource:RESOURCE
Embeds to the given resource file.
.I /resource:RESOURCE[,ID]
Embeds to the given resource file. The optional ID can be used to
give a different name to the resource. If not specified, the resource
name will be the file name.
.TP
.I /linkresource:RESOURCE
Links to the given resource file.
.I /linkresource:RESOURCE[,ID]
Links to the specified RESOURCE. The optional ID can be used to give
a name to the linked resource.
.TP
.I \-recurse:PATTERN, --recurse PATTERN
Does recursive compilation using the specified pattern. In Unix the
+10 -10
View File
@@ -77,7 +77,8 @@ See DEBUGGING FORMATS for details.
.TP
.I "--break method"
Inserts a breakpoint before the method whose name is `method'
(namespace.class:methodname).
(namespace.class:methodname). Use `Main' as method name to insert a breakpoint on the
application's main method.
.TP
.I "--precompile name"
Compiles the given class (namespace.name), method (namespace.name:methodname)
@@ -95,12 +96,9 @@ Writes out stabs debug information.
.I "dwarf"
Writes out dwarf debug information.
.TP
.I "dwarf-plus"
Uses an extended debugging information file which has been generated
by MCS. This extended debugging information will allow you to debug
C# source code rather than IL code. To use it, just run the JIT in
your debugger and call "mono_debug_make_symbols" each time the program
stops.
.I "mono"
Use a symbol file which has been created by MCS. It can be used to get
source lines in stack traces.
.PP
The "stabs" and "dwarf" formats support the following options:
.TP
@@ -130,10 +128,12 @@ behaviour.
Update the *.il files if their assemblies have changed, but only if the
file already exists.
.PP
The "dwarf-plus" format supports the following options:
.SH ENVIRONMENT VARIABLES
.TP
.I "dont_fallback"
Don't fallback to normal dwarf2 if the symbol file cannot be found.
.I "MONO_PATH"
Provides a search path to mono and mint where to look for library files.
Directories are separated by the platform path separator (colons on unix). Example:
.B /home/username/lib:/usr/local/mono/lib
.PP
.SH FILES
On Unix assemblies are loaded from the installation lib directory. If you set
Executable
+340
View File
@@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
+35
View File
@@ -1,3 +1,38 @@
2002-09-14 Piers Haken <[email protected]>
* */makefile.gnu:
use $(topdir)
build nunit into $(topdir)/class/lib
2002-08-27 Gonzalo Paniagua Javier <[email protected]>
* makefile.gnu:
* class/library.make:
* class/makefile.gnu:
* class/I18N/makefile.gnu
* class/corlib/makefile.gnu:
* class/corlib/Test/ChangeLog:
* class/corlib/Test/corlib_linux_test.args:
* class/corlib/Test/makefile.gnu:
* class/corlib/Test/run_test.sh:
* jay/makefile.gnu:
* mcs/makefile.gnu:
* monoresgen/makefile.gnu:
* nunit/makefile.gnu:
Allow running 'make -f makefile.gnu test' from top directory.
In the libraries makefile.gnu you just have to add TEST_DIR=dirname
with the name where tests reside.
2002-08-23 Martin Baulig <[email protected]>
* class/makefile.gnu: Add class/Mono.CSharp.Debugger to the build.
2002-08-13 Piers Haken <[email protected]>
* class/library.make: merge back original makefile.gnu behavior
* */makefile.gnu: merge back original makefile.gnu behavior
2002-08-12 Piers Haken <[email protected]>
* class/library.make: use 'find' to specify source files, instead of static files
+43
View File
@@ -23,3 +23,46 @@ Layout:
Thanks a lot to Sergey Chaban for his help during the development of
the C# compiler.
LICENSE
The mcs C# compiler and monoresgen are licensed to you under the GPL, version 2.
The complete text of the GPL is in the 'COPYING' file.
Copyright (C) 2001-2002 Ximian, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
The class libraries are licensed according to the following license:
Copyright (C) 2001-2002 Ximian, Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
+5
View File
@@ -0,0 +1,5 @@
Makefile
Makefile.in
.deps
*.dll
I18N-handlers.def
+849
View File
@@ -0,0 +1,849 @@
/*
* CP932.cs - Japanese (Shift-JIS) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.CJK
{
using System;
using System.Text;
using I18N.Common;
public unsafe class CP932 : Encoding
{
// Magic number used by Windows for the Shift-JIS code page.
private const int SHIFTJIS_CODE_PAGE = 932;
// Internal state.
private JISConvert convert;
// Constructor.
public CP932() : base(SHIFTJIS_CODE_PAGE)
{
// Load the JIS conversion tables.
convert = JISConvert.Convert;
}
// Get the number of bytes needed to encode a character buffer.
public override int GetByteCount(char[] chars, int index, int count)
{
// Validate the parameters.
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(index < 0 || index > chars.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (chars.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
// Determine the length of the final output.
int length = 0;
int ch, value;
#if __PNET__
byte *cjkToJis = convert.cjkToJis;
byte *extraToJis = convert.extraToJis;
#else
byte[] cjkToJis = convert.cjkToJis;
byte[] extraToJis = convert.extraToJis;
#endif
while(count > 0)
{
ch = chars[index++];
--count;
++length;
if(ch < 0x0080)
{
// Character maps to itself.
continue;
}
else if(ch < 0x0100)
{
// Check for special Latin 1 characters that
// can be mapped to double-byte code points.
if(ch == 0x00A2 || ch == 0x00A3 || ch == 0x00A7 ||
ch == 0x00A8 || ch == 0x00AC || ch == 0x00B0 ||
ch == 0x00B1 || ch == 0x00B4 || ch == 0x00B6 ||
ch == 0x00D7 || ch == 0x00F7)
{
++length;
}
}
else if(ch >= 0x0391 && ch <= 0x0451)
{
// Greek subset characters.
++length;
}
else if(ch >= 0x2010 && ch <= 0x9FA5)
{
// This range contains the bulk of the CJK set.
value = (ch - 0x2010) * 2;
value = ((int)(cjkToJis[value])) |
(((int)(cjkToJis[value + 1])) << 8);
if(value >= 0x0100)
{
++length;
}
}
else if(ch >= 0xFF01 && ch <= 0xFFEF)
{
// This range contains extra characters,
// including half-width katakana.
value = (ch - 0xFF01) * 2;
value = ((int)(extraToJis[value])) |
(((int)(extraToJis[value + 1])) << 8);
if(value >= 0x0100)
{
++length;
}
}
}
// Return the length to the caller.
return length;
}
// Get the bytes that result from encoding a character buffer.
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Validate the parameters.
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(charIndex < 0 || charIndex > chars.Length)
{
throw new ArgumentOutOfRangeException
("charIndex", Strings.GetString("ArgRange_Array"));
}
if(charCount < 0 || charCount > (chars.Length - charIndex))
{
throw new ArgumentOutOfRangeException
("charCount", Strings.GetString("ArgRange_Array"));
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
// Convert the characters into their byte form.
int posn = byteIndex;
int byteLength = bytes.Length;
int ch, value;
#if __PNET__
byte *cjkToJis = convert.cjkToJis;
byte *greekToJis = convert.greekToJis;
byte *extraToJis = convert.extraToJis;
#else
byte[] cjkToJis = convert.cjkToJis;
byte[] greekToJis = convert.greekToJis;
byte[] extraToJis = convert.extraToJis;
#endif
while(charCount > 0)
{
ch = chars[charIndex++];
--charCount;
if(posn >= byteLength)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"),
"bytes");
}
if(ch < 0x0080)
{
// Character maps to itself.
bytes[posn++] = (byte)ch;
continue;
}
else if(ch < 0x0100)
{
// Check for special Latin 1 characters that
// can be mapped to double-byte code points.
if(ch == 0x00A2 || ch == 0x00A3 || ch == 0x00A7 ||
ch == 0x00A8 || ch == 0x00AC || ch == 0x00B0 ||
ch == 0x00B1 || ch == 0x00B4 || ch == 0x00B6 ||
ch == 0x00D7 || ch == 0x00F7)
{
if((posn + 1) >= byteLength)
{
throw new ArgumentException
(Strings.GetString
("Arg_InsufficientSpace"), "bytes");
}
switch(ch)
{
case 0x00A2:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x91;
break;
case 0x00A3:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x92;
break;
case 0x00A7:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x98;
break;
case 0x00A8:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x4E;
break;
case 0x00AC:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0xCA;
break;
case 0x00B0:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x8B;
break;
case 0x00B1:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x7D;
break;
case 0x00B4:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x4C;
break;
case 0x00B6:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0xF7;
break;
case 0x00D7:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x7E;
break;
case 0x00F7:
bytes[posn++] = (byte)0x81;
bytes[posn++] = (byte)0x80;
break;
}
}
else if(ch == 0x00A5)
{
// Yen sign.
bytes[posn++] = (byte)0x5C;
}
else
{
// Invalid character.
bytes[posn++] = (byte)'?';
}
continue;
}
else if(ch >= 0x0391 && ch <= 0x0451)
{
// Greek subset characters.
value = (ch - 0x0391) * 2;
value = ((int)(greekToJis[value])) |
(((int)(greekToJis[value + 1])) << 8);
}
else if(ch >= 0x2010 && ch <= 0x9FA5)
{
// This range contains the bulk of the CJK set.
value = (ch - 0x2010) * 2;
value = ((int)(cjkToJis[value])) |
(((int)(cjkToJis[value + 1])) << 8);
}
else if(ch >= 0xFF01 && ch <= 0xFFEF)
{
// This range contains extra characters,
// including half-width katakana.
value = (ch - 0xFF01) * 2;
value = ((int)(extraToJis[value])) |
(((int)(extraToJis[value + 1])) << 8);
}
else
{
// Invalid character.
value = 0;
}
if(value == 0)
{
bytes[posn++] = (byte)'?';
}
else if(value < 0x0100)
{
bytes[posn++] = (byte)value;
}
else if((posn + 1) >= byteLength)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"),
"bytes");
}
else if(value < 0x8000)
{
// JIS X 0208 character.
value -= 0x0100;
ch = (value / 0xBC);
value = (value % 0xBC) + 0x40;
if(value >= 0x7F)
{
++value;
}
if(ch < (0x9F - 0x80))
{
bytes[posn++] = (byte)(ch + 0x81);
}
else
{
bytes[posn++] = (byte)(ch - (0x9F - 0x80) + 0xE0);
}
bytes[posn++] = (byte)value;
}
else
{
// JIS X 0212 character, which Shift-JIS doesn't
// support, but we've already allocated two slots.
bytes[posn++] = (byte)'?';
bytes[posn++] = (byte)'?';
}
}
// Return the final length to the caller.
return posn - byteIndex;
}
// Get the number of characters needed to decode a byte buffer.
public override int GetCharCount(byte[] bytes, int index, int count)
{
// Validate the parameters.
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(index < 0 || index > bytes.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (bytes.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
// Determine the total length of the converted string.
int length = 0;
int byteval;
while(count > 0)
{
byteval = bytes[index++];
--count;
++length;
if(byteval < 0x80)
{
// Ordinary ASCII/Latin1 character, or the
// single-byte Yen or overline signs.
continue;
}
else if(byteval >= 0xA1 && byteval <= 0xDF)
{
// Half-width katakana.
continue;
}
else if(byteval < 0x81 ||
(byteval > 0x9F && byteval < 0xE0) ||
byteval > 0xEF)
{
// Invalid first byte.
continue;
}
if(count == 0)
{
// Missing second byte.
continue;
}
++index;
--count;
}
// Return the total length.
return length;
}
// Get the characters that result from decoding a byte buffer.
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Validate the parameters.
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
if(byteCount < 0 || byteCount > (bytes.Length - byteIndex))
{
throw new ArgumentOutOfRangeException
("byteCount", Strings.GetString("ArgRange_Array"));
}
if(charIndex < 0 || charIndex > chars.Length)
{
throw new ArgumentOutOfRangeException
("charIndex", Strings.GetString("ArgRange_Array"));
}
// Determine the total length of the converted string.
int charLength = chars.Length;
int posn = charIndex;
int length = 0;
int byteval, value;
#if __PNET__
byte *table = convert.jisx0208ToUnicode;
#else
byte[] table = convert.jisx0208ToUnicode;
#endif
while(byteCount > 0)
{
byteval = bytes[byteIndex++];
--byteCount;
++length;
if(posn >= charLength)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"),
"chars");
}
if(byteval == 0x5C)
{
// Yen sign.
chars[posn++] = '\u00A5';
continue;
}
else if(byteval == 0x7E)
{
// Overline symbol.
chars[posn++] = '\u203E';
continue;
}
else if(byteval < 0x80)
{
// Ordinary ASCII/Latin1 character.
chars[posn++] = (char)byteval;
continue;
}
else if(byteval >= 0xA1 && byteval <= 0xDF)
{
// Half-width katakana.
chars[posn++] = (char)(byteval - 0xA1 + 0xFF61);
continue;
}
else if(byteval >= 0x81 && byteval <= 0x9F)
{
value = (byteval - 0x81) * 0xBC;
}
else if(byteval >= 0xE0 && byteval <= 0xEF)
{
value = (byteval - 0xE0 + (0xA0 - 0x81)) * 0xBC;
}
else
{
// Invalid first byte.
chars[posn++] = '?';
continue;
}
if(byteCount == 0)
{
// Missing second byte.
chars[posn++] = '?';
continue;
}
byteval = bytes[byteIndex++];
--byteCount;
if(byteval >= 0x40 && byteval <= 0x7E)
{
value += (byteval - 0x40);
}
else if(byteval >= 0x80 && byteval <= 0xFC)
{
value += (byteval - 0x80 + 0x3F);
}
else
{
// Invalid second byte.
chars[posn++] = '?';
continue;
}
value *= 2;
value = ((int)(table[value])) |
(((int)(table[value + 1])) << 8);
if(value != 0)
{
chars[posn++] = (char)value;
}
else
{
chars[posn++] = '?';
}
}
// Return the total length.
return posn - charIndex;
}
// Get the maximum number of bytes needed to encode a
// specified number of characters.
public override int GetMaxByteCount(int charCount)
{
if(charCount < 0)
{
throw new ArgumentOutOfRangeException
("charCount",
Strings.GetString("ArgRange_NonNegative"));
}
return charCount * 2;
}
// Get the maximum number of characters needed to decode a
// specified number of bytes.
public override int GetMaxCharCount(int byteCount)
{
if(byteCount < 0)
{
throw new ArgumentOutOfRangeException
("byteCount",
Strings.GetString("ArgRange_NonNegative"));
}
return byteCount;
}
// Get a decoder that handles a rolling Shift-JIS state.
public override Decoder GetDecoder()
{
return new CP932Decoder(convert);
}
#if !ECMA_COMPAT
// Get the mail body name for this encoding.
public override String BodyName
{
get
{
return "iso-2022-jp";
}
}
// Get the human-readable name for this encoding.
public override String EncodingName
{
get
{
return "Japanese (Shift-JIS)";
}
}
// Get the mail agent header name for this encoding.
public override String HeaderName
{
get
{
return "iso-2022-jp";
}
}
// Determine if this encoding can be displayed in a Web browser.
public override bool IsBrowserDisplay
{
get
{
return true;
}
}
// Determine if this encoding can be saved from a Web browser.
public override bool IsBrowserSave
{
get
{
return true;
}
}
// Determine if this encoding can be displayed in a mail/news agent.
public override bool IsMailNewsDisplay
{
get
{
return true;
}
}
// Determine if this encoding can be saved from a mail/news agent.
public override bool IsMailNewsSave
{
get
{
return true;
}
}
// Get the IANA-preferred Web name for this encoding.
public override String WebName
{
get
{
return "shift_jis";
}
}
// Get the Windows code page represented by this object.
public override int WindowsCodePage
{
get
{
return SHIFTJIS_CODE_PAGE;
}
}
#endif // !ECMA_COMPAT
// Decoder that handles a rolling Shift-JIS state.
private sealed class CP932Decoder : Decoder
{
private JISConvert convert;
private int lastByte;
// Constructor.
public CP932Decoder(JISConvert convert)
{
this.convert = convert;
this.lastByte = 0;
}
// Override inherited methods.
public override int GetCharCount(byte[] bytes, int index, int count)
{
// Validate the parameters.
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(index < 0 || index > bytes.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (bytes.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
// Determine the total length of the converted string.
int length = 0;
int byteval;
int last = lastByte;
while(count > 0)
{
byteval = bytes[index++];
--count;
if(last == 0)
{
if((byteval >= 0x81 && byteval <= 0x9F) ||
(byteval >= 0xE0 && byteval <= 0xEF))
{
// First byte in a double-byte sequence.
last = byteval;
}
++length;
}
else
{
// Second byte in a double-byte sequence.
last = 0;
}
}
// Return the total length.
return length;
}
public override int GetChars(byte[] bytes, int byteIndex,
int byteCount, char[] chars,
int charIndex)
{
// Validate the parameters.
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
if(byteCount < 0 || byteCount > (bytes.Length - byteIndex))
{
throw new ArgumentOutOfRangeException
("byteCount", Strings.GetString("ArgRange_Array"));
}
if(charIndex < 0 || charIndex > chars.Length)
{
throw new ArgumentOutOfRangeException
("charIndex", Strings.GetString("ArgRange_Array"));
}
// Decode the bytes in the buffer.
int posn = charIndex;
int charLength = chars.Length;
int byteval, value;
int last = lastByte;
#if __PNET__
byte *table = convert.jisx0208ToUnicode;
#else
byte[] table = convert.jisx0208ToUnicode;
#endif
while(byteCount > 0)
{
byteval = bytes[byteIndex++];
--byteCount;
if(last == 0)
{
if(posn >= charLength)
{
throw new ArgumentException
(Strings.GetString
("Arg_InsufficientSpace"), "chars");
}
if((byteval >= 0x81 && byteval <= 0x9F) ||
(byteval >= 0xE0 && byteval <= 0xEF))
{
// First byte in a double-byte sequence.
last = byteval;
}
else if(byteval == 0x5C)
{
// Yen sign.
chars[posn++] ='\u00A5';
}
else if(byteval == 0x7E)
{
// Overline symbol.
chars[posn++] ='\u203E';
}
else if(byteval < 0x80)
{
// Ordinary ASCII/Latin1 character.
chars[posn++] = (char)byteval;
}
else if(byteval >= 0xA1 && byteval <= 0xDF)
{
// Half-width katakana character.
chars[posn++] = (char)(byteval - 0xA1 + 0xFF61);
}
else
{
// Invalid first byte.
chars[posn++] = '?';
}
}
else
{
// Second byte in a double-byte sequence.
if(last >= 0x81 && last <= 0x9F)
{
value = (last - 0x81) * 0xBC;
}
else
{
value = (last - 0xE0 + (0xA0 - 0x81)) * 0xBC;
}
last = 0;
if(byteval >= 0x40 && byteval <= 0x7E)
{
value += (byteval - 0x40);
}
else if(byteval >= 0x80 && byteval <= 0xFC)
{
value += (byteval - 0x80 + 0x3F);
}
else
{
// Invalid second byte.
chars[posn++] = '?';
continue;
}
value *= 2;
value = ((int)(table[value])) |
(((int)(table[value + 1])) << 8);
if(value != 0)
{
chars[posn++] = (char)value;
}
else
{
chars[posn++] = '?';
}
}
}
lastByte = last;
// Return the final length to the caller.
return posn - charIndex;
}
} // class CP932Decoder
}; // class CP932
public class ENCshift_jis : CP932
{
public ENCshift_jis() : base() {}
}; // class ENCshift_jis
}; // namespace I18N.CJK
+143
View File
@@ -0,0 +1,143 @@
/*
* CodeTable.cs - Implementation of the "System.Text.CodeTable" class.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.CJK
{
using System;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using I18N.Common;
// This class assists encoding classes for the large CJK character
// sets by providing pointer access to table data in the resource
// section of the current assembly.
//
// Code tables are named by their resource (e.g. "jis.table") and
// contain one or more sections. Each section has an 8-byte header,
// consisting of a 32-bit section number and a 32-bit section length.
// The alignment of the data in the table is not guaranteed.
internal unsafe sealed class CodeTable : IDisposable
{
// Internal state.
private Stream stream;
// Load a code table from the resource section of this assembly.
public CodeTable(String name)
{
stream = (Assembly.GetExecutingAssembly()
.GetManifestResourceStream(name));
if(stream == null)
{
throw new NotSupportedException
(String.Format
(Strings.GetString("NotSupp_MissingCodeTable"),
name));
}
}
// Implement the IDisposable interface.
public void Dispose()
{
if(stream != null)
{
stream.Close();
stream = null;
}
}
// Get the starting address for a particular section within
// the code table. This address is guaranteed to persist
// after "Dispose" is called.
#if __PNET__
public byte *GetSection(int num)
#else
public byte[] GetSection(int num)
#endif
{
// If the table has been disposed, then bail out.
if(stream == null)
{
return null;
}
// Scan through the stream looking for the section.
long posn = 0;
long length = stream.Length;
byte[] header = new byte [8];
int sectNum, sectLen;
while((posn + 8) <= length)
{
// Read the next header block.
stream.Position = posn;
if(stream.Read(header, 0, 8) != 8)
{
break;
}
// Decode the fields in the header block.
sectNum = ((int)(header[0])) |
(((int)(header[1])) << 8) |
(((int)(header[2])) << 16) |
(((int)(header[3])) << 24);
sectLen = ((int)(header[4])) |
(((int)(header[5])) << 8) |
(((int)(header[6])) << 16) |
(((int)(header[7])) << 24);
// Is this the section we are looking for?
if(sectNum == num)
{
#if __PNET__
return GetAddress(stream, posn + 8);
#else
byte[] buf = new byte [sectLen];
if(stream.Read(buf, 0, sectLen) != sectLen)
{
break;
}
return buf;
#endif
}
// Advance to the next section.
posn += 8 + sectLen;
}
// We were unable to find the requested section.
return null;
}
#if __PNET__
// Back door access into the engine to get the address of
// an offset within a manifest resource stream.
[MethodImpl(MethodImplOptions.InternalCall)]
extern private static byte *GetAddress(Stream stream, long position);
#endif
}; // class CodeTable
}; // namespace I18N.CJK
+97
View File
@@ -0,0 +1,97 @@
/*
* JISConvert.cs - Implementation of the "System.Text.JISConvert" class.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.CJK
{
using System;
// This class assists other encoding classes in converting back
// and forth between JIS character sets and Unicode. It uses
// several large tables to do this, some of which are stored in
// the resource section of the assembly for efficient access.
internal unsafe sealed class JISConvert
{
// Table identifiers.
private const int JISX0208_To_Unicode = 1;
private const int JISX0212_To_Unicode = 2;
private const int CJK_To_JIS = 3;
private const int Greek_To_JIS = 4;
private const int Extra_To_JIS = 5;
// Public access to the conversion tables.
#if __PNET__
public byte *jisx0208ToUnicode;
public byte *jisx0212ToUnicode;
public byte *cjkToJis;
public byte *greekToJis;
public byte *extraToJis;
#else
public byte[] jisx0208ToUnicode;
public byte[] jisx0212ToUnicode;
public byte[] cjkToJis;
public byte[] greekToJis;
public byte[] extraToJis;
#endif
// Constructor.
private JISConvert()
{
// Load the conversion tables.
CodeTable table = new CodeTable("jis.table");
jisx0208ToUnicode = table.GetSection(JISX0208_To_Unicode);
jisx0212ToUnicode = table.GetSection(JISX0212_To_Unicode);
cjkToJis = table.GetSection(CJK_To_JIS);
greekToJis = table.GetSection(Greek_To_JIS);
extraToJis = table.GetSection(Extra_To_JIS);
table.Dispose();
}
// The one and only JIS conversion object in the system.
private static JISConvert convert;
// Get the primary JIS conversion object.
public static JISConvert Convert
{
get
{
lock(typeof(JISConvert))
{
if(convert != null)
{
return convert;
}
else
{
convert = new JISConvert();
return convert;
}
}
}
}
}; // class JISConvert
}; // namespace I18N.CJK
Binary file not shown.
+3
View File
@@ -0,0 +1,3 @@
CP932.cs
CodeTable.cs
JISConvert.cs
+13
View File
@@ -0,0 +1,13 @@
topdir = ../../..
LIBRARY = $(topdir)/class/lib/I18N.CJK.dll
LIB_LIST = list.unix
LIB_FLAGS = --unsafe --resource jis.table -r corlib -r mscorlib -r I18N
SOURCES_INCLUDE=*.cs
SOURCES_EXCLUDE=
export MONO_PATH_PREFIX = $(topdir)/class/lib:
include $(topdir)/class/library.make
+401
View File
@@ -0,0 +1,401 @@
/*
* ByteEncoding.cs - Implementation of the "I18N.Common.ByteEncoding" class.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.Common
{
using System;
using System.Text;
// This class provides an abstract base for encodings that use a single
// byte per character. The bulk of the work is done in this class, with
// subclasses providing implementations of the "ToBytes" methods to perform
// the char->byte conversion.
public abstract class ByteEncoding : Encoding
{
// Internal state.
protected char[] toChars;
protected String encodingName;
protected String bodyName;
protected String headerName;
protected String webName;
protected bool isBrowserDisplay;
protected bool isBrowserSave;
protected bool isMailNewsDisplay;
protected bool isMailNewsSave;
protected int windowsCodePage;
// Constructor.
protected ByteEncoding(int codePage, char[] toChars,
String encodingName, String bodyName,
String headerName, String webName,
bool isBrowserDisplay, bool isBrowserSave,
bool isMailNewsDisplay, bool isMailNewsSave,
int windowsCodePage)
: base(codePage)
{
this.toChars = toChars;
this.encodingName = encodingName;
this.bodyName = bodyName;
this.headerName = headerName;
this.webName = webName;
this.isBrowserDisplay = isBrowserDisplay;
this.isBrowserSave = isBrowserSave;
this.isMailNewsDisplay = isMailNewsDisplay;
this.isMailNewsSave = isMailNewsSave;
this.windowsCodePage = windowsCodePage;
}
// Get the number of bytes needed to encode a character buffer.
public override int GetByteCount(char[] chars, int index, int count)
{
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(index < 0 || index > chars.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (chars.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
return count;
}
// Convenience wrappers for "GetByteCount".
public override int GetByteCount(String s)
{
if(s == null)
{
throw new ArgumentNullException("s");
}
return s.Length;
}
// Convert an array of characters into a byte buffer,
// once the parameters have been validated.
protected abstract void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex);
// Convert a string into a byte buffer, once the parameters
// have been validated.
protected abstract void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex);
// Get the bytes that result from encoding a character buffer.
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(charIndex < 0 || charIndex > chars.Length)
{
throw new ArgumentOutOfRangeException
("charIndex", Strings.GetString("ArgRange_Array"));
}
if(charCount < 0 || charCount > (chars.Length - charIndex))
{
throw new ArgumentOutOfRangeException
("charCount", Strings.GetString("ArgRange_Array"));
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
if((bytes.Length - byteIndex) < charCount)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"));
}
ToBytes(chars, charIndex, charCount, bytes, byteIndex);
return charCount;
}
// Convenience wrappers for "GetBytes".
public override int GetBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
if(s == null)
{
throw new ArgumentNullException("s");
}
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(charIndex < 0 || charIndex > s.Length)
{
throw new ArgumentOutOfRangeException
("charIndex",
Strings.GetString("ArgRange_StringIndex"));
}
if(charCount < 0 || charCount > (s.Length - charIndex))
{
throw new ArgumentOutOfRangeException
("charCount",
Strings.GetString("ArgRange_StringRange"));
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
if((bytes.Length - byteIndex) < charCount)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"));
}
ToBytes(s, charIndex, charCount, bytes, byteIndex);
return charCount;
}
// Get the number of characters needed to decode a byte buffer.
public override int GetCharCount(byte[] bytes, int index, int count)
{
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(index < 0 || index > bytes.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (bytes.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
return count;
}
// Get the characters that result from decoding a byte buffer.
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
if(byteCount < 0 || byteCount > (bytes.Length - byteIndex))
{
throw new ArgumentOutOfRangeException
("byteCount", Strings.GetString("ArgRange_Array"));
}
if(charIndex < 0 || charIndex > chars.Length)
{
throw new ArgumentOutOfRangeException
("charIndex", Strings.GetString("ArgRange_Array"));
}
if((chars.Length - charIndex) < byteCount)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"));
}
int count = byteCount;
char[] cvt = toChars;
while(count-- > 0)
{
chars[charIndex++] = cvt[(int)(bytes[byteIndex++])];
}
return byteCount;
}
// Get the maximum number of bytes needed to encode a
// specified number of characters.
public override int GetMaxByteCount(int charCount)
{
if(charCount < 0)
{
throw new ArgumentOutOfRangeException
("charCount",
Strings.GetString("ArgRange_NonNegative"));
}
return charCount;
}
// Get the maximum number of characters needed to decode a
// specified number of bytes.
public override int GetMaxCharCount(int byteCount)
{
if(byteCount < 0)
{
throw new ArgumentOutOfRangeException
("byteCount",
Strings.GetString("ArgRange_NonNegative"));
}
return byteCount;
}
// Decode a buffer of bytes into a string.
public override String GetString(byte[] bytes, int index, int count)
{
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(index < 0 || index > bytes.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (bytes.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
StringBuilder s = new StringBuilder();
char[] cvt = toChars;
while(count-- > 0)
{
s.Append(cvt[(int)(bytes[index++])]);
}
return s.ToString();
}
public override String GetString(byte[] bytes)
{
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
int count = bytes.Length;
int posn = 0;
StringBuilder s = new StringBuilder();
char[] cvt = toChars;
while(count-- > 0)
{
s.Append(cvt[(int)(bytes[posn])]);
}
return s.ToString();
}
#if !ECMA_COMPAT
// Get the mail body name for this encoding.
public override String BodyName
{
get
{
return bodyName;
}
}
// Get the human-readable name for this encoding.
public override String EncodingName
{
get
{
return encodingName;
}
}
// Get the mail agent header name for this encoding.
public override String HeaderName
{
get
{
return headerName;
}
}
// Determine if this encoding can be displayed in a Web browser.
public override bool IsBrowserDisplay
{
get
{
return isBrowserDisplay;
}
}
// Determine if this encoding can be saved from a Web browser.
public override bool IsBrowserSave
{
get
{
return isBrowserSave;
}
}
// Determine if this encoding can be displayed in a mail/news agent.
public override bool IsMailNewsDisplay
{
get
{
return isMailNewsDisplay;
}
}
// Determine if this encoding can be saved from a mail/news agent.
public override bool IsMailNewsSave
{
get
{
return isMailNewsSave;
}
}
// Get the IANA-preferred Web name for this encoding.
public override String WebName
{
get
{
return webName;
}
}
// Get the Windows code page represented by this object.
public override int WindowsCodePage
{
get
{
return windowsCodePage;
}
}
#endif // !ECMA_COMPAT
}; // class ByteEncoding
}; // namespace I18N.Encoding
+198
View File
@@ -0,0 +1,198 @@
/*
* Handlers.cs - Implementation of the "I18N.Common.Handlers" class.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.Common
{
using System;
// This class provides an internal list of handlers, for runtime
// engines that do not implement the altered "GetFile" semantics.
// The list must be kept up to date manually.
public sealed class Handlers
{
public static readonly String[] List = {
"I18N.CJK.CP932",
"I18N.CJK.ENCshift_jis",
"I18N.MidEast.CP1254",
"I18N.MidEast.ENCwindows_1254",
"I18N.MidEast.CP1255",
"I18N.MidEast.ENCwindows_1255",
"I18N.MidEast.CP1256",
"I18N.MidEast.ENCwindows_1256",
"I18N.MidEast.CP28596",
"I18N.MidEast.ENCiso_8859_6",
"I18N.MidEast.CP28598",
"I18N.MidEast.ENCiso_8859_8",
"I18N.MidEast.CP28599",
"I18N.MidEast.ENCiso_8859_9",
"I18N.MidEast.CP38598",
"I18N.MidEast.ENCwindows_38598",
"I18N.Other.CP1251",
"I18N.Other.ENCwindows_1251",
"I18N.Other.CP1257",
"I18N.Other.ENCwindows_1257",
"I18N.Other.CP1258",
"I18N.Other.ENCwindows_1258",
"I18N.Other.CP20866",
"I18N.Other.ENCkoi8_r",
"I18N.Other.CP21866",
"I18N.Other.ENCkoi8_u",
"I18N.Other.CP28594",
"I18N.Other.ENCiso_8859_4",
"I18N.Other.CP28595",
"I18N.Other.ENCiso_8859_5",
"I18N.Other.ISCIIEncoding",
"I18N.Other.CP57002",
"I18N.Other.CP57003",
"I18N.Other.CP57004",
"I18N.Other.CP57005",
"I18N.Other.CP57006",
"I18N.Other.CP57007",
"I18N.Other.CP57008",
"I18N.Other.CP57009",
"I18N.Other.CP57010",
"I18N.Other.CP57011",
"I18N.Other.ENCx_iscii_de",
"I18N.Other.ENCx_iscii_be",
"I18N.Other.ENCx_iscii_ta",
"I18N.Other.ENCx_iscii_te",
"I18N.Other.ENCx_iscii_as",
"I18N.Other.ENCx_iscii_or",
"I18N.Other.ENCx_iscii_ka",
"I18N.Other.ENCx_iscii_ma",
"I18N.Other.ENCx_iscii_gu",
"I18N.Other.ENCx_iscii_pa",
"I18N.Other.CP874",
"I18N.Other.ENCwindows_874",
"I18N.Rare.CP1026",
"I18N.Rare.ENCibm1026",
"I18N.Rare.CP1047",
"I18N.Rare.ENCibm1047",
"I18N.Rare.CP1140",
"I18N.Rare.ENCibm01140",
"I18N.Rare.CP1141",
"I18N.Rare.ENCibm01141",
"I18N.Rare.CP1142",
"I18N.Rare.ENCibm01142",
"I18N.Rare.CP1143",
"I18N.Rare.ENCibm01143",
"I18N.Rare.CP1144",
"I18N.Rare.ENCibm1144",
"I18N.Rare.CP1145",
"I18N.Rare.ENCibm1145",
"I18N.Rare.CP1146",
"I18N.Rare.ENCibm1146",
"I18N.Rare.CP1147",
"I18N.Rare.ENCibm1147",
"I18N.Rare.CP1148",
"I18N.Rare.ENCibm1148",
"I18N.Rare.CP1149",
"I18N.Rare.ENCibm1149",
"I18N.Rare.CP20273",
"I18N.Rare.ENCibm273",
"I18N.Rare.CP20277",
"I18N.Rare.ENCibm277",
"I18N.Rare.CP20278",
"I18N.Rare.ENCibm278",
"I18N.Rare.CP20280",
"I18N.Rare.ENCibm280",
"I18N.Rare.CP20284",
"I18N.Rare.ENCibm284",
"I18N.Rare.CP20285",
"I18N.Rare.ENCibm285",
"I18N.Rare.CP20290",
"I18N.Rare.ENCibm290",
"I18N.Rare.CP20297",
"I18N.Rare.ENCibm297",
"I18N.Rare.CP20420",
"I18N.Rare.ENCibm420",
"I18N.Rare.CP20424",
"I18N.Rare.ENCibm424",
"I18N.Rare.CP20871",
"I18N.Rare.ENCibm871",
"I18N.Rare.CP21025",
"I18N.Rare.ENCibm1025",
"I18N.Rare.CP37",
"I18N.Rare.ENCibm037",
"I18N.Rare.CP500",
"I18N.Rare.ENCibm500",
"I18N.Rare.CP708",
"I18N.Rare.ENCasmo_708",
"I18N.Rare.CP852",
"I18N.Rare.ENCibm852",
"I18N.Rare.CP855",
"I18N.Rare.ENCibm855",
"I18N.Rare.CP857",
"I18N.Rare.ENCibm857",
"I18N.Rare.CP858",
"I18N.Rare.ENCibm00858",
"I18N.Rare.CP862",
"I18N.Rare.ENCibm862",
"I18N.Rare.CP864",
"I18N.Rare.ENCibm864",
"I18N.Rare.CP866",
"I18N.Rare.ENCibm866",
"I18N.Rare.CP869",
"I18N.Rare.ENCibm869",
"I18N.Rare.CP870",
"I18N.Rare.ENCibm870",
"I18N.Rare.CP875",
"I18N.Rare.ENCibm875",
"I18N.West.CP10000",
"I18N.West.ENCmacintosh",
"I18N.West.CP10079",
"I18N.West.ENCx_mac_icelandic",
"I18N.West.CP1250",
"I18N.West.ENCwindows_1250",
"I18N.West.CP1252",
"I18N.West.ENCwindows_1252",
"I18N.West.CP1253",
"I18N.West.ENCwindows_1253",
"I18N.West.CP28592",
"I18N.West.ENCiso_8859_2",
"I18N.West.CP28593",
"I18N.West.ENCiso_8859_3",
"I18N.West.CP28597",
"I18N.West.ENCiso_8859_7",
"I18N.West.CP28605",
"I18N.West.ENCiso_8859_15",
"I18N.West.CP437",
"I18N.West.ENCibm437",
"I18N.West.CP850",
"I18N.West.ENCibm850",
"I18N.West.CP860",
"I18N.West.ENCibm860",
"I18N.West.CP861",
"I18N.West.ENCibm861",
"I18N.West.CP863",
"I18N.West.ENCibm863",
"I18N.West.CP865",
"I18N.West.ENCibm865"
};
}; // class Handlers
}; // namespace I18N.Common
+336
View File
@@ -0,0 +1,336 @@
/*
* Manager.cs - Implementation of the "I18N.Common.Manager" class.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.Common
{
using System;
using System.IO;
using System.Text;
using System.Globalization;
using System.Collections;
using System.Reflection;
using System.Security;
// This class provides the primary entry point into the I18N
// library. Users of the library start by getting the value
// of the "PrimaryManager" property. They then invoke methods
// on the manager to obtain further I18N information.
public class Manager
{
// The primary I18N manager.
private static Manager manager;
// Internal state.
private Hashtable handlers; // List of all handler classes.
private Hashtable active; // Currently active handlers.
private Hashtable assemblies; // Currently loaded region assemblies.
// Constructor.
private Manager()
{
handlers = new Hashtable();
active = new Hashtable(16);
assemblies = new Hashtable(8);
LoadClassList();
}
// Get the primary I18N manager instance.
public static Manager PrimaryManager
{
get
{
lock(typeof(Manager))
{
if(manager == null)
{
manager = new Manager();
}
return manager;
}
}
}
// Normalize a name.
private static String Normalize(String name)
{
#if ECMA_COMPAT
return (name.ToLower()).Replace('-', '_');
#else
return (name.ToLower(CultureInfo.InvariantCulture))
.Replace('-', '_');
#endif
}
// Get an encoding object for a specific code page.
// Returns NULL if the code page is not available.
public Encoding GetEncoding(int codePage)
{
return (Instantiate("CP" + codePage.ToString()) as Encoding);
}
// Get an encoding object for a specific Web encoding.
// Returns NULL if the encoding is not available.
public Encoding GetEncoding(String name)
{
// Validate the parameter.
if(name == null)
{
return null;
}
// Normalize the encoding name.
name = Normalize(name);
// Try to find a class called "ENCname".
return (Instantiate("ENC" + name) as Encoding);
}
// List of hex digits for use by "GetCulture".
private const String hex = "0123456789abcdef";
// Get a specific culture by identifier. Returns NULL
// if the culture information is not available.
public CultureInfo GetCulture(int culture, bool useUserOverride)
{
// Create the hex version of the culture identifier.
StringBuilder builder = new StringBuilder();
builder.Append(hex[(culture >> 12) & 0x0F]);
builder.Append(hex[(culture >> 8) & 0x0F]);
builder.Append(hex[(culture >> 4) & 0x0F]);
builder.Append(hex[culture & 0x0F]);
String name = builder.ToString();
// Try looking for an override culture handler.
if(useUserOverride)
{
Object obj = Instantiate("CIDO" + name);
if(obj != null)
{
return (obj as CultureInfo);
}
}
// Look for the generic non-override culture.
return (Instantiate("CID" + name) as CultureInfo);
}
// Get a specific culture by name. Returns NULL if the
// culture informaion is not available.
public CultureInfo GetCulture(String name, bool useUserOverride)
{
// Validate the parameter.
if(name == null)
{
return null;
}
// Normalize the culture name.
name = Normalize(name);
// Try looking for an override culture handler.
if(useUserOverride)
{
Object obj = Instantiate("CNO" + name.ToString());
if(obj != null)
{
return (obj as CultureInfo);
}
}
// Look for the generic non-override culture.
return (Instantiate("CN" + name.ToString()) as CultureInfo);
}
// Instantiate a handler class. Returns null if it is not
// possible to instantiate the class.
internal Object Instantiate(String name)
{
Object handler;
String region;
Assembly assembly;
Type type;
lock(this)
{
// See if we already have an active handler by this name.
handler = active[name];
if(handler != null)
{
return handler;
}
// Determine which region assembly handles the class.
region = (String)(handlers[name]);
if(region == null)
{
// The class does not exist in any region assembly.
return null;
}
// Find the region-specific assembly and load it.
assembly = (Assembly)(assemblies[region]);
if(assembly == null)
{
try
{
assembly = Assembly.Load(region);
}
catch(SystemException)
{
assembly = null;
}
if(assembly == null)
{
return null;
}
assemblies[region] = assembly;
}
// Look for the class within the region-specific assembly.
type = assembly.GetType(region + "." + name);
if(type == null)
{
return null;
}
// Invoke the constructor, which we assume is public
// and has zero arguments.
try
{
handler = type.InvokeMember
(String.Empty,
BindingFlags.CreateInstance |
BindingFlags.Public |
BindingFlags.NonPublic |
BindingFlags.Instance,
null, null, null, null, null, null);
}
catch(MissingMethodException)
{
// The constructor was not present.
return null;
}
catch(SecurityException)
{
// The constructor was inaccessible.
return null;
}
// Add the handler to the active handlers cache.
active.Add(name, handler);
// Return the handler to the caller.
return handler;
}
}
// Load the list of classes that are present in all region assemblies.
private void LoadClassList()
{
FileStream stream;
// Look for "I18N-handlers.def" in the same directory
// as this assembly. Note: this assumes that the
// "Assembly.GetFile" method can access files that
// aren't explicitly part of the assembly manifest.
//
// This is necessary because the "I18N-handlers.def"
// file is generated after the "i18n" assembly is
// compiled and linked. So it cannot be embedded
// directly into the assembly manifest.
try
{
stream = Assembly.GetExecutingAssembly()
.GetFile("I18N-handlers.def");
if(stream == null)
{
return;
}
}
catch(FileNotFoundException)
{
// The file does not exist, or the runtime engine
// refuses to implement the necessary semantics.
// Fall back to an internal list, which must be
// kept up to date manually.
LoadInternalClasses();
return;
}
// Load the class list from the stream.
StreamReader reader = new StreamReader(stream);
String line;
int posn;
while((line = reader.ReadLine()) != null)
{
// Skip comment lines in the input.
if(line.Length == 0 || line[0] == '#')
{
continue;
}
// Split the line into namespace and name. We assume
// that the line has the form "I18N.<Region>.<Name>".
posn = line.LastIndexOf('.');
if(posn != -1)
{
// Add the namespace to the "handlers" hash,
// attached to the name of the handler class.
String name = line.Substring(posn + 1);
if(!handlers.Contains(name))
{
handlers.Add(name, line.Substring(0, posn));
}
}
}
reader.Close();
}
// Load the list of classes from the internal list.
private void LoadInternalClasses()
{
int posn;
foreach(String line in Handlers.List)
{
// Split the line into namespace and name. We assume
// that the line has the form "I18N.<Region>.<Name>".
posn = line.LastIndexOf('.');
if(posn != -1)
{
// Add the namespace to the "handlers" hash,
// attached to the name of the handler class.
String name = line.Substring(posn + 1);
if(!handlers.Contains(name))
{
handlers.Add(name, line.Substring(0, posn));
}
}
}
}
}; // class Manager
}; // namespace I18N.Common
+56
View File
@@ -0,0 +1,56 @@
/*
* Strings.cs - Implementation of the "I18N.Common.Strings" class.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.Common
{
using System;
using System.Reflection;
using System.Resources;
// This class provides string resource support to the rest
// of the I18N library assemblies.
public sealed class Strings
{
// Cached copy of the resources for this assembly.
private static ResourceManager resources = null;
// Helper for obtaining string resources for this assembly.
public static String GetString(String tag)
{
lock(typeof(Strings))
{
if(resources == null)
{
resources = new ResourceManager
("I18N", Assembly.GetExecutingAssembly());
}
return resources.GetString(tag, null);
}
}
}; // class Strings
}; // namespace I18N.Common
+4
View File
@@ -0,0 +1,4 @@
ByteEncoding.cs
Handlers.cs
Manager.cs
Strings.cs
+13
View File
@@ -0,0 +1,13 @@
topdir = ../../..
LIBRARY = $(topdir)/class/lib/I18N.dll
LIB_LIST = list.unix
LIB_FLAGS = -r corlib -r mscorlib
SOURCES_INCLUDE=*.cs
SOURCES_EXCLUDE=
export MONO_PATH_PREFIX = $(topdir)/class/lib:
include $(topdir)/class/library.make
+116
View File
@@ -0,0 +1,116 @@
<?xml version="1.0"?>
<project name="pnetlib I18N" default="build">
<property name="debug" value="false"/>
<target name="build">
<!-- Build the primary I18N.dll library -->
<csc output="../lib/I18N.dll" target="library" debug="${debug}">
<arg value="/nowarn:1595"/>
<arg value="/unsafe"/>
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
<arg value="/lib:../lib/"/>
<arg value="/r:corlib.dll"/>
<sources>
<includes name="Common/*.cs"/>
</sources>
<!--<resources>
<file name="../resources/en_US/I18N/I18N.resources"/>
</resources>-->
</csc>
<!-- Build the I18N.CJK.dll library -->
<csc output="../lib/I18N.CJK.dll" target="library" debug="${debug}">
<arg value="/unsafe"/>
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
<arg value="/lib:../lib/"/>
<arg value="/r:I18N.dll"/>
<arg value="/resource:CJK/jis.table"/>
<sources>
<includes name="CJK/*.cs"/>
</sources>
<!--<resources>
<file name="CJK/jis.table"/>
</resources>-->
</csc>
<!-- Build the I18N.MidEast.dll library -->
<csc output="../lib/I18N.MidEast.dll" target="library" debug="${debug}">
<arg value="/unsafe"/>
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
<arg value="/lib:../lib/"/>
<arg value="/r:I18N.dll"/>
<sources>
<includes name="MidEast/*.cs"/>
</sources>
</csc>
<!-- Build the I18N.Other.dll library -->
<csc output="../lib/I18N.Other.dll" target="library" debug="${debug}">
<arg value="/unsafe"/>
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
<arg value="/lib:../lib/"/>
<arg value="/r:I18N.dll"/>
<sources>
<includes name="Other/*.cs"/>
</sources>
</csc>
<!-- Build the I18N.Rare.dll library -->
<csc output="../lib/I18N.Rare.dll" target="library" debug="${debug}">
<arg value="/unsafe"/>
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
<arg value="/lib:../lib/"/>
<arg value="/r:I18N.dll"/>
<sources>
<includes name="Rare/*.cs"/>
</sources>
</csc>
<!-- Build the I18N.West.dll library -->
<csc output="../lib/I18N.West.dll" target="library" debug="${debug}">
<arg value="/unsafe"/>
<arg value="/noconfig"/> <!-- don't reference ms assemblies -->
<arg value="/lib:../lib/"/>
<arg value="/r:I18N.dll"/>
<sources>
<includes name="West/*.cs"/>
</sources>
</csc>
</target>
<target name="clean">
<delete failonerror="false">
<fileset basedir="../lib">
<includes name="I18N.dll"/>
<includes name="I18N.CJK.dll"/>
<includes name="I18N.MidEast.dll"/>
<includes name="I18N.Other.dll"/>
<includes name="I18N.Rare.dll"/>
<includes name="I18N.West.dll"/>
</fileset>
</delete>
<!-- Uncomment this if build file added for those.
<nant basedir="Common" target="clean"/>
<nant basedir="CJK" target="clean"/>
<nant basedir="MidEast" target="clean"/>
<nant basedir="Other" target="clean"/>
<nant basedir="Rare" target="clean"/>
<nant basedir="West" target="clean"/>
-->
</target>
</project>
+399
View File
@@ -0,0 +1,399 @@
/*
* CP1254.cs - Turkish (Windows) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-5350.ucm".
namespace I18N.MidEast
{
using System;
using I18N.Common;
public class CP1254 : ByteEncoding
{
public CP1254()
: base(1254, ToChars, "Turkish (Windows)",
"iso-8859-9", "windows-1254", "windows-1254",
true, true, true, true, 1254)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u20AC', '\u0081', '\u201A', '\u0192',
'\u201E', '\u2026', '\u2020', '\u2021', '\u02C6', '\u2030',
'\u0160', '\u2039', '\u0152', '\u008D', '\u008E', '\u008F',
'\u0090', '\u2018', '\u2019', '\u201C', '\u201D', '\u2022',
'\u2013', '\u2014', '\u02DC', '\u2122', '\u0161', '\u203A',
'\u0153', '\u009D', '\u009E', '\u0178', '\u00A0', '\u00A1',
'\u00A2', '\u00A3', '\u00A4', '\u00A5', '\u00A6', '\u00A7',
'\u00A8', '\u00A9', '\u00AA', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u00AF', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u00B7', '\u00B8', '\u00B9',
'\u00BA', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u00BF',
'\u00C0', '\u00C1', '\u00C2', '\u00C3', '\u00C4', '\u00C5',
'\u00C6', '\u00C7', '\u00C8', '\u00C9', '\u00CA', '\u00CB',
'\u00CC', '\u00CD', '\u00CE', '\u00CF', '\u011E', '\u00D1',
'\u00D2', '\u00D3', '\u00D4', '\u00D5', '\u00D6', '\u00D7',
'\u00D8', '\u00D9', '\u00DA', '\u00DB', '\u00DC', '\u0130',
'\u015E', '\u00DF', '\u00E0', '\u00E1', '\u00E2', '\u00E3',
'\u00E4', '\u00E5', '\u00E6', '\u00E7', '\u00E8', '\u00E9',
'\u00EA', '\u00EB', '\u00EC', '\u00ED', '\u00EE', '\u00EF',
'\u011F', '\u00F1', '\u00F2', '\u00F3', '\u00F4', '\u00F5',
'\u00F6', '\u00F7', '\u00F8', '\u00F9', '\u00FA', '\u00FB',
'\u00FC', '\u0131', '\u015F', '\u00FF',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x008D:
case 0x008E:
case 0x008F:
case 0x0090:
case 0x009D:
case 0x009E:
case 0x00A0:
case 0x00A1:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AA:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BA:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00BF:
case 0x00C0:
case 0x00C1:
case 0x00C2:
case 0x00C3:
case 0x00C4:
case 0x00C5:
case 0x00C6:
case 0x00C7:
case 0x00C8:
case 0x00C9:
case 0x00CA:
case 0x00CB:
case 0x00CC:
case 0x00CD:
case 0x00CE:
case 0x00CF:
case 0x00D1:
case 0x00D2:
case 0x00D3:
case 0x00D4:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00D9:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E0:
case 0x00E1:
case 0x00E2:
case 0x00E3:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00EC:
case 0x00ED:
case 0x00EE:
case 0x00EF:
case 0x00F1:
case 0x00F2:
case 0x00F3:
case 0x00F4:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00F9:
case 0x00FA:
case 0x00FB:
case 0x00FC:
case 0x00FF:
break;
case 0x011E: ch = 0xD0; break;
case 0x011F: ch = 0xF0; break;
case 0x0130: ch = 0xDD; break;
case 0x0131: ch = 0xFD; break;
case 0x0152: ch = 0x8C; break;
case 0x0153: ch = 0x9C; break;
case 0x015E: ch = 0xDE; break;
case 0x015F: ch = 0xFE; break;
case 0x0160: ch = 0x8A; break;
case 0x0161: ch = 0x9A; break;
case 0x0178: ch = 0x9F; break;
case 0x0192: ch = 0x83; break;
case 0x02C6: ch = 0x88; break;
case 0x02DC: ch = 0x98; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x008D:
case 0x008E:
case 0x008F:
case 0x0090:
case 0x009D:
case 0x009E:
case 0x00A0:
case 0x00A1:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AA:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BA:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00BF:
case 0x00C0:
case 0x00C1:
case 0x00C2:
case 0x00C3:
case 0x00C4:
case 0x00C5:
case 0x00C6:
case 0x00C7:
case 0x00C8:
case 0x00C9:
case 0x00CA:
case 0x00CB:
case 0x00CC:
case 0x00CD:
case 0x00CE:
case 0x00CF:
case 0x00D1:
case 0x00D2:
case 0x00D3:
case 0x00D4:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00D9:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E0:
case 0x00E1:
case 0x00E2:
case 0x00E3:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00EC:
case 0x00ED:
case 0x00EE:
case 0x00EF:
case 0x00F1:
case 0x00F2:
case 0x00F3:
case 0x00F4:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00F9:
case 0x00FA:
case 0x00FB:
case 0x00FC:
case 0x00FF:
break;
case 0x011E: ch = 0xD0; break;
case 0x011F: ch = 0xF0; break;
case 0x0130: ch = 0xDD; break;
case 0x0131: ch = 0xFD; break;
case 0x0152: ch = 0x8C; break;
case 0x0153: ch = 0x9C; break;
case 0x015E: ch = 0xDE; break;
case 0x015F: ch = 0xFE; break;
case 0x0160: ch = 0x8A; break;
case 0x0161: ch = 0x9A; break;
case 0x0178: ch = 0x9F; break;
case 0x0192: ch = 0x83; break;
case 0x02C6: ch = 0x88; break;
case 0x02DC: ch = 0x98; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1254
public class ENCwindows_1254 : CP1254
{
public ENCwindows_1254() : base() {}
}; // class ENCwindows_1254
}; // namespace I18N.MidEast
+393
View File
@@ -0,0 +1,393 @@
/*
* CP1255.cs - Hebrew (Windows) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-5351.ucm".
namespace I18N.MidEast
{
using System;
using I18N.Common;
public class CP1255 : ByteEncoding
{
public CP1255()
: base(1255, ToChars, "Hebrew (Windows)",
"windows-1255", "windows-1255", "windows-1255",
true, true, true, true, 1255)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u20AC', '\u0081', '\u201A', '\u0192',
'\u201E', '\u2026', '\u2020', '\u2021', '\u02C6', '\u2030',
'\u008A', '\u2039', '\u008C', '\u008D', '\u008E', '\u008F',
'\u0090', '\u2018', '\u2019', '\u201C', '\u201D', '\u2022',
'\u2013', '\u2014', '\u02DC', '\u2122', '\u009A', '\u203A',
'\u009C', '\u009D', '\u009E', '\u009F', '\u00A0', '\u00A1',
'\u00A2', '\u00A3', '\u20AA', '\u00A5', '\u00A6', '\u00A7',
'\u00A8', '\u00A9', '\u00D7', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u00AF', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u00B7', '\u00B8', '\u00B9',
'\u00F7', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u00BF',
'\u05B0', '\u05B1', '\u05B2', '\u05B3', '\u05B4', '\u05B5',
'\u05B6', '\u05B7', '\u05B8', '\u05B9', '\u003F', '\u05BB',
'\u05BC', '\u05BD', '\u05BE', '\u05BF', '\u05C0', '\u05C1',
'\u05C2', '\u05C3', '\u05F0', '\u05F1', '\u05F2', '\u05F3',
'\u05F4', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u05D0', '\u05D1', '\u05D2', '\u05D3',
'\u05D4', '\u05D5', '\u05D6', '\u05D7', '\u05D8', '\u05D9',
'\u05DA', '\u05DB', '\u05DC', '\u05DD', '\u05DE', '\u05DF',
'\u05E0', '\u05E1', '\u05E2', '\u05E3', '\u05E4', '\u05E5',
'\u05E6', '\u05E7', '\u05E8', '\u05E9', '\u05EA', '\u003F',
'\u003F', '\u200E', '\u200F', '\u003F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x008A:
case 0x008C:
case 0x008D:
case 0x008E:
case 0x008F:
case 0x0090:
case 0x009A:
case 0x009C:
case 0x009D:
case 0x009E:
case 0x009F:
case 0x00A0:
case 0x00A1:
case 0x00A2:
case 0x00A3:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00BF:
break;
case 0x00D7: ch = 0xAA; break;
case 0x00F7: ch = 0xBA; break;
case 0x0192: ch = 0x83; break;
case 0x02C6: ch = 0x88; break;
case 0x02DC: ch = 0x98; break;
case 0x05B0:
case 0x05B1:
case 0x05B2:
case 0x05B3:
case 0x05B4:
case 0x05B5:
case 0x05B6:
case 0x05B7:
case 0x05B8:
case 0x05B9:
ch -= 0x04F0;
break;
case 0x05BB:
case 0x05BC:
case 0x05BD:
case 0x05BE:
case 0x05BF:
case 0x05C0:
case 0x05C1:
case 0x05C2:
case 0x05C3:
ch -= 0x04F0;
break;
case 0x05D0:
case 0x05D1:
case 0x05D2:
case 0x05D3:
case 0x05D4:
case 0x05D5:
case 0x05D6:
case 0x05D7:
case 0x05D8:
case 0x05D9:
case 0x05DA:
case 0x05DB:
case 0x05DC:
case 0x05DD:
case 0x05DE:
case 0x05DF:
case 0x05E0:
case 0x05E1:
case 0x05E2:
case 0x05E3:
case 0x05E4:
case 0x05E5:
case 0x05E6:
case 0x05E7:
case 0x05E8:
case 0x05E9:
case 0x05EA:
ch -= 0x04F0;
break;
case 0x05F0:
case 0x05F1:
case 0x05F2:
case 0x05F3:
case 0x05F4:
ch -= 0x051C;
break;
case 0x200E: ch = 0xFD; break;
case 0x200F: ch = 0xFE; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AA: ch = 0xA4; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x008A:
case 0x008C:
case 0x008D:
case 0x008E:
case 0x008F:
case 0x0090:
case 0x009A:
case 0x009C:
case 0x009D:
case 0x009E:
case 0x009F:
case 0x00A0:
case 0x00A1:
case 0x00A2:
case 0x00A3:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00BF:
break;
case 0x00D7: ch = 0xAA; break;
case 0x00F7: ch = 0xBA; break;
case 0x0192: ch = 0x83; break;
case 0x02C6: ch = 0x88; break;
case 0x02DC: ch = 0x98; break;
case 0x05B0:
case 0x05B1:
case 0x05B2:
case 0x05B3:
case 0x05B4:
case 0x05B5:
case 0x05B6:
case 0x05B7:
case 0x05B8:
case 0x05B9:
ch -= 0x04F0;
break;
case 0x05BB:
case 0x05BC:
case 0x05BD:
case 0x05BE:
case 0x05BF:
case 0x05C0:
case 0x05C1:
case 0x05C2:
case 0x05C3:
ch -= 0x04F0;
break;
case 0x05D0:
case 0x05D1:
case 0x05D2:
case 0x05D3:
case 0x05D4:
case 0x05D5:
case 0x05D6:
case 0x05D7:
case 0x05D8:
case 0x05D9:
case 0x05DA:
case 0x05DB:
case 0x05DC:
case 0x05DD:
case 0x05DE:
case 0x05DF:
case 0x05E0:
case 0x05E1:
case 0x05E2:
case 0x05E3:
case 0x05E4:
case 0x05E5:
case 0x05E6:
case 0x05E7:
case 0x05E8:
case 0x05E9:
case 0x05EA:
ch -= 0x04F0;
break;
case 0x05F0:
case 0x05F1:
case 0x05F2:
case 0x05F3:
case 0x05F4:
ch -= 0x051C;
break;
case 0x200E: ch = 0xFD; break;
case 0x200F: ch = 0xFE; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AA: ch = 0xA4; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1255
public class ENCwindows_1255 : CP1255
{
public ENCwindows_1255() : base() {}
}; // class ENCwindows_1255
}; // namespace I18N.MidEast
+771
View File
@@ -0,0 +1,771 @@
/*
* CP1256.cs - Arabic (Windows) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-5352.ucm".
namespace I18N.MidEast
{
using System;
using I18N.Common;
public class CP1256 : ByteEncoding
{
public CP1256()
: base(1256, ToChars, "Arabic (Windows)",
"windows-1256", "windows-1256", "windows-1256",
true, true, true, true, 1256)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u20AC', '\u067E', '\u201A', '\u0192',
'\u201E', '\u2026', '\u2020', '\u2021', '\u02C6', '\u2030',
'\u0679', '\u2039', '\u0152', '\u0686', '\u0698', '\u0688',
'\u06AF', '\u2018', '\u2019', '\u201C', '\u201D', '\u2022',
'\u2013', '\u2014', '\u06A9', '\u2122', '\u0691', '\u203A',
'\u0153', '\u200C', '\u200D', '\u06BA', '\u00A0', '\u060C',
'\u00A2', '\u00A3', '\u00A4', '\u00A5', '\u00A6', '\u00A7',
'\u00A8', '\u00A9', '\u06BE', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u00AF', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u00B7', '\u00B8', '\u00B9',
'\u061B', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u061F',
'\u06C1', '\u0621', '\u0622', '\u0623', '\u0624', '\u0625',
'\u0626', '\u0627', '\u0628', '\u0629', '\u062A', '\u062B',
'\u062C', '\u062D', '\u062E', '\u062F', '\u0630', '\u0631',
'\u0632', '\u0633', '\u0634', '\u0635', '\u0636', '\u00D7',
'\u0637', '\u0638', '\u0639', '\u063A', '\u0640', '\u0641',
'\u0642', '\u0643', '\u00E0', '\u0644', '\u00E2', '\u0645',
'\u0646', '\u0647', '\u0648', '\u00E7', '\u00E8', '\u00E9',
'\u00EA', '\u00EB', '\u0649', '\u064A', '\u00EE', '\u00EF',
'\u064B', '\u064C', '\u064D', '\u064E', '\u00F4', '\u064F',
'\u0650', '\u00F7', '\u0651', '\u00F9', '\u0652', '\u00FB',
'\u00FC', '\u200E', '\u200F', '\u06D2',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x00A0:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00D7:
case 0x00E0:
case 0x00E2:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00EE:
case 0x00EF:
case 0x00F4:
case 0x00F7:
case 0x00F9:
case 0x00FB:
case 0x00FC:
break;
case 0x0152: ch = 0x8C; break;
case 0x0153: ch = 0x9C; break;
case 0x0192: ch = 0x83; break;
case 0x02C6: ch = 0x88; break;
case 0x060C: ch = 0xA1; break;
case 0x061B: ch = 0xBA; break;
case 0x061F: ch = 0xBF; break;
case 0x0621:
case 0x0622:
case 0x0623:
case 0x0624:
case 0x0625:
case 0x0626:
case 0x0627:
case 0x0628:
case 0x0629:
case 0x062A:
case 0x062B:
case 0x062C:
case 0x062D:
case 0x062E:
case 0x062F:
case 0x0630:
case 0x0631:
case 0x0632:
case 0x0633:
case 0x0634:
case 0x0635:
case 0x0636:
ch -= 0x0560;
break;
case 0x0637:
case 0x0638:
case 0x0639:
case 0x063A:
ch -= 0x055F;
break;
case 0x0640:
case 0x0641:
case 0x0642:
case 0x0643:
ch -= 0x0564;
break;
case 0x0644: ch = 0xE1; break;
case 0x0645:
case 0x0646:
case 0x0647:
case 0x0648:
ch -= 0x0562;
break;
case 0x0649: ch = 0xEC; break;
case 0x064A: ch = 0xED; break;
case 0x064B:
case 0x064C:
case 0x064D:
case 0x064E:
ch -= 0x055B;
break;
case 0x064F: ch = 0xF5; break;
case 0x0650: ch = 0xF6; break;
case 0x0651: ch = 0xF8; break;
case 0x0652: ch = 0xFA; break;
case 0x0660:
case 0x0661:
case 0x0662:
case 0x0663:
case 0x0664:
case 0x0665:
case 0x0666:
case 0x0667:
case 0x0668:
case 0x0669:
ch -= 0x0630;
break;
case 0x066B: ch = 0x2C; break;
case 0x066C: ch = 0x2E; break;
case 0x0679: ch = 0x8A; break;
case 0x067E: ch = 0x81; break;
case 0x0686: ch = 0x8D; break;
case 0x0688: ch = 0x8F; break;
case 0x0691: ch = 0x9A; break;
case 0x0698: ch = 0x8E; break;
case 0x06A9: ch = 0x98; break;
case 0x06AF: ch = 0x90; break;
case 0x06BA: ch = 0x9F; break;
case 0x06BE: ch = 0xAA; break;
case 0x06C1: ch = 0xC0; break;
case 0x06D2: ch = 0xFF; break;
case 0x06F0:
case 0x06F1:
case 0x06F2:
case 0x06F3:
case 0x06F4:
case 0x06F5:
case 0x06F6:
case 0x06F7:
case 0x06F8:
case 0x06F9:
ch -= 0x06C0;
break;
case 0x200C: ch = 0x9D; break;
case 0x200D: ch = 0x9E; break;
case 0x200E: ch = 0xFD; break;
case 0x200F: ch = 0xFE; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
case 0xFB56: ch = 0x81; break;
case 0xFB58: ch = 0x81; break;
case 0xFB66: ch = 0x8A; break;
case 0xFB68: ch = 0x8A; break;
case 0xFB7A: ch = 0x8D; break;
case 0xFB7C: ch = 0x8D; break;
case 0xFB88: ch = 0x8F; break;
case 0xFB8A: ch = 0x8E; break;
case 0xFB8C: ch = 0x9A; break;
case 0xFB8E: ch = 0x98; break;
case 0xFB90: ch = 0x98; break;
case 0xFB92: ch = 0x90; break;
case 0xFB94: ch = 0x90; break;
case 0xFB9E: ch = 0x9F; break;
case 0xFBA6: ch = 0xC0; break;
case 0xFBA8: ch = 0xC0; break;
case 0xFBAA: ch = 0xAA; break;
case 0xFBAC: ch = 0xAA; break;
case 0xFBAE: ch = 0xFF; break;
case 0xFE70: ch = 0xF0; break;
case 0xFE71: ch = 0xF0; break;
case 0xFE72: ch = 0xF1; break;
case 0xFE74: ch = 0xF2; break;
case 0xFE76: ch = 0xF3; break;
case 0xFE77: ch = 0xF3; break;
case 0xFE78: ch = 0xF5; break;
case 0xFE79: ch = 0xF5; break;
case 0xFE7A: ch = 0xF6; break;
case 0xFE7B: ch = 0xF6; break;
case 0xFE7C: ch = 0xF8; break;
case 0xFE7D: ch = 0xF8; break;
case 0xFE7E: ch = 0xFA; break;
case 0xFE7F: ch = 0xFA; break;
case 0xFE80: ch = 0xC1; break;
case 0xFE81: ch = 0xC2; break;
case 0xFE82: ch = 0xC2; break;
case 0xFE83: ch = 0xC3; break;
case 0xFE84: ch = 0xC3; break;
case 0xFE85: ch = 0xC4; break;
case 0xFE86: ch = 0xC4; break;
case 0xFE87: ch = 0xC5; break;
case 0xFE88: ch = 0xC5; break;
case 0xFE89: ch = 0xC6; break;
case 0xFE8A: ch = 0xC6; break;
case 0xFE8B: ch = 0xC6; break;
case 0xFE8C: ch = 0xC6; break;
case 0xFE8D: ch = 0xC7; break;
case 0xFE8E: ch = 0xC7; break;
case 0xFE8F: ch = 0xC8; break;
case 0xFE90: ch = 0xC8; break;
case 0xFE91: ch = 0xC8; break;
case 0xFE92: ch = 0xC8; break;
case 0xFE93: ch = 0xC9; break;
case 0xFE94: ch = 0xC9; break;
case 0xFE95: ch = 0xCA; break;
case 0xFE96: ch = 0xCA; break;
case 0xFE97: ch = 0xCA; break;
case 0xFE98: ch = 0xCA; break;
case 0xFE99: ch = 0xCB; break;
case 0xFE9A: ch = 0xCB; break;
case 0xFE9B: ch = 0xCB; break;
case 0xFE9C: ch = 0xCB; break;
case 0xFE9D: ch = 0xCC; break;
case 0xFE9E: ch = 0xCC; break;
case 0xFE9F: ch = 0xCC; break;
case 0xFEA0: ch = 0xCC; break;
case 0xFEA1: ch = 0xCD; break;
case 0xFEA2: ch = 0xCD; break;
case 0xFEA3: ch = 0xCD; break;
case 0xFEA4: ch = 0xCD; break;
case 0xFEA5: ch = 0xCE; break;
case 0xFEA6: ch = 0xCE; break;
case 0xFEA7: ch = 0xCE; break;
case 0xFEA8: ch = 0xCE; break;
case 0xFEA9: ch = 0xCF; break;
case 0xFEAA: ch = 0xCF; break;
case 0xFEAB: ch = 0xD0; break;
case 0xFEAC: ch = 0xD0; break;
case 0xFEAD: ch = 0xD1; break;
case 0xFEAE: ch = 0xD1; break;
case 0xFEAF: ch = 0xD2; break;
case 0xFEB0: ch = 0xD2; break;
case 0xFEB1: ch = 0xD3; break;
case 0xFEB2: ch = 0xD3; break;
case 0xFEB3: ch = 0xD3; break;
case 0xFEB4: ch = 0xD3; break;
case 0xFEB5: ch = 0xD4; break;
case 0xFEB6: ch = 0xD4; break;
case 0xFEB7: ch = 0xD4; break;
case 0xFEB8: ch = 0xD4; break;
case 0xFEB9: ch = 0xD5; break;
case 0xFEBA: ch = 0xD5; break;
case 0xFEBB: ch = 0xD5; break;
case 0xFEBC: ch = 0xD5; break;
case 0xFEBD: ch = 0xD6; break;
case 0xFEBE: ch = 0xD6; break;
case 0xFEBF: ch = 0xD6; break;
case 0xFEC0: ch = 0xD6; break;
case 0xFEC1: ch = 0xD8; break;
case 0xFEC2: ch = 0xD8; break;
case 0xFEC3: ch = 0xD8; break;
case 0xFEC4: ch = 0xD8; break;
case 0xFEC5: ch = 0xD9; break;
case 0xFEC6: ch = 0xD9; break;
case 0xFEC7: ch = 0xD9; break;
case 0xFEC8: ch = 0xD9; break;
case 0xFEC9: ch = 0xDA; break;
case 0xFECA: ch = 0xDA; break;
case 0xFECB: ch = 0xDA; break;
case 0xFECC: ch = 0xDA; break;
case 0xFECD: ch = 0xDB; break;
case 0xFECE: ch = 0xDB; break;
case 0xFECF: ch = 0xDB; break;
case 0xFED0: ch = 0xDB; break;
case 0xFED1: ch = 0xDD; break;
case 0xFED2: ch = 0xDD; break;
case 0xFED3: ch = 0xDD; break;
case 0xFED4: ch = 0xDD; break;
case 0xFED5: ch = 0xDE; break;
case 0xFED6: ch = 0xDE; break;
case 0xFED7: ch = 0xDE; break;
case 0xFED8: ch = 0xDE; break;
case 0xFED9: ch = 0xDF; break;
case 0xFEDA: ch = 0xDF; break;
case 0xFEDB: ch = 0xDF; break;
case 0xFEDC: ch = 0xDF; break;
case 0xFEDD: ch = 0xE1; break;
case 0xFEDE: ch = 0xE1; break;
case 0xFEDF: ch = 0xE1; break;
case 0xFEE0: ch = 0xE1; break;
case 0xFEE1: ch = 0xE3; break;
case 0xFEE2: ch = 0xE3; break;
case 0xFEE3: ch = 0xE3; break;
case 0xFEE4: ch = 0xE3; break;
case 0xFEE5: ch = 0xE4; break;
case 0xFEE6: ch = 0xE4; break;
case 0xFEE7: ch = 0xE4; break;
case 0xFEE8: ch = 0xE4; break;
case 0xFEE9: ch = 0xE5; break;
case 0xFEEA: ch = 0xE5; break;
case 0xFEEB: ch = 0xE5; break;
case 0xFEEC: ch = 0xE5; break;
case 0xFEED: ch = 0xE6; break;
case 0xFEEE: ch = 0xE6; break;
case 0xFEEF: ch = 0xEC; break;
case 0xFEF0: ch = 0xEC; break;
case 0xFEF1: ch = 0xED; break;
case 0xFEF2: ch = 0xED; break;
case 0xFEF3: ch = 0xED; break;
case 0xFEF4: ch = 0xED; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x00A0:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00D7:
case 0x00E0:
case 0x00E2:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00EE:
case 0x00EF:
case 0x00F4:
case 0x00F7:
case 0x00F9:
case 0x00FB:
case 0x00FC:
break;
case 0x0152: ch = 0x8C; break;
case 0x0153: ch = 0x9C; break;
case 0x0192: ch = 0x83; break;
case 0x02C6: ch = 0x88; break;
case 0x060C: ch = 0xA1; break;
case 0x061B: ch = 0xBA; break;
case 0x061F: ch = 0xBF; break;
case 0x0621:
case 0x0622:
case 0x0623:
case 0x0624:
case 0x0625:
case 0x0626:
case 0x0627:
case 0x0628:
case 0x0629:
case 0x062A:
case 0x062B:
case 0x062C:
case 0x062D:
case 0x062E:
case 0x062F:
case 0x0630:
case 0x0631:
case 0x0632:
case 0x0633:
case 0x0634:
case 0x0635:
case 0x0636:
ch -= 0x0560;
break;
case 0x0637:
case 0x0638:
case 0x0639:
case 0x063A:
ch -= 0x055F;
break;
case 0x0640:
case 0x0641:
case 0x0642:
case 0x0643:
ch -= 0x0564;
break;
case 0x0644: ch = 0xE1; break;
case 0x0645:
case 0x0646:
case 0x0647:
case 0x0648:
ch -= 0x0562;
break;
case 0x0649: ch = 0xEC; break;
case 0x064A: ch = 0xED; break;
case 0x064B:
case 0x064C:
case 0x064D:
case 0x064E:
ch -= 0x055B;
break;
case 0x064F: ch = 0xF5; break;
case 0x0650: ch = 0xF6; break;
case 0x0651: ch = 0xF8; break;
case 0x0652: ch = 0xFA; break;
case 0x0660:
case 0x0661:
case 0x0662:
case 0x0663:
case 0x0664:
case 0x0665:
case 0x0666:
case 0x0667:
case 0x0668:
case 0x0669:
ch -= 0x0630;
break;
case 0x066B: ch = 0x2C; break;
case 0x066C: ch = 0x2E; break;
case 0x0679: ch = 0x8A; break;
case 0x067E: ch = 0x81; break;
case 0x0686: ch = 0x8D; break;
case 0x0688: ch = 0x8F; break;
case 0x0691: ch = 0x9A; break;
case 0x0698: ch = 0x8E; break;
case 0x06A9: ch = 0x98; break;
case 0x06AF: ch = 0x90; break;
case 0x06BA: ch = 0x9F; break;
case 0x06BE: ch = 0xAA; break;
case 0x06C1: ch = 0xC0; break;
case 0x06D2: ch = 0xFF; break;
case 0x06F0:
case 0x06F1:
case 0x06F2:
case 0x06F3:
case 0x06F4:
case 0x06F5:
case 0x06F6:
case 0x06F7:
case 0x06F8:
case 0x06F9:
ch -= 0x06C0;
break;
case 0x200C: ch = 0x9D; break;
case 0x200D: ch = 0x9E; break;
case 0x200E: ch = 0xFD; break;
case 0x200F: ch = 0xFE; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
case 0xFB56: ch = 0x81; break;
case 0xFB58: ch = 0x81; break;
case 0xFB66: ch = 0x8A; break;
case 0xFB68: ch = 0x8A; break;
case 0xFB7A: ch = 0x8D; break;
case 0xFB7C: ch = 0x8D; break;
case 0xFB88: ch = 0x8F; break;
case 0xFB8A: ch = 0x8E; break;
case 0xFB8C: ch = 0x9A; break;
case 0xFB8E: ch = 0x98; break;
case 0xFB90: ch = 0x98; break;
case 0xFB92: ch = 0x90; break;
case 0xFB94: ch = 0x90; break;
case 0xFB9E: ch = 0x9F; break;
case 0xFBA6: ch = 0xC0; break;
case 0xFBA8: ch = 0xC0; break;
case 0xFBAA: ch = 0xAA; break;
case 0xFBAC: ch = 0xAA; break;
case 0xFBAE: ch = 0xFF; break;
case 0xFE70: ch = 0xF0; break;
case 0xFE71: ch = 0xF0; break;
case 0xFE72: ch = 0xF1; break;
case 0xFE74: ch = 0xF2; break;
case 0xFE76: ch = 0xF3; break;
case 0xFE77: ch = 0xF3; break;
case 0xFE78: ch = 0xF5; break;
case 0xFE79: ch = 0xF5; break;
case 0xFE7A: ch = 0xF6; break;
case 0xFE7B: ch = 0xF6; break;
case 0xFE7C: ch = 0xF8; break;
case 0xFE7D: ch = 0xF8; break;
case 0xFE7E: ch = 0xFA; break;
case 0xFE7F: ch = 0xFA; break;
case 0xFE80: ch = 0xC1; break;
case 0xFE81: ch = 0xC2; break;
case 0xFE82: ch = 0xC2; break;
case 0xFE83: ch = 0xC3; break;
case 0xFE84: ch = 0xC3; break;
case 0xFE85: ch = 0xC4; break;
case 0xFE86: ch = 0xC4; break;
case 0xFE87: ch = 0xC5; break;
case 0xFE88: ch = 0xC5; break;
case 0xFE89: ch = 0xC6; break;
case 0xFE8A: ch = 0xC6; break;
case 0xFE8B: ch = 0xC6; break;
case 0xFE8C: ch = 0xC6; break;
case 0xFE8D: ch = 0xC7; break;
case 0xFE8E: ch = 0xC7; break;
case 0xFE8F: ch = 0xC8; break;
case 0xFE90: ch = 0xC8; break;
case 0xFE91: ch = 0xC8; break;
case 0xFE92: ch = 0xC8; break;
case 0xFE93: ch = 0xC9; break;
case 0xFE94: ch = 0xC9; break;
case 0xFE95: ch = 0xCA; break;
case 0xFE96: ch = 0xCA; break;
case 0xFE97: ch = 0xCA; break;
case 0xFE98: ch = 0xCA; break;
case 0xFE99: ch = 0xCB; break;
case 0xFE9A: ch = 0xCB; break;
case 0xFE9B: ch = 0xCB; break;
case 0xFE9C: ch = 0xCB; break;
case 0xFE9D: ch = 0xCC; break;
case 0xFE9E: ch = 0xCC; break;
case 0xFE9F: ch = 0xCC; break;
case 0xFEA0: ch = 0xCC; break;
case 0xFEA1: ch = 0xCD; break;
case 0xFEA2: ch = 0xCD; break;
case 0xFEA3: ch = 0xCD; break;
case 0xFEA4: ch = 0xCD; break;
case 0xFEA5: ch = 0xCE; break;
case 0xFEA6: ch = 0xCE; break;
case 0xFEA7: ch = 0xCE; break;
case 0xFEA8: ch = 0xCE; break;
case 0xFEA9: ch = 0xCF; break;
case 0xFEAA: ch = 0xCF; break;
case 0xFEAB: ch = 0xD0; break;
case 0xFEAC: ch = 0xD0; break;
case 0xFEAD: ch = 0xD1; break;
case 0xFEAE: ch = 0xD1; break;
case 0xFEAF: ch = 0xD2; break;
case 0xFEB0: ch = 0xD2; break;
case 0xFEB1: ch = 0xD3; break;
case 0xFEB2: ch = 0xD3; break;
case 0xFEB3: ch = 0xD3; break;
case 0xFEB4: ch = 0xD3; break;
case 0xFEB5: ch = 0xD4; break;
case 0xFEB6: ch = 0xD4; break;
case 0xFEB7: ch = 0xD4; break;
case 0xFEB8: ch = 0xD4; break;
case 0xFEB9: ch = 0xD5; break;
case 0xFEBA: ch = 0xD5; break;
case 0xFEBB: ch = 0xD5; break;
case 0xFEBC: ch = 0xD5; break;
case 0xFEBD: ch = 0xD6; break;
case 0xFEBE: ch = 0xD6; break;
case 0xFEBF: ch = 0xD6; break;
case 0xFEC0: ch = 0xD6; break;
case 0xFEC1: ch = 0xD8; break;
case 0xFEC2: ch = 0xD8; break;
case 0xFEC3: ch = 0xD8; break;
case 0xFEC4: ch = 0xD8; break;
case 0xFEC5: ch = 0xD9; break;
case 0xFEC6: ch = 0xD9; break;
case 0xFEC7: ch = 0xD9; break;
case 0xFEC8: ch = 0xD9; break;
case 0xFEC9: ch = 0xDA; break;
case 0xFECA: ch = 0xDA; break;
case 0xFECB: ch = 0xDA; break;
case 0xFECC: ch = 0xDA; break;
case 0xFECD: ch = 0xDB; break;
case 0xFECE: ch = 0xDB; break;
case 0xFECF: ch = 0xDB; break;
case 0xFED0: ch = 0xDB; break;
case 0xFED1: ch = 0xDD; break;
case 0xFED2: ch = 0xDD; break;
case 0xFED3: ch = 0xDD; break;
case 0xFED4: ch = 0xDD; break;
case 0xFED5: ch = 0xDE; break;
case 0xFED6: ch = 0xDE; break;
case 0xFED7: ch = 0xDE; break;
case 0xFED8: ch = 0xDE; break;
case 0xFED9: ch = 0xDF; break;
case 0xFEDA: ch = 0xDF; break;
case 0xFEDB: ch = 0xDF; break;
case 0xFEDC: ch = 0xDF; break;
case 0xFEDD: ch = 0xE1; break;
case 0xFEDE: ch = 0xE1; break;
case 0xFEDF: ch = 0xE1; break;
case 0xFEE0: ch = 0xE1; break;
case 0xFEE1: ch = 0xE3; break;
case 0xFEE2: ch = 0xE3; break;
case 0xFEE3: ch = 0xE3; break;
case 0xFEE4: ch = 0xE3; break;
case 0xFEE5: ch = 0xE4; break;
case 0xFEE6: ch = 0xE4; break;
case 0xFEE7: ch = 0xE4; break;
case 0xFEE8: ch = 0xE4; break;
case 0xFEE9: ch = 0xE5; break;
case 0xFEEA: ch = 0xE5; break;
case 0xFEEB: ch = 0xE5; break;
case 0xFEEC: ch = 0xE5; break;
case 0xFEED: ch = 0xE6; break;
case 0xFEEE: ch = 0xE6; break;
case 0xFEEF: ch = 0xEC; break;
case 0xFEF0: ch = 0xEC; break;
case 0xFEF1: ch = 0xED; break;
case 0xFEF2: ch = 0xED; break;
case 0xFEF3: ch = 0xED; break;
case 0xFEF4: ch = 0xED; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1256
public class ENCwindows_1256 : CP1256
{
public ENCwindows_1256() : base() {}
}; // class ENCwindows_1256
}; // namespace I18N.MidEast
+545
View File
@@ -0,0 +1,545 @@
/*
* CP28596.cs - Arabic (ISO) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1089.ucm".
namespace I18N.MidEast
{
using System;
using I18N.Common;
public class CP28596 : ByteEncoding
{
public CP28596()
: base(28596, ToChars, "Arabic (ISO)",
"iso-8859-6", "iso-8859-6", "iso-8859-6",
true, true, true, true, 1256)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u0085', '\u0086', '\u0087', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u008D', '\u008E', '\u008F',
'\u0090', '\u0091', '\u0092', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0097', '\u0098', '\u0099', '\u009A', '\u009B',
'\u009C', '\u009D', '\u009E', '\u009F', '\u00A0', '\u003F',
'\u003F', '\u003F', '\u00A4', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u060C', '\u00AD',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u061B', '\u003F', '\u003F', '\u003F', '\u061F',
'\u003F', '\u0621', '\u0622', '\u0623', '\u0624', '\u0625',
'\u0626', '\u0627', '\u0628', '\u0629', '\u062A', '\u062B',
'\u062C', '\u062D', '\u062E', '\u062F', '\u0630', '\u0631',
'\u0632', '\u0633', '\u0634', '\u0635', '\u0636', '\u0637',
'\u0638', '\u0639', '\u063A', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u0640', '\u0641', '\u0642', '\u0643',
'\u0644', '\u0645', '\u0646', '\u0647', '\u0648', '\u0649',
'\u064A', '\u064B', '\u064C', '\u064D', '\u064E', '\u064F',
'\u0650', '\u0651', '\u0652', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A4:
case 0x00AD:
break;
case 0x060C: ch = 0xAC; break;
case 0x061B: ch = 0xBB; break;
case 0x061F: ch = 0xBF; break;
case 0x0621:
case 0x0622:
case 0x0623:
case 0x0624:
case 0x0625:
case 0x0626:
case 0x0627:
case 0x0628:
case 0x0629:
case 0x062A:
case 0x062B:
case 0x062C:
case 0x062D:
case 0x062E:
case 0x062F:
case 0x0630:
case 0x0631:
case 0x0632:
case 0x0633:
case 0x0634:
case 0x0635:
case 0x0636:
case 0x0637:
case 0x0638:
case 0x0639:
case 0x063A:
ch -= 0x0560;
break;
case 0x0640:
case 0x0641:
case 0x0642:
case 0x0643:
case 0x0644:
case 0x0645:
case 0x0646:
case 0x0647:
case 0x0648:
case 0x0649:
case 0x064A:
case 0x064B:
case 0x064C:
case 0x064D:
case 0x064E:
case 0x064F:
case 0x0650:
case 0x0651:
case 0x0652:
ch -= 0x0560;
break;
case 0x0660:
case 0x0661:
case 0x0662:
case 0x0663:
case 0x0664:
case 0x0665:
case 0x0666:
case 0x0667:
case 0x0668:
case 0x0669:
ch -= 0x0630;
break;
case 0x066A: ch = 0x25; break;
case 0x066B: ch = 0x2C; break;
case 0x066C: ch = 0x2E; break;
case 0x066D: ch = 0x2A; break;
case 0xFE70: ch = 0xEB; break;
case 0xFE71: ch = 0xEB; break;
case 0xFE72: ch = 0xEC; break;
case 0xFE74: ch = 0xED; break;
case 0xFE76: ch = 0xEE; break;
case 0xFE77: ch = 0xEE; break;
case 0xFE78: ch = 0xEF; break;
case 0xFE79: ch = 0xEF; break;
case 0xFE7A: ch = 0xF0; break;
case 0xFE7B: ch = 0xF0; break;
case 0xFE7C: ch = 0xF1; break;
case 0xFE7D: ch = 0xF1; break;
case 0xFE7E: ch = 0xF2; break;
case 0xFE7F: ch = 0xF2; break;
case 0xFE80: ch = 0xC1; break;
case 0xFE81: ch = 0xC2; break;
case 0xFE82: ch = 0xC2; break;
case 0xFE83: ch = 0xC3; break;
case 0xFE84: ch = 0xC3; break;
case 0xFE85: ch = 0xC4; break;
case 0xFE86: ch = 0xC4; break;
case 0xFE87: ch = 0xC5; break;
case 0xFE88: ch = 0xC5; break;
case 0xFE89: ch = 0xC6; break;
case 0xFE8A: ch = 0xC6; break;
case 0xFE8B: ch = 0xC6; break;
case 0xFE8C: ch = 0xC6; break;
case 0xFE8D: ch = 0xC7; break;
case 0xFE8E: ch = 0xC7; break;
case 0xFE8F: ch = 0xC8; break;
case 0xFE90: ch = 0xC8; break;
case 0xFE91: ch = 0xC8; break;
case 0xFE92: ch = 0xC8; break;
case 0xFE93: ch = 0xC9; break;
case 0xFE94: ch = 0xC9; break;
case 0xFE95: ch = 0xCA; break;
case 0xFE96: ch = 0xCA; break;
case 0xFE97: ch = 0xCA; break;
case 0xFE98: ch = 0xCA; break;
case 0xFE99: ch = 0xCB; break;
case 0xFE9A: ch = 0xCB; break;
case 0xFE9B: ch = 0xCB; break;
case 0xFE9C: ch = 0xCB; break;
case 0xFE9D: ch = 0xCC; break;
case 0xFE9E: ch = 0xCC; break;
case 0xFE9F: ch = 0xCC; break;
case 0xFEA0: ch = 0xCC; break;
case 0xFEA1: ch = 0xCD; break;
case 0xFEA2: ch = 0xCD; break;
case 0xFEA3: ch = 0xCD; break;
case 0xFEA4: ch = 0xCD; break;
case 0xFEA5: ch = 0xCE; break;
case 0xFEA6: ch = 0xCE; break;
case 0xFEA7: ch = 0xCE; break;
case 0xFEA8: ch = 0xCE; break;
case 0xFEA9: ch = 0xCF; break;
case 0xFEAA: ch = 0xCF; break;
case 0xFEAB: ch = 0xD0; break;
case 0xFEAC: ch = 0xD0; break;
case 0xFEAD: ch = 0xD1; break;
case 0xFEAE: ch = 0xD1; break;
case 0xFEAF: ch = 0xD2; break;
case 0xFEB0: ch = 0xD2; break;
case 0xFEB1: ch = 0xD3; break;
case 0xFEB2: ch = 0xD3; break;
case 0xFEB3: ch = 0xD3; break;
case 0xFEB4: ch = 0xD3; break;
case 0xFEB5: ch = 0xD4; break;
case 0xFEB6: ch = 0xD4; break;
case 0xFEB7: ch = 0xD4; break;
case 0xFEB8: ch = 0xD4; break;
case 0xFEB9: ch = 0xD5; break;
case 0xFEBA: ch = 0xD5; break;
case 0xFEBB: ch = 0xD5; break;
case 0xFEBC: ch = 0xD5; break;
case 0xFEBD: ch = 0xD6; break;
case 0xFEBE: ch = 0xD6; break;
case 0xFEBF: ch = 0xD6; break;
case 0xFEC0: ch = 0xD6; break;
case 0xFEC1: ch = 0xD7; break;
case 0xFEC2: ch = 0xD7; break;
case 0xFEC3: ch = 0xD7; break;
case 0xFEC4: ch = 0xD7; break;
case 0xFEC5: ch = 0xD8; break;
case 0xFEC6: ch = 0xD8; break;
case 0xFEC7: ch = 0xD8; break;
case 0xFEC8: ch = 0xD8; break;
case 0xFEC9: ch = 0xD9; break;
case 0xFECA: ch = 0xD9; break;
case 0xFECB: ch = 0xD9; break;
case 0xFECC: ch = 0xD9; break;
case 0xFECD: ch = 0xDA; break;
case 0xFECE: ch = 0xDA; break;
case 0xFECF: ch = 0xDA; break;
case 0xFED0: ch = 0xDA; break;
case 0xFED1: ch = 0xE1; break;
case 0xFED2: ch = 0xE1; break;
case 0xFED3: ch = 0xE1; break;
case 0xFED4: ch = 0xE1; break;
case 0xFED5: ch = 0xE2; break;
case 0xFED6: ch = 0xE2; break;
case 0xFED7: ch = 0xE2; break;
case 0xFED8: ch = 0xE2; break;
case 0xFED9: ch = 0xE3; break;
case 0xFEDA: ch = 0xE3; break;
case 0xFEDB: ch = 0xE3; break;
case 0xFEDC: ch = 0xE3; break;
case 0xFEDD: ch = 0xE4; break;
case 0xFEDE: ch = 0xE4; break;
case 0xFEDF: ch = 0xE4; break;
case 0xFEE0: ch = 0xE4; break;
case 0xFEE1: ch = 0xE5; break;
case 0xFEE2: ch = 0xE5; break;
case 0xFEE3: ch = 0xE5; break;
case 0xFEE4: ch = 0xE5; break;
case 0xFEE5: ch = 0xE6; break;
case 0xFEE6: ch = 0xE6; break;
case 0xFEE7: ch = 0xE6; break;
case 0xFEE8: ch = 0xE6; break;
case 0xFEE9: ch = 0xE7; break;
case 0xFEEA: ch = 0xE7; break;
case 0xFEEB: ch = 0xE7; break;
case 0xFEEC: ch = 0xE7; break;
case 0xFEED: ch = 0xE8; break;
case 0xFEEE: ch = 0xE8; break;
case 0xFEEF: ch = 0xE9; break;
case 0xFEF0: ch = 0xE9; break;
case 0xFEF1: ch = 0xEA; break;
case 0xFEF2: ch = 0xEA; break;
case 0xFEF3: ch = 0xEA; break;
case 0xFEF4: ch = 0xEA; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A4:
case 0x00AD:
break;
case 0x060C: ch = 0xAC; break;
case 0x061B: ch = 0xBB; break;
case 0x061F: ch = 0xBF; break;
case 0x0621:
case 0x0622:
case 0x0623:
case 0x0624:
case 0x0625:
case 0x0626:
case 0x0627:
case 0x0628:
case 0x0629:
case 0x062A:
case 0x062B:
case 0x062C:
case 0x062D:
case 0x062E:
case 0x062F:
case 0x0630:
case 0x0631:
case 0x0632:
case 0x0633:
case 0x0634:
case 0x0635:
case 0x0636:
case 0x0637:
case 0x0638:
case 0x0639:
case 0x063A:
ch -= 0x0560;
break;
case 0x0640:
case 0x0641:
case 0x0642:
case 0x0643:
case 0x0644:
case 0x0645:
case 0x0646:
case 0x0647:
case 0x0648:
case 0x0649:
case 0x064A:
case 0x064B:
case 0x064C:
case 0x064D:
case 0x064E:
case 0x064F:
case 0x0650:
case 0x0651:
case 0x0652:
ch -= 0x0560;
break;
case 0x0660:
case 0x0661:
case 0x0662:
case 0x0663:
case 0x0664:
case 0x0665:
case 0x0666:
case 0x0667:
case 0x0668:
case 0x0669:
ch -= 0x0630;
break;
case 0x066A: ch = 0x25; break;
case 0x066B: ch = 0x2C; break;
case 0x066C: ch = 0x2E; break;
case 0x066D: ch = 0x2A; break;
case 0xFE70: ch = 0xEB; break;
case 0xFE71: ch = 0xEB; break;
case 0xFE72: ch = 0xEC; break;
case 0xFE74: ch = 0xED; break;
case 0xFE76: ch = 0xEE; break;
case 0xFE77: ch = 0xEE; break;
case 0xFE78: ch = 0xEF; break;
case 0xFE79: ch = 0xEF; break;
case 0xFE7A: ch = 0xF0; break;
case 0xFE7B: ch = 0xF0; break;
case 0xFE7C: ch = 0xF1; break;
case 0xFE7D: ch = 0xF1; break;
case 0xFE7E: ch = 0xF2; break;
case 0xFE7F: ch = 0xF2; break;
case 0xFE80: ch = 0xC1; break;
case 0xFE81: ch = 0xC2; break;
case 0xFE82: ch = 0xC2; break;
case 0xFE83: ch = 0xC3; break;
case 0xFE84: ch = 0xC3; break;
case 0xFE85: ch = 0xC4; break;
case 0xFE86: ch = 0xC4; break;
case 0xFE87: ch = 0xC5; break;
case 0xFE88: ch = 0xC5; break;
case 0xFE89: ch = 0xC6; break;
case 0xFE8A: ch = 0xC6; break;
case 0xFE8B: ch = 0xC6; break;
case 0xFE8C: ch = 0xC6; break;
case 0xFE8D: ch = 0xC7; break;
case 0xFE8E: ch = 0xC7; break;
case 0xFE8F: ch = 0xC8; break;
case 0xFE90: ch = 0xC8; break;
case 0xFE91: ch = 0xC8; break;
case 0xFE92: ch = 0xC8; break;
case 0xFE93: ch = 0xC9; break;
case 0xFE94: ch = 0xC9; break;
case 0xFE95: ch = 0xCA; break;
case 0xFE96: ch = 0xCA; break;
case 0xFE97: ch = 0xCA; break;
case 0xFE98: ch = 0xCA; break;
case 0xFE99: ch = 0xCB; break;
case 0xFE9A: ch = 0xCB; break;
case 0xFE9B: ch = 0xCB; break;
case 0xFE9C: ch = 0xCB; break;
case 0xFE9D: ch = 0xCC; break;
case 0xFE9E: ch = 0xCC; break;
case 0xFE9F: ch = 0xCC; break;
case 0xFEA0: ch = 0xCC; break;
case 0xFEA1: ch = 0xCD; break;
case 0xFEA2: ch = 0xCD; break;
case 0xFEA3: ch = 0xCD; break;
case 0xFEA4: ch = 0xCD; break;
case 0xFEA5: ch = 0xCE; break;
case 0xFEA6: ch = 0xCE; break;
case 0xFEA7: ch = 0xCE; break;
case 0xFEA8: ch = 0xCE; break;
case 0xFEA9: ch = 0xCF; break;
case 0xFEAA: ch = 0xCF; break;
case 0xFEAB: ch = 0xD0; break;
case 0xFEAC: ch = 0xD0; break;
case 0xFEAD: ch = 0xD1; break;
case 0xFEAE: ch = 0xD1; break;
case 0xFEAF: ch = 0xD2; break;
case 0xFEB0: ch = 0xD2; break;
case 0xFEB1: ch = 0xD3; break;
case 0xFEB2: ch = 0xD3; break;
case 0xFEB3: ch = 0xD3; break;
case 0xFEB4: ch = 0xD3; break;
case 0xFEB5: ch = 0xD4; break;
case 0xFEB6: ch = 0xD4; break;
case 0xFEB7: ch = 0xD4; break;
case 0xFEB8: ch = 0xD4; break;
case 0xFEB9: ch = 0xD5; break;
case 0xFEBA: ch = 0xD5; break;
case 0xFEBB: ch = 0xD5; break;
case 0xFEBC: ch = 0xD5; break;
case 0xFEBD: ch = 0xD6; break;
case 0xFEBE: ch = 0xD6; break;
case 0xFEBF: ch = 0xD6; break;
case 0xFEC0: ch = 0xD6; break;
case 0xFEC1: ch = 0xD7; break;
case 0xFEC2: ch = 0xD7; break;
case 0xFEC3: ch = 0xD7; break;
case 0xFEC4: ch = 0xD7; break;
case 0xFEC5: ch = 0xD8; break;
case 0xFEC6: ch = 0xD8; break;
case 0xFEC7: ch = 0xD8; break;
case 0xFEC8: ch = 0xD8; break;
case 0xFEC9: ch = 0xD9; break;
case 0xFECA: ch = 0xD9; break;
case 0xFECB: ch = 0xD9; break;
case 0xFECC: ch = 0xD9; break;
case 0xFECD: ch = 0xDA; break;
case 0xFECE: ch = 0xDA; break;
case 0xFECF: ch = 0xDA; break;
case 0xFED0: ch = 0xDA; break;
case 0xFED1: ch = 0xE1; break;
case 0xFED2: ch = 0xE1; break;
case 0xFED3: ch = 0xE1; break;
case 0xFED4: ch = 0xE1; break;
case 0xFED5: ch = 0xE2; break;
case 0xFED6: ch = 0xE2; break;
case 0xFED7: ch = 0xE2; break;
case 0xFED8: ch = 0xE2; break;
case 0xFED9: ch = 0xE3; break;
case 0xFEDA: ch = 0xE3; break;
case 0xFEDB: ch = 0xE3; break;
case 0xFEDC: ch = 0xE3; break;
case 0xFEDD: ch = 0xE4; break;
case 0xFEDE: ch = 0xE4; break;
case 0xFEDF: ch = 0xE4; break;
case 0xFEE0: ch = 0xE4; break;
case 0xFEE1: ch = 0xE5; break;
case 0xFEE2: ch = 0xE5; break;
case 0xFEE3: ch = 0xE5; break;
case 0xFEE4: ch = 0xE5; break;
case 0xFEE5: ch = 0xE6; break;
case 0xFEE6: ch = 0xE6; break;
case 0xFEE7: ch = 0xE6; break;
case 0xFEE8: ch = 0xE6; break;
case 0xFEE9: ch = 0xE7; break;
case 0xFEEA: ch = 0xE7; break;
case 0xFEEB: ch = 0xE7; break;
case 0xFEEC: ch = 0xE7; break;
case 0xFEED: ch = 0xE8; break;
case 0xFEEE: ch = 0xE8; break;
case 0xFEEF: ch = 0xE9; break;
case 0xFEF0: ch = 0xE9; break;
case 0xFEF1: ch = 0xEA; break;
case 0xFEF2: ch = 0xEA; break;
case 0xFEF3: ch = 0xEA; break;
case 0xFEF4: ch = 0xEA; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP28596
public class ENCiso_8859_6 : CP28596
{
public ENCiso_8859_6() : base() {}
}; // class ENCiso_8859_6
}; // namespace I18N.MidEast
+261
View File
@@ -0,0 +1,261 @@
/*
* CP28598.cs - Hebrew (ISO) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-916.ucm".
namespace I18N.MidEast
{
using System;
using I18N.Common;
public class CP28598 : ByteEncoding
{
public CP28598()
: base(28598, ToChars, "Hebrew (ISO)",
"iso-8859-8", "iso-8859-8", "iso-8859-8",
true, true, true, true, 1255)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u0085', '\u0086', '\u0087', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u008D', '\u008E', '\u008F',
'\u0090', '\u0091', '\u0092', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0097', '\u0098', '\u0099', '\u009A', '\u009B',
'\u009C', '\u009D', '\u009E', '\u009F', '\u00A0', '\u003F',
'\u00A2', '\u00A3', '\u00A4', '\u00A5', '\u00A6', '\u00A7',
'\u00A8', '\u00A9', '\u00D7', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u203E', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u2022', '\u00B8', '\u00B9',
'\u00F7', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u2017', '\u05D0', '\u05D1', '\u05D2', '\u05D3',
'\u05D4', '\u05D5', '\u05D6', '\u05D7', '\u05D8', '\u05D9',
'\u05DA', '\u05DB', '\u05DC', '\u05DD', '\u05DE', '\u05DF',
'\u05E0', '\u05E1', '\u05E2', '\u05E3', '\u05E4', '\u05E5',
'\u05E6', '\u05E7', '\u05E8', '\u05E9', '\u05EA', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
break;
case 0x00D7: ch = 0xAA; break;
case 0x00F7: ch = 0xBA; break;
case 0x05D0:
case 0x05D1:
case 0x05D2:
case 0x05D3:
case 0x05D4:
case 0x05D5:
case 0x05D6:
case 0x05D7:
case 0x05D8:
case 0x05D9:
case 0x05DA:
case 0x05DB:
case 0x05DC:
case 0x05DD:
case 0x05DE:
case 0x05DF:
case 0x05E0:
case 0x05E1:
case 0x05E2:
case 0x05E3:
case 0x05E4:
case 0x05E5:
case 0x05E6:
case 0x05E7:
case 0x05E8:
case 0x05E9:
case 0x05EA:
ch -= 0x04F0;
break;
case 0x2017: ch = 0xDF; break;
case 0x2022: ch = 0xB7; break;
case 0x203E: ch = 0xAF; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
break;
case 0x00D7: ch = 0xAA; break;
case 0x00F7: ch = 0xBA; break;
case 0x05D0:
case 0x05D1:
case 0x05D2:
case 0x05D3:
case 0x05D4:
case 0x05D5:
case 0x05D6:
case 0x05D7:
case 0x05D8:
case 0x05D9:
case 0x05DA:
case 0x05DB:
case 0x05DC:
case 0x05DD:
case 0x05DE:
case 0x05DF:
case 0x05E0:
case 0x05E1:
case 0x05E2:
case 0x05E3:
case 0x05E4:
case 0x05E5:
case 0x05E6:
case 0x05E7:
case 0x05E8:
case 0x05E9:
case 0x05EA:
ch -= 0x04F0;
break;
case 0x2017: ch = 0xDF; break;
case 0x2022: ch = 0xB7; break;
case 0x203E: ch = 0xAF; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP28598
public class ENCiso_8859_8 : CP28598
{
public ENCiso_8859_8() : base() {}
}; // class ENCiso_8859_8
}; // namespace I18N.MidEast
+241
View File
@@ -0,0 +1,241 @@
/*
* CP28599.cs - Latin 5 (ISO) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-920.ucm".
namespace I18N.MidEast
{
using System;
using I18N.Common;
public class CP28599 : ByteEncoding
{
public CP28599()
: base(28599, ToChars, "Latin 5 (ISO)",
"iso-8859-9", "iso-8859-9", "iso-8859-9",
true, true, true, true, 1254)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u0085', '\u0086', '\u0087', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u008D', '\u008E', '\u008F',
'\u0090', '\u0091', '\u0092', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0097', '\u0098', '\u0099', '\u009A', '\u009B',
'\u009C', '\u009D', '\u009E', '\u009F', '\u00A0', '\u00A1',
'\u00A2', '\u00A3', '\u00A4', '\u00A5', '\u00A6', '\u00A7',
'\u00A8', '\u00A9', '\u00AA', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u00AF', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u00B7', '\u00B8', '\u00B9',
'\u00BA', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u00BF',
'\u00C0', '\u00C1', '\u00C2', '\u00C3', '\u00C4', '\u00C5',
'\u00C6', '\u00C7', '\u00C8', '\u00C9', '\u00CA', '\u00CB',
'\u00CC', '\u00CD', '\u00CE', '\u00CF', '\u011E', '\u00D1',
'\u00D2', '\u00D3', '\u00D4', '\u00D5', '\u00D6', '\u00D7',
'\u00D8', '\u00D9', '\u00DA', '\u00DB', '\u00DC', '\u0130',
'\u015E', '\u00DF', '\u00E0', '\u00E1', '\u00E2', '\u00E3',
'\u00E4', '\u00E5', '\u00E6', '\u00E7', '\u00E8', '\u00E9',
'\u00EA', '\u00EB', '\u00EC', '\u00ED', '\u00EE', '\u00EF',
'\u011F', '\u00F1', '\u00F2', '\u00F3', '\u00F4', '\u00F5',
'\u00F6', '\u00F7', '\u00F8', '\u00F9', '\u00FA', '\u00FB',
'\u00FC', '\u0131', '\u015F', '\u00FF',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 208) switch(ch)
{
case 0x00D1:
case 0x00D2:
case 0x00D3:
case 0x00D4:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00D9:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E0:
case 0x00E1:
case 0x00E2:
case 0x00E3:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00EC:
case 0x00ED:
case 0x00EE:
case 0x00EF:
case 0x00F1:
case 0x00F2:
case 0x00F3:
case 0x00F4:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00F9:
case 0x00FA:
case 0x00FB:
case 0x00FC:
case 0x00FF:
break;
case 0x011E: ch = 0xD0; break;
case 0x011F: ch = 0xF0; break;
case 0x0130: ch = 0xDD; break;
case 0x0131: ch = 0xFD; break;
case 0x015E: ch = 0xDE; break;
case 0x015F: ch = 0xFE; break;
case 0x203E: ch = 0xAF; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 208) switch(ch)
{
case 0x00D1:
case 0x00D2:
case 0x00D3:
case 0x00D4:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00D9:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E0:
case 0x00E1:
case 0x00E2:
case 0x00E3:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00EC:
case 0x00ED:
case 0x00EE:
case 0x00EF:
case 0x00F1:
case 0x00F2:
case 0x00F3:
case 0x00F4:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00F9:
case 0x00FA:
case 0x00FB:
case 0x00FC:
case 0x00FF:
break;
case 0x011E: ch = 0xD0; break;
case 0x011F: ch = 0xF0; break;
case 0x0130: ch = 0xDD; break;
case 0x0131: ch = 0xFD; break;
case 0x015E: ch = 0xDE; break;
case 0x015F: ch = 0xFE; break;
case 0x203E: ch = 0xAF; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP28599
public class ENCiso_8859_9 : CP28599
{
public ENCiso_8859_9() : base() {}
}; // class ENCiso_8859_9
}; // namespace I18N.MidEast
+261
View File
@@ -0,0 +1,261 @@
/*
* CP38598.cs - Hebrew (ISO Alternative) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-916.ucm".
namespace I18N.MidEast
{
using System;
using I18N.Common;
public class CP38598 : ByteEncoding
{
public CP38598()
: base(38598, ToChars, "Hebrew (ISO Alternative)",
"iso-8859-8", "windows-38598", "windows-38598",
true, true, true, true, 1255)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u0085', '\u0086', '\u0087', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u008D', '\u008E', '\u008F',
'\u0090', '\u0091', '\u0092', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0097', '\u0098', '\u0099', '\u009A', '\u009B',
'\u009C', '\u009D', '\u009E', '\u009F', '\u00A0', '\u003F',
'\u00A2', '\u00A3', '\u00A4', '\u00A5', '\u00A6', '\u00A7',
'\u00A8', '\u00A9', '\u00D7', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u203E', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u2022', '\u00B8', '\u00B9',
'\u00F7', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u2017', '\u05D0', '\u05D1', '\u05D2', '\u05D3',
'\u05D4', '\u05D5', '\u05D6', '\u05D7', '\u05D8', '\u05D9',
'\u05DA', '\u05DB', '\u05DC', '\u05DD', '\u05DE', '\u05DF',
'\u05E0', '\u05E1', '\u05E2', '\u05E3', '\u05E4', '\u05E5',
'\u05E6', '\u05E7', '\u05E8', '\u05E9', '\u05EA', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
break;
case 0x00D7: ch = 0xAA; break;
case 0x00F7: ch = 0xBA; break;
case 0x05D0:
case 0x05D1:
case 0x05D2:
case 0x05D3:
case 0x05D4:
case 0x05D5:
case 0x05D6:
case 0x05D7:
case 0x05D8:
case 0x05D9:
case 0x05DA:
case 0x05DB:
case 0x05DC:
case 0x05DD:
case 0x05DE:
case 0x05DF:
case 0x05E0:
case 0x05E1:
case 0x05E2:
case 0x05E3:
case 0x05E4:
case 0x05E5:
case 0x05E6:
case 0x05E7:
case 0x05E8:
case 0x05E9:
case 0x05EA:
ch -= 0x04F0;
break;
case 0x2017: ch = 0xDF; break;
case 0x2022: ch = 0xB7; break;
case 0x203E: ch = 0xAF; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B8:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
break;
case 0x00D7: ch = 0xAA; break;
case 0x00F7: ch = 0xBA; break;
case 0x05D0:
case 0x05D1:
case 0x05D2:
case 0x05D3:
case 0x05D4:
case 0x05D5:
case 0x05D6:
case 0x05D7:
case 0x05D8:
case 0x05D9:
case 0x05DA:
case 0x05DB:
case 0x05DC:
case 0x05DD:
case 0x05DE:
case 0x05DF:
case 0x05E0:
case 0x05E1:
case 0x05E2:
case 0x05E3:
case 0x05E4:
case 0x05E5:
case 0x05E6:
case 0x05E7:
case 0x05E8:
case 0x05E9:
case 0x05EA:
ch -= 0x04F0;
break;
case 0x2017: ch = 0xDF; break;
case 0x2022: ch = 0xB7; break;
case 0x203E: ch = 0xAF; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP38598
public class ENCwindows_38598 : CP38598
{
public ENCwindows_38598() : base() {}
}; // class ENCwindows_38598
}; // namespace I18N.MidEast
+477
View File
@@ -0,0 +1,477 @@
# *******************************************************************************
# *
# * Copyright (C) 1995-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Fri Nov 10 13:07:47 2000
#
# File created by dtcocm version 3.00
# from source files 34B00441.RPMAP100 and 044134B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-1089"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-1089
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0080> \x80 |0
<U0081> \x81 |0
<U0082> \x82 |0
<U0083> \x83 |0
<U0084> \x84 |0
<U0085> \x85 |0
<U0086> \x86 |0
<U0087> \x87 |0
<U0088> \x88 |0
<U0089> \x89 |0
<U008A> \x8A |0
<U008B> \x8B |0
<U008C> \x8C |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U0091> \x91 |0
<U0092> \x92 |0
<U0093> \x93 |0
<U0094> \x94 |0
<U0095> \x95 |0
<U0096> \x96 |0
<U0097> \x97 |0
<U0098> \x98 |0
<U0099> \x99 |0
<U009A> \x9A |0
<U009B> \x9B |0
<U009C> \x9C |0
<U009D> \x9D |0
<U009E> \x9E |0
<U009F> \x9F |0
<U00A0> \xA0 |0
<U00A4> \xA4 |0
<U00AD> \xAD |0
<U060C> \xAC |0
<U061B> \xBB |0
<U061F> \xBF |0
<U0621> \xC1 |0
<U0622> \xC2 |0
<U0623> \xC3 |0
<U0624> \xC4 |0
<U0625> \xC5 |0
<U0626> \xC6 |0
<U0627> \xC7 |0
<U0628> \xC8 |0
<U0629> \xC9 |0
<U062A> \xCA |0
<U062B> \xCB |0
<U062C> \xCC |0
<U062D> \xCD |0
<U062E> \xCE |0
<U062F> \xCF |0
<U0630> \xD0 |0
<U0631> \xD1 |0
<U0632> \xD2 |0
<U0633> \xD3 |0
<U0634> \xD4 |0
<U0635> \xD5 |0
<U0636> \xD6 |0
<U0637> \xD7 |0
<U0638> \xD8 |0
<U0639> \xD9 |0
<U063A> \xDA |0
<U0640> \xE0 |0
<U0641> \xE1 |0
<U0642> \xE2 |0
<U0643> \xE3 |0
<U0644> \xE4 |0
<U0645> \xE5 |0
<U0646> \xE6 |0
<U0647> \xE7 |0
<U0648> \xE8 |0
<U0649> \xE9 |0
<U064A> \xEA |0
<U064B> \xEB |0
<U064C> \xEC |0
<U064D> \xED |0
<U064E> \xEE |0
<U064F> \xEF |0
<U0650> \xF0 |0
<U0651> \xF1 |0
<U0652> \xF2 |0
<U0660> \x30 |1
<U0661> \x31 |1
<U0662> \x32 |1
<U0663> \x33 |1
<U0664> \x34 |1
<U0665> \x35 |1
<U0666> \x36 |1
<U0667> \x37 |1
<U0668> \x38 |1
<U0669> \x39 |1
<U066A> \x25 |1
<U066B> \x2C |1
<U066C> \x2E |1
<U066D> \x2A |1
<UFE70> \xEB |1
<UFE71> \xEB |1
<UFE72> \xEC |1
<UFE74> \xED |1
<UFE76> \xEE |1
<UFE77> \xEE |1
<UFE78> \xEF |1
<UFE79> \xEF |1
<UFE7A> \xF0 |1
<UFE7B> \xF0 |1
<UFE7C> \xF1 |1
<UFE7D> \xF1 |1
<UFE7E> \xF2 |1
<UFE7F> \xF2 |1
<UFE80> \xC1 |1
<UFE81> \xC2 |1
<UFE82> \xC2 |1
<UFE83> \xC3 |1
<UFE84> \xC3 |1
<UFE85> \xC4 |1
<UFE86> \xC4 |1
<UFE87> \xC5 |1
<UFE88> \xC5 |1
<UFE89> \xC6 |1
<UFE8A> \xC6 |1
<UFE8B> \xC6 |1
<UFE8C> \xC6 |1
<UFE8D> \xC7 |1
<UFE8E> \xC7 |1
<UFE8F> \xC8 |1
<UFE90> \xC8 |1
<UFE91> \xC8 |1
<UFE92> \xC8 |1
<UFE93> \xC9 |1
<UFE94> \xC9 |1
<UFE95> \xCA |1
<UFE96> \xCA |1
<UFE97> \xCA |1
<UFE98> \xCA |1
<UFE99> \xCB |1
<UFE9A> \xCB |1
<UFE9B> \xCB |1
<UFE9C> \xCB |1
<UFE9D> \xCC |1
<UFE9E> \xCC |1
<UFE9F> \xCC |1
<UFEA0> \xCC |1
<UFEA1> \xCD |1
<UFEA2> \xCD |1
<UFEA3> \xCD |1
<UFEA4> \xCD |1
<UFEA5> \xCE |1
<UFEA6> \xCE |1
<UFEA7> \xCE |1
<UFEA8> \xCE |1
<UFEA9> \xCF |1
<UFEAA> \xCF |1
<UFEAB> \xD0 |1
<UFEAC> \xD0 |1
<UFEAD> \xD1 |1
<UFEAE> \xD1 |1
<UFEAF> \xD2 |1
<UFEB0> \xD2 |1
<UFEB1> \xD3 |1
<UFEB2> \xD3 |1
<UFEB3> \xD3 |1
<UFEB4> \xD3 |1
<UFEB5> \xD4 |1
<UFEB6> \xD4 |1
<UFEB7> \xD4 |1
<UFEB8> \xD4 |1
<UFEB9> \xD5 |1
<UFEBA> \xD5 |1
<UFEBB> \xD5 |1
<UFEBC> \xD5 |1
<UFEBD> \xD6 |1
<UFEBE> \xD6 |1
<UFEBF> \xD6 |1
<UFEC0> \xD6 |1
<UFEC1> \xD7 |1
<UFEC2> \xD7 |1
<UFEC3> \xD7 |1
<UFEC4> \xD7 |1
<UFEC5> \xD8 |1
<UFEC6> \xD8 |1
<UFEC7> \xD8 |1
<UFEC8> \xD8 |1
<UFEC9> \xD9 |1
<UFECA> \xD9 |1
<UFECB> \xD9 |1
<UFECC> \xD9 |1
<UFECD> \xDA |1
<UFECE> \xDA |1
<UFECF> \xDA |1
<UFED0> \xDA |1
<UFED1> \xE1 |1
<UFED2> \xE1 |1
<UFED3> \xE1 |1
<UFED4> \xE1 |1
<UFED5> \xE2 |1
<UFED6> \xE2 |1
<UFED7> \xE2 |1
<UFED8> \xE2 |1
<UFED9> \xE3 |1
<UFEDA> \xE3 |1
<UFEDB> \xE3 |1
<UFEDC> \xE3 |1
<UFEDD> \xE4 |1
<UFEDE> \xE4 |1
<UFEDF> \xE4 |1
<UFEE0> \xE4 |1
<UFEE1> \xE5 |1
<UFEE2> \xE5 |1
<UFEE3> \xE5 |1
<UFEE4> \xE5 |1
<UFEE5> \xE6 |1
<UFEE6> \xE6 |1
<UFEE7> \xE6 |1
<UFEE8> \xE6 |1
<UFEE9> \xE7 |1
<UFEEA> \xE7 |1
<UFEEB> \xE7 |1
<UFEEC> \xE7 |1
<UFEED> \xE8 |1
<UFEEE> \xE8 |1
<UFEEF> \xE9 |1
<UFEF0> \xE9 |1
<UFEF1> \xEA |1
<UFEF2> \xEA |1
<UFEF3> \xEA |1
<UFEF4> \xEA |1
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+377
View File
@@ -0,0 +1,377 @@
# *******************************************************************************
# *
# * Copyright (C) 1998-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 08:50:45 2000
#
# File created by dtcocm version 3.00
# from source files 44B014E6.RPMAP100 and 14E644B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-5350"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-5350
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0081> \x81 |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U009D> \x9D |0
<U009E> \x9E |0
<U00A0> \xA0 |0
<U00A1> \xA1 |0
<U00A2> \xA2 |0
<U00A3> \xA3 |0
<U00A4> \xA4 |0
<U00A5> \xA5 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A8> \xA8 |0
<U00A9> \xA9 |0
<U00AA> \xAA |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00AF> \xAF |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B2> \xB2 |0
<U00B3> \xB3 |0
<U00B4> \xB4 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B7> \xB7 |0
<U00B8> \xB8 |0
<U00B9> \xB9 |0
<U00BA> \xBA |0
<U00BB> \xBB |0
<U00BC> \xBC |0
<U00BD> \xBD |0
<U00BE> \xBE |0
<U00BF> \xBF |0
<U00C0> \xC0 |0
<U00C1> \xC1 |0
<U00C2> \xC2 |0
<U00C3> \xC3 |0
<U00C4> \xC4 |0
<U00C5> \xC5 |0
<U00C6> \xC6 |0
<U00C7> \xC7 |0
<U00C8> \xC8 |0
<U00C9> \xC9 |0
<U00CA> \xCA |0
<U00CB> \xCB |0
<U00CC> \xCC |0
<U00CD> \xCD |0
<U00CE> \xCE |0
<U00CF> \xCF |0
<U00D1> \xD1 |0
<U00D2> \xD2 |0
<U00D3> \xD3 |0
<U00D4> \xD4 |0
<U00D5> \xD5 |0
<U00D6> \xD6 |0
<U00D7> \xD7 |0
<U00D8> \xD8 |0
<U00D9> \xD9 |0
<U00DA> \xDA |0
<U00DB> \xDB |0
<U00DC> \xDC |0
<U00DF> \xDF |0
<U00E0> \xE0 |0
<U00E1> \xE1 |0
<U00E2> \xE2 |0
<U00E3> \xE3 |0
<U00E4> \xE4 |0
<U00E5> \xE5 |0
<U00E6> \xE6 |0
<U00E7> \xE7 |0
<U00E8> \xE8 |0
<U00E9> \xE9 |0
<U00EA> \xEA |0
<U00EB> \xEB |0
<U00EC> \xEC |0
<U00ED> \xED |0
<U00EE> \xEE |0
<U00EF> \xEF |0
<U00F1> \xF1 |0
<U00F2> \xF2 |0
<U00F3> \xF3 |0
<U00F4> \xF4 |0
<U00F5> \xF5 |0
<U00F6> \xF6 |0
<U00F7> \xF7 |0
<U00F8> \xF8 |0
<U00F9> \xF9 |0
<U00FA> \xFA |0
<U00FB> \xFB |0
<U00FC> \xFC |0
<U00FF> \xFF |0
<U011E> \xD0 |0
<U011F> \xF0 |0
<U0130> \xDD |0
<U0131> \xFD |0
<U0152> \x8C |0
<U0153> \x9C |0
<U015E> \xDE |0
<U015F> \xFE |0
<U0160> \x8A |0
<U0161> \x9A |0
<U0178> \x9F |0
<U0192> \x83 |0
<U02C6> \x88 |0
<U02DC> \x98 |0
<U2013> \x96 |0
<U2014> \x97 |0
<U2018> \x91 |0
<U2019> \x92 |0
<U201A> \x82 |0
<U201C> \x93 |0
<U201D> \x94 |0
<U201E> \x84 |0
<U2020> \x86 |0
<U2021> \x87 |0
<U2022> \x95 |0
<U2026> \x85 |0
<U2030> \x89 |0
<U2039> \x8B |0
<U203A> \x9B |0
<U20AC> \x80 |0
<U2122> \x99 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+368
View File
@@ -0,0 +1,368 @@
# *******************************************************************************
# *
# * Copyright (C) 1998-2001, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 08:50:45 2000
#
# File created by dtcocm version 3.00
# from source files 44B014E7.RPMAP100 and 14E744B0.TPMAP100
#
# Patched for jitterbug 792
#
# Table Version : 1.01
#
<code_set_name> "IBM-5351"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-5351
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0081> \x81 |0
<U008A> \x8A |0
<U008C> \x8C |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U009A> \x9A |0
<U009C> \x9C |0
<U009D> \x9D |0
<U009E> \x9E |0
<U009F> \x9F |0
<U00A0> \xA0 |0
<U00A1> \xA1 |0
<U00A2> \xA2 |0
<U00A3> \xA3 |0
<U00A5> \xA5 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A8> \xA8 |0
<U00A9> \xA9 |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00AF> \xAF |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B2> \xB2 |0
<U00B3> \xB3 |0
<U00B4> \xB4 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B7> \xB7 |0
<U00B8> \xB8 |0
<U00B9> \xB9 |0
<U00BB> \xBB |0
<U00BC> \xBC |0
<U00BD> \xBD |0
<U00BE> \xBE |0
<U00BF> \xBF |0
<U00D7> \xAA |0
<U00F7> \xBA |0
<U0192> \x83 |0
<U02C6> \x88 |0
<U02DC> \x98 |0
<U05B0> \xC0 |0
<U05B1> \xC1 |0
<U05B2> \xC2 |0
<U05B3> \xC3 |0
<U05B4> \xC4 |0
<U05B5> \xC5 |0
<U05B6> \xC6 |0
<U05B7> \xC7 |0
<U05B8> \xC8 |0
<U05B9> \xC9 |0
<U05BB> \xCB |0
<U05BC> \xCC |0
<U05BD> \xCD |0
<U05BE> \xCE |0
<U05BF> \xCF |0
<U05C0> \xD0 |0
<U05C1> \xD1 |0
<U05C2> \xD2 |0
<U05C3> \xD3 |0
<U05D0> \xE0 |0
<U05D1> \xE1 |0
<U05D2> \xE2 |0
<U05D3> \xE3 |0
<U05D4> \xE4 |0
<U05D5> \xE5 |0
<U05D6> \xE6 |0
<U05D7> \xE7 |0
<U05D8> \xE8 |0
<U05D9> \xE9 |0
<U05DA> \xEA |0
<U05DB> \xEB |0
<U05DC> \xEC |0
<U05DD> \xED |0
<U05DE> \xEE |0
<U05DF> \xEF |0
<U05E0> \xF0 |0
<U05E1> \xF1 |0
<U05E2> \xF2 |0
<U05E3> \xF3 |0
<U05E4> \xF4 |0
<U05E5> \xF5 |0
<U05E6> \xF6 |0
<U05E7> \xF7 |0
<U05E8> \xF8 |0
<U05E9> \xF9 |0
<U05EA> \xFA |0
<U05F0> \xD4 |0
<U05F1> \xD5 |0
<U05F2> \xD6 |0
<U05F3> \xD7 |0
<U05F4> \xD8 |0
<U200E> \xFD |0
<U200F> \xFE |0
<U2013> \x96 |0
<U2014> \x97 |0
<U2018> \x91 |0
<U2019> \x92 |0
<U201A> \x82 |0
<U201C> \x93 |0
<U201D> \x94 |0
<U201E> \x84 |0
<U2020> \x86 |0
<U2021> \x87 |0
<U2022> \x95 |0
<U2026> \x85 |0
<U2030> \x89 |0
<U2039> \x8B |0
<U203A> \x9B |0
<U20AA> \xA4 |0
<U20AC> \x80 |0
<U2122> \x99 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+551
View File
@@ -0,0 +1,551 @@
# *******************************************************************************
# *
# * Copyright (C) 1998-2001, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 08:50:45 2000
#
# File created by dtcocm version 3.00
# from source files 44B014E8.RPMAP100 and 14E844B0.TPMAP100
#
# Patched for jitterbug 792
#
# Table Version : 1.01
#
<code_set_name> "IBM-5352"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-5352
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U00A0> \xA0 |0
<U00A2> \xA2 |0
<U00A3> \xA3 |0
<U00A4> \xA4 |0
<U00A5> \xA5 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A8> \xA8 |0
<U00A9> \xA9 |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00AF> \xAF |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B2> \xB2 |0
<U00B3> \xB3 |0
<U00B4> \xB4 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B7> \xB7 |0
<U00B8> \xB8 |0
<U00B9> \xB9 |0
<U00BB> \xBB |0
<U00BC> \xBC |0
<U00BD> \xBD |0
<U00BE> \xBE |0
<U00D7> \xD7 |0
<U00E0> \xE0 |0
<U00E2> \xE2 |0
<U00E7> \xE7 |0
<U00E8> \xE8 |0
<U00E9> \xE9 |0
<U00EA> \xEA |0
<U00EB> \xEB |0
<U00EE> \xEE |0
<U00EF> \xEF |0
<U00F4> \xF4 |0
<U00F7> \xF7 |0
<U00F9> \xF9 |0
<U00FB> \xFB |0
<U00FC> \xFC |0
<U0152> \x8C |0
<U0153> \x9C |0
<U0192> \x83 |0
<U02C6> \x88 |0
<U060C> \xA1 |0
<U061B> \xBA |0
<U061F> \xBF |0
<U0621> \xC1 |0
<U0622> \xC2 |0
<U0623> \xC3 |0
<U0624> \xC4 |0
<U0625> \xC5 |0
<U0626> \xC6 |0
<U0627> \xC7 |0
<U0628> \xC8 |0
<U0629> \xC9 |0
<U062A> \xCA |0
<U062B> \xCB |0
<U062C> \xCC |0
<U062D> \xCD |0
<U062E> \xCE |0
<U062F> \xCF |0
<U0630> \xD0 |0
<U0631> \xD1 |0
<U0632> \xD2 |0
<U0633> \xD3 |0
<U0634> \xD4 |0
<U0635> \xD5 |0
<U0636> \xD6 |0
<U0637> \xD8 |0
<U0638> \xD9 |0
<U0639> \xDA |0
<U063A> \xDB |0
<U0640> \xDC |0
<U0641> \xDD |0
<U0642> \xDE |0
<U0643> \xDF |0
<U0644> \xE1 |0
<U0645> \xE3 |0
<U0646> \xE4 |0
<U0647> \xE5 |0
<U0648> \xE6 |0
<U0649> \xEC |0
<U064A> \xED |0
<U064B> \xF0 |0
<U064C> \xF1 |0
<U064D> \xF2 |0
<U064E> \xF3 |0
<U064F> \xF5 |0
<U0650> \xF6 |0
<U0651> \xF8 |0
<U0652> \xFA |0
<U0660> \x30 |1
<U0661> \x31 |1
<U0662> \x32 |1
<U0663> \x33 |1
<U0664> \x34 |1
<U0665> \x35 |1
<U0666> \x36 |1
<U0667> \x37 |1
<U0668> \x38 |1
<U0669> \x39 |1
<U066B> \x2C |1
<U066C> \x2E |1
<U0679> \x8A |0
<U067E> \x81 |0
<U0686> \x8D |0
<U0688> \x8F |0
<U0691> \x9A |0
<U0698> \x8E |0
<U06A9> \x98 |0
<U06AF> \x90 |0
<U06BA> \x9F |0
<U06BE> \xAA |0
<U06C1> \xC0 |0
<U06D2> \xFF |0
<U06F0> \x30 |1
<U06F1> \x31 |1
<U06F2> \x32 |1
<U06F3> \x33 |1
<U06F4> \x34 |1
<U06F5> \x35 |1
<U06F6> \x36 |1
<U06F7> \x37 |1
<U06F8> \x38 |1
<U06F9> \x39 |1
<U200C> \x9D |0
<U200D> \x9E |0
<U200E> \xFD |0
<U200F> \xFE |0
<U2013> \x96 |0
<U2014> \x97 |0
<U2018> \x91 |0
<U2019> \x92 |0
<U201A> \x82 |0
<U201C> \x93 |0
<U201D> \x94 |0
<U201E> \x84 |0
<U2020> \x86 |0
<U2021> \x87 |0
<U2022> \x95 |0
<U2026> \x85 |0
<U2030> \x89 |0
<U2039> \x8B |0
<U203A> \x9B |0
<U20AC> \x80 |0
<U2122> \x99 |0
<UFB56> \x81 |1
<UFB58> \x81 |1
<UFB66> \x8A |1
<UFB68> \x8A |1
<UFB7A> \x8D |1
<UFB7C> \x8D |1
<UFB88> \x8F |1
<UFB8A> \x8E |1
<UFB8C> \x9A |1
<UFB8E> \x98 |1
<UFB90> \x98 |1
<UFB92> \x90 |1
<UFB94> \x90 |1
<UFB9E> \x9F |1
<UFBA6> \xC0 |1
<UFBA8> \xC0 |1
<UFBAA> \xAA |1
<UFBAC> \xAA |1
<UFBAE> \xFF |1
<UFE70> \xF0 |1
<UFE71> \xF0 |1
<UFE72> \xF1 |1
<UFE74> \xF2 |1
<UFE76> \xF3 |1
<UFE77> \xF3 |1
<UFE78> \xF5 |1
<UFE79> \xF5 |1
<UFE7A> \xF6 |1
<UFE7B> \xF6 |1
<UFE7C> \xF8 |1
<UFE7D> \xF8 |1
<UFE7E> \xFA |1
<UFE7F> \xFA |1
<UFE80> \xC1 |1
<UFE81> \xC2 |1
<UFE82> \xC2 |1
<UFE83> \xC3 |1
<UFE84> \xC3 |1
<UFE85> \xC4 |1
<UFE86> \xC4 |1
<UFE87> \xC5 |1
<UFE88> \xC5 |1
<UFE89> \xC6 |1
<UFE8A> \xC6 |1
<UFE8B> \xC6 |1
<UFE8C> \xC6 |1
<UFE8D> \xC7 |1
<UFE8E> \xC7 |1
<UFE8F> \xC8 |1
<UFE90> \xC8 |1
<UFE91> \xC8 |1
<UFE92> \xC8 |1
<UFE93> \xC9 |1
<UFE94> \xC9 |1
<UFE95> \xCA |1
<UFE96> \xCA |1
<UFE97> \xCA |1
<UFE98> \xCA |1
<UFE99> \xCB |1
<UFE9A> \xCB |1
<UFE9B> \xCB |1
<UFE9C> \xCB |1
<UFE9D> \xCC |1
<UFE9E> \xCC |1
<UFE9F> \xCC |1
<UFEA0> \xCC |1
<UFEA1> \xCD |1
<UFEA2> \xCD |1
<UFEA3> \xCD |1
<UFEA4> \xCD |1
<UFEA5> \xCE |1
<UFEA6> \xCE |1
<UFEA7> \xCE |1
<UFEA8> \xCE |1
<UFEA9> \xCF |1
<UFEAA> \xCF |1
<UFEAB> \xD0 |1
<UFEAC> \xD0 |1
<UFEAD> \xD1 |1
<UFEAE> \xD1 |1
<UFEAF> \xD2 |1
<UFEB0> \xD2 |1
<UFEB1> \xD3 |1
<UFEB2> \xD3 |1
<UFEB3> \xD3 |1
<UFEB4> \xD3 |1
<UFEB5> \xD4 |1
<UFEB6> \xD4 |1
<UFEB7> \xD4 |1
<UFEB8> \xD4 |1
<UFEB9> \xD5 |1
<UFEBA> \xD5 |1
<UFEBB> \xD5 |1
<UFEBC> \xD5 |1
<UFEBD> \xD6 |1
<UFEBE> \xD6 |1
<UFEBF> \xD6 |1
<UFEC0> \xD6 |1
<UFEC1> \xD8 |1
<UFEC2> \xD8 |1
<UFEC3> \xD8 |1
<UFEC4> \xD8 |1
<UFEC5> \xD9 |1
<UFEC6> \xD9 |1
<UFEC7> \xD9 |1
<UFEC8> \xD9 |1
<UFEC9> \xDA |1
<UFECA> \xDA |1
<UFECB> \xDA |1
<UFECC> \xDA |1
<UFECD> \xDB |1
<UFECE> \xDB |1
<UFECF> \xDB |1
<UFED0> \xDB |1
<UFED1> \xDD |1
<UFED2> \xDD |1
<UFED3> \xDD |1
<UFED4> \xDD |1
<UFED5> \xDE |1
<UFED6> \xDE |1
<UFED7> \xDE |1
<UFED8> \xDE |1
<UFED9> \xDF |1
<UFEDA> \xDF |1
<UFEDB> \xDF |1
<UFEDC> \xDF |1
<UFEDD> \xE1 |1
<UFEDE> \xE1 |1
<UFEDF> \xE1 |1
<UFEE0> \xE1 |1
<UFEE1> \xE3 |1
<UFEE2> \xE3 |1
<UFEE3> \xE3 |1
<UFEE4> \xE3 |1
<UFEE5> \xE4 |1
<UFEE6> \xE4 |1
<UFEE7> \xE4 |1
<UFEE8> \xE4 |1
<UFEE9> \xE5 |1
<UFEEA> \xE5 |1
<UFEEB> \xE5 |1
<UFEEC> \xE5 |1
<UFEED> \xE6 |1
<UFEEE> \xE6 |1
<UFEEF> \xEC |1
<UFEF0> \xEC |1
<UFEF1> \xED |1
<UFEF2> \xED |1
<UFEF3> \xED |1
<UFEF4> \xED |1
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+339
View File
@@ -0,0 +1,339 @@
# *******************************************************************************
# *
# * Copyright (C) 1995-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 09:28:04 2000
#
# File created by dtcocm version 3.00
# from source files 34B00394.RPMAP100 and 039434B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-916"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-916
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0080> \x80 |0
<U0081> \x81 |0
<U0082> \x82 |0
<U0083> \x83 |0
<U0084> \x84 |0
<U0085> \x85 |0
<U0086> \x86 |0
<U0087> \x87 |0
<U0088> \x88 |0
<U0089> \x89 |0
<U008A> \x8A |0
<U008B> \x8B |0
<U008C> \x8C |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U0091> \x91 |0
<U0092> \x92 |0
<U0093> \x93 |0
<U0094> \x94 |0
<U0095> \x95 |0
<U0096> \x96 |0
<U0097> \x97 |0
<U0098> \x98 |0
<U0099> \x99 |0
<U009A> \x9A |0
<U009B> \x9B |0
<U009C> \x9C |0
<U009D> \x9D |0
<U009E> \x9E |0
<U009F> \x9F |0
<U00A0> \xA0 |0
<U00A2> \xA2 |0
<U00A3> \xA3 |0
<U00A4> \xA4 |0
<U00A5> \xA5 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A8> \xA8 |0
<U00A9> \xA9 |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B2> \xB2 |0
<U00B3> \xB3 |0
<U00B4> \xB4 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B8> \xB8 |0
<U00B9> \xB9 |0
<U00BB> \xBB |0
<U00BC> \xBC |0
<U00BD> \xBD |0
<U00BE> \xBE |0
<U00D7> \xAA |0
<U00F7> \xBA |0
<U05D0> \xE0 |0
<U05D1> \xE1 |0
<U05D2> \xE2 |0
<U05D3> \xE3 |0
<U05D4> \xE4 |0
<U05D5> \xE5 |0
<U05D6> \xE6 |0
<U05D7> \xE7 |0
<U05D8> \xE8 |0
<U05D9> \xE9 |0
<U05DA> \xEA |0
<U05DB> \xEB |0
<U05DC> \xEC |0
<U05DD> \xED |0
<U05DE> \xEE |0
<U05DF> \xEF |0
<U05E0> \xF0 |0
<U05E1> \xF1 |0
<U05E2> \xF2 |0
<U05E3> \xF3 |0
<U05E4> \xF4 |0
<U05E5> \xF5 |0
<U05E6> \xF6 |0
<U05E7> \xF7 |0
<U05E8> \xF8 |0
<U05E9> \xF9 |0
<U05EA> \xFA |0
<U2017> \xDF |0
<U2022> \xB7 |0
<U203E> \xAF |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+378
View File
@@ -0,0 +1,378 @@
# *******************************************************************************
# *
# * Copyright (C) 1995-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 09:28:04 2000
#
# File created by dtcocm version 3.00
# from source files 34B00398.RPMAP100 and 039834B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-920"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-920
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0080> \x80 |0
<U0081> \x81 |0
<U0082> \x82 |0
<U0083> \x83 |0
<U0084> \x84 |0
<U0085> \x85 |0
<U0086> \x86 |0
<U0087> \x87 |0
<U0088> \x88 |0
<U0089> \x89 |0
<U008A> \x8A |0
<U008B> \x8B |0
<U008C> \x8C |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U0091> \x91 |0
<U0092> \x92 |0
<U0093> \x93 |0
<U0094> \x94 |0
<U0095> \x95 |0
<U0096> \x96 |0
<U0097> \x97 |0
<U0098> \x98 |0
<U0099> \x99 |0
<U009A> \x9A |0
<U009B> \x9B |0
<U009C> \x9C |0
<U009D> \x9D |0
<U009E> \x9E |0
<U009F> \x9F |0
<U00A0> \xA0 |0
<U00A1> \xA1 |0
<U00A2> \xA2 |0
<U00A3> \xA3 |0
<U00A4> \xA4 |0
<U00A5> \xA5 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A8> \xA8 |0
<U00A9> \xA9 |0
<U00AA> \xAA |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00AF> \xAF |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B2> \xB2 |0
<U00B3> \xB3 |0
<U00B4> \xB4 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B7> \xB7 |0
<U00B8> \xB8 |0
<U00B9> \xB9 |0
<U00BA> \xBA |0
<U00BB> \xBB |0
<U00BC> \xBC |0
<U00BD> \xBD |0
<U00BE> \xBE |0
<U00BF> \xBF |0
<U00C0> \xC0 |0
<U00C1> \xC1 |0
<U00C2> \xC2 |0
<U00C3> \xC3 |0
<U00C4> \xC4 |0
<U00C5> \xC5 |0
<U00C6> \xC6 |0
<U00C7> \xC7 |0
<U00C8> \xC8 |0
<U00C9> \xC9 |0
<U00CA> \xCA |0
<U00CB> \xCB |0
<U00CC> \xCC |0
<U00CD> \xCD |0
<U00CE> \xCE |0
<U00CF> \xCF |0
<U00D1> \xD1 |0
<U00D2> \xD2 |0
<U00D3> \xD3 |0
<U00D4> \xD4 |0
<U00D5> \xD5 |0
<U00D6> \xD6 |0
<U00D7> \xD7 |0
<U00D8> \xD8 |0
<U00D9> \xD9 |0
<U00DA> \xDA |0
<U00DB> \xDB |0
<U00DC> \xDC |0
<U00DF> \xDF |0
<U00E0> \xE0 |0
<U00E1> \xE1 |0
<U00E2> \xE2 |0
<U00E3> \xE3 |0
<U00E4> \xE4 |0
<U00E5> \xE5 |0
<U00E6> \xE6 |0
<U00E7> \xE7 |0
<U00E8> \xE8 |0
<U00E9> \xE9 |0
<U00EA> \xEA |0
<U00EB> \xEB |0
<U00EC> \xEC |0
<U00ED> \xED |0
<U00EE> \xEE |0
<U00EF> \xEF |0
<U00F1> \xF1 |0
<U00F2> \xF2 |0
<U00F3> \xF3 |0
<U00F4> \xF4 |0
<U00F5> \xF5 |0
<U00F6> \xF6 |0
<U00F7> \xF7 |0
<U00F8> \xF8 |0
<U00F9> \xF9 |0
<U00FA> \xFA |0
<U00FB> \xFB |0
<U00FC> \xFC |0
<U00FF> \xFF |0
<U011E> \xD0 |0
<U011F> \xF0 |0
<U0130> \xDD |0
<U0131> \xFD |0
<U015E> \xDE |0
<U015F> \xFE |0
<U203E> \xAF |1
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+7
View File
@@ -0,0 +1,7 @@
CP1254.cs
CP1255.cs
CP1256.cs
CP28596.cs
CP28598.cs
CP28599.cs
CP38598.cs
+13
View File
@@ -0,0 +1,13 @@
topdir = ../../..
LIBRARY = $(topdir)/class/lib/I18N.MidEast.dll
LIB_LIST = list.unix
LIB_FLAGS = -r corlib -r mscorlib -r I18N
SOURCES_INCLUDE=*.cs
SOURCES_EXCLUDE=
export MONO_PATH_PREFIX = $(topdir)/class/lib:
include $(topdir)/class/library.make
+403
View File
@@ -0,0 +1,403 @@
/*
* CP1251.cs - Cyrillic (Windows) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-5347.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP1251 : ByteEncoding
{
public CP1251()
: base(1251, ToChars, "Cyrillic (Windows)",
"koi8-r", "windows-1251", "windows-1251",
true, true, true, true, 1251)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u0402', '\u0403', '\u201A', '\u0453',
'\u201E', '\u2026', '\u2020', '\u2021', '\u20AC', '\u2030',
'\u0409', '\u2039', '\u040A', '\u040C', '\u040B', '\u040F',
'\u0452', '\u2018', '\u2019', '\u201C', '\u201D', '\u2022',
'\u2013', '\u2014', '\u0098', '\u2122', '\u0459', '\u203A',
'\u045A', '\u045C', '\u045B', '\u045F', '\u00A0', '\u040E',
'\u045E', '\u0408', '\u00A4', '\u0490', '\u00A6', '\u00A7',
'\u0401', '\u00A9', '\u0404', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u0407', '\u00B0', '\u00B1', '\u0406', '\u0456',
'\u0491', '\u00B5', '\u00B6', '\u00B7', '\u0451', '\u2116',
'\u0454', '\u00BB', '\u0458', '\u0405', '\u0455', '\u0457',
'\u0410', '\u0411', '\u0412', '\u0413', '\u0414', '\u0415',
'\u0416', '\u0417', '\u0418', '\u0419', '\u041A', '\u041B',
'\u041C', '\u041D', '\u041E', '\u041F', '\u0420', '\u0421',
'\u0422', '\u0423', '\u0424', '\u0425', '\u0426', '\u0427',
'\u0428', '\u0429', '\u042A', '\u042B', '\u042C', '\u042D',
'\u042E', '\u042F', '\u0430', '\u0431', '\u0432', '\u0433',
'\u0434', '\u0435', '\u0436', '\u0437', '\u0438', '\u0439',
'\u043A', '\u043B', '\u043C', '\u043D', '\u043E', '\u043F',
'\u0440', '\u0441', '\u0442', '\u0443', '\u0444', '\u0445',
'\u0446', '\u0447', '\u0448', '\u0449', '\u044A', '\u044B',
'\u044C', '\u044D', '\u044E', '\u044F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0098:
case 0x00A0:
case 0x00A4:
case 0x00A6:
case 0x00A7:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00BB:
break;
case 0x0401: ch = 0xA8; break;
case 0x0402: ch = 0x80; break;
case 0x0403: ch = 0x81; break;
case 0x0404: ch = 0xAA; break;
case 0x0405: ch = 0xBD; break;
case 0x0406: ch = 0xB2; break;
case 0x0407: ch = 0xAF; break;
case 0x0408: ch = 0xA3; break;
case 0x0409: ch = 0x8A; break;
case 0x040A: ch = 0x8C; break;
case 0x040B: ch = 0x8E; break;
case 0x040C: ch = 0x8D; break;
case 0x040E: ch = 0xA1; break;
case 0x040F: ch = 0x8F; break;
case 0x0410:
case 0x0411:
case 0x0412:
case 0x0413:
case 0x0414:
case 0x0415:
case 0x0416:
case 0x0417:
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
case 0x0424:
case 0x0425:
case 0x0426:
case 0x0427:
case 0x0428:
case 0x0429:
case 0x042A:
case 0x042B:
case 0x042C:
case 0x042D:
case 0x042E:
case 0x042F:
case 0x0430:
case 0x0431:
case 0x0432:
case 0x0433:
case 0x0434:
case 0x0435:
case 0x0436:
case 0x0437:
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
case 0x0444:
case 0x0445:
case 0x0446:
case 0x0447:
case 0x0448:
case 0x0449:
case 0x044A:
case 0x044B:
case 0x044C:
case 0x044D:
case 0x044E:
case 0x044F:
ch -= 0x0350;
break;
case 0x0451: ch = 0xB8; break;
case 0x0452: ch = 0x90; break;
case 0x0453: ch = 0x83; break;
case 0x0454: ch = 0xBA; break;
case 0x0455: ch = 0xBE; break;
case 0x0456: ch = 0xB3; break;
case 0x0457: ch = 0xBF; break;
case 0x0458: ch = 0xBC; break;
case 0x0459: ch = 0x9A; break;
case 0x045A: ch = 0x9C; break;
case 0x045B: ch = 0x9E; break;
case 0x045C: ch = 0x9D; break;
case 0x045E: ch = 0xA2; break;
case 0x045F: ch = 0x9F; break;
case 0x0490: ch = 0xA5; break;
case 0x0491: ch = 0xB4; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x88; break;
case 0x2116: ch = 0xB9; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0098:
case 0x00A0:
case 0x00A4:
case 0x00A6:
case 0x00A7:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00BB:
break;
case 0x0401: ch = 0xA8; break;
case 0x0402: ch = 0x80; break;
case 0x0403: ch = 0x81; break;
case 0x0404: ch = 0xAA; break;
case 0x0405: ch = 0xBD; break;
case 0x0406: ch = 0xB2; break;
case 0x0407: ch = 0xAF; break;
case 0x0408: ch = 0xA3; break;
case 0x0409: ch = 0x8A; break;
case 0x040A: ch = 0x8C; break;
case 0x040B: ch = 0x8E; break;
case 0x040C: ch = 0x8D; break;
case 0x040E: ch = 0xA1; break;
case 0x040F: ch = 0x8F; break;
case 0x0410:
case 0x0411:
case 0x0412:
case 0x0413:
case 0x0414:
case 0x0415:
case 0x0416:
case 0x0417:
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
case 0x0424:
case 0x0425:
case 0x0426:
case 0x0427:
case 0x0428:
case 0x0429:
case 0x042A:
case 0x042B:
case 0x042C:
case 0x042D:
case 0x042E:
case 0x042F:
case 0x0430:
case 0x0431:
case 0x0432:
case 0x0433:
case 0x0434:
case 0x0435:
case 0x0436:
case 0x0437:
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
case 0x0444:
case 0x0445:
case 0x0446:
case 0x0447:
case 0x0448:
case 0x0449:
case 0x044A:
case 0x044B:
case 0x044C:
case 0x044D:
case 0x044E:
case 0x044F:
ch -= 0x0350;
break;
case 0x0451: ch = 0xB8; break;
case 0x0452: ch = 0x90; break;
case 0x0453: ch = 0x83; break;
case 0x0454: ch = 0xBA; break;
case 0x0455: ch = 0xBE; break;
case 0x0456: ch = 0xB3; break;
case 0x0457: ch = 0xBF; break;
case 0x0458: ch = 0xBC; break;
case 0x0459: ch = 0x9A; break;
case 0x045A: ch = 0x9C; break;
case 0x045B: ch = 0x9E; break;
case 0x045C: ch = 0x9D; break;
case 0x045E: ch = 0xA2; break;
case 0x045F: ch = 0x9F; break;
case 0x0490: ch = 0xA5; break;
case 0x0491: ch = 0xB4; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x88; break;
case 0x2116: ch = 0xB9; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1251
public class ENCwindows_1251 : CP1251
{
public ENCwindows_1251() : base() {}
}; // class ENCwindows_1251
}; // namespace I18N.Other
+395
View File
@@ -0,0 +1,395 @@
/*
* CP1257.cs - Baltic (Windows) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-5353.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP1257 : ByteEncoding
{
public CP1257()
: base(1257, ToChars, "Baltic (Windows)",
"iso-8859-4", "windows-1257", "windows-1257",
true, true, true, true, 1257)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u20AC', '\u0081', '\u201A', '\u0083',
'\u201E', '\u2026', '\u2020', '\u2021', '\u0088', '\u2030',
'\u008A', '\u2039', '\u008C', '\u00A8', '\u02C7', '\u00B8',
'\u0090', '\u2018', '\u2019', '\u201C', '\u201D', '\u2022',
'\u2013', '\u2014', '\u0098', '\u2122', '\u009A', '\u203A',
'\u009C', '\u00AF', '\u02DB', '\u009F', '\u00A0', '\u003F',
'\u00A2', '\u00A3', '\u00A4', '\u003F', '\u00A6', '\u00A7',
'\u00D8', '\u00A9', '\u0156', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u00C6', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u00B7', '\u00F8', '\u00B9',
'\u0157', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u00E6',
'\u0104', '\u012E', '\u0100', '\u0106', '\u00C4', '\u00C5',
'\u0118', '\u0112', '\u010C', '\u00C9', '\u0179', '\u0116',
'\u0122', '\u0136', '\u012A', '\u013B', '\u0160', '\u0143',
'\u0145', '\u00D3', '\u014C', '\u00D5', '\u00D6', '\u00D7',
'\u0172', '\u0141', '\u015A', '\u016A', '\u00DC', '\u017B',
'\u017D', '\u00DF', '\u0105', '\u012F', '\u0101', '\u0107',
'\u00E4', '\u00E5', '\u0119', '\u0113', '\u010D', '\u00E9',
'\u017A', '\u0117', '\u0123', '\u0137', '\u012B', '\u013C',
'\u0161', '\u0144', '\u0146', '\u00F3', '\u014D', '\u00F5',
'\u00F6', '\u00F7', '\u0173', '\u0142', '\u015B', '\u016B',
'\u00FC', '\u017C', '\u017E', '\u02D9',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x0083:
case 0x0088:
case 0x008A:
case 0x008C:
case 0x0090:
case 0x0098:
case 0x009A:
case 0x009C:
case 0x009F:
case 0x00A0:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A6:
case 0x00A7:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00C4:
case 0x00C5:
case 0x00C9:
case 0x00D3:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00DC:
case 0x00DF:
case 0x00E4:
case 0x00E5:
case 0x00E9:
case 0x00F3:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00FC:
break;
case 0x00A8: ch = 0x8D; break;
case 0x00AF: ch = 0x9D; break;
case 0x00B8: ch = 0x8F; break;
case 0x00C6: ch = 0xAF; break;
case 0x00D8: ch = 0xA8; break;
case 0x00E6: ch = 0xBF; break;
case 0x00F8: ch = 0xB8; break;
case 0x0100: ch = 0xC2; break;
case 0x0101: ch = 0xE2; break;
case 0x0104: ch = 0xC0; break;
case 0x0105: ch = 0xE0; break;
case 0x0106: ch = 0xC3; break;
case 0x0107: ch = 0xE3; break;
case 0x010C: ch = 0xC8; break;
case 0x010D: ch = 0xE8; break;
case 0x0112: ch = 0xC7; break;
case 0x0113: ch = 0xE7; break;
case 0x0116: ch = 0xCB; break;
case 0x0117: ch = 0xEB; break;
case 0x0118: ch = 0xC6; break;
case 0x0119: ch = 0xE6; break;
case 0x0122: ch = 0xCC; break;
case 0x0123: ch = 0xEC; break;
case 0x012A: ch = 0xCE; break;
case 0x012B: ch = 0xEE; break;
case 0x012E: ch = 0xC1; break;
case 0x012F: ch = 0xE1; break;
case 0x0136: ch = 0xCD; break;
case 0x0137: ch = 0xED; break;
case 0x013B: ch = 0xCF; break;
case 0x013C: ch = 0xEF; break;
case 0x0141: ch = 0xD9; break;
case 0x0142: ch = 0xF9; break;
case 0x0143: ch = 0xD1; break;
case 0x0144: ch = 0xF1; break;
case 0x0145: ch = 0xD2; break;
case 0x0146: ch = 0xF2; break;
case 0x014C: ch = 0xD4; break;
case 0x014D: ch = 0xF4; break;
case 0x0156: ch = 0xAA; break;
case 0x0157: ch = 0xBA; break;
case 0x015A: ch = 0xDA; break;
case 0x015B: ch = 0xFA; break;
case 0x0160: ch = 0xD0; break;
case 0x0161: ch = 0xF0; break;
case 0x016A: ch = 0xDB; break;
case 0x016B: ch = 0xFB; break;
case 0x0172: ch = 0xD8; break;
case 0x0173: ch = 0xF8; break;
case 0x0179: ch = 0xCA; break;
case 0x017A: ch = 0xEA; break;
case 0x017B: ch = 0xDD; break;
case 0x017C: ch = 0xFD; break;
case 0x017D: ch = 0xDE; break;
case 0x017E: ch = 0xFE; break;
case 0x02C7: ch = 0x8E; break;
case 0x02D9: ch = 0xFF; break;
case 0x02DB: ch = 0x9E; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x0083:
case 0x0088:
case 0x008A:
case 0x008C:
case 0x0090:
case 0x0098:
case 0x009A:
case 0x009C:
case 0x009F:
case 0x00A0:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A6:
case 0x00A7:
case 0x00A9:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B9:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00C4:
case 0x00C5:
case 0x00C9:
case 0x00D3:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00DC:
case 0x00DF:
case 0x00E4:
case 0x00E5:
case 0x00E9:
case 0x00F3:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00FC:
break;
case 0x00A8: ch = 0x8D; break;
case 0x00AF: ch = 0x9D; break;
case 0x00B8: ch = 0x8F; break;
case 0x00C6: ch = 0xAF; break;
case 0x00D8: ch = 0xA8; break;
case 0x00E6: ch = 0xBF; break;
case 0x00F8: ch = 0xB8; break;
case 0x0100: ch = 0xC2; break;
case 0x0101: ch = 0xE2; break;
case 0x0104: ch = 0xC0; break;
case 0x0105: ch = 0xE0; break;
case 0x0106: ch = 0xC3; break;
case 0x0107: ch = 0xE3; break;
case 0x010C: ch = 0xC8; break;
case 0x010D: ch = 0xE8; break;
case 0x0112: ch = 0xC7; break;
case 0x0113: ch = 0xE7; break;
case 0x0116: ch = 0xCB; break;
case 0x0117: ch = 0xEB; break;
case 0x0118: ch = 0xC6; break;
case 0x0119: ch = 0xE6; break;
case 0x0122: ch = 0xCC; break;
case 0x0123: ch = 0xEC; break;
case 0x012A: ch = 0xCE; break;
case 0x012B: ch = 0xEE; break;
case 0x012E: ch = 0xC1; break;
case 0x012F: ch = 0xE1; break;
case 0x0136: ch = 0xCD; break;
case 0x0137: ch = 0xED; break;
case 0x013B: ch = 0xCF; break;
case 0x013C: ch = 0xEF; break;
case 0x0141: ch = 0xD9; break;
case 0x0142: ch = 0xF9; break;
case 0x0143: ch = 0xD1; break;
case 0x0144: ch = 0xF1; break;
case 0x0145: ch = 0xD2; break;
case 0x0146: ch = 0xF2; break;
case 0x014C: ch = 0xD4; break;
case 0x014D: ch = 0xF4; break;
case 0x0156: ch = 0xAA; break;
case 0x0157: ch = 0xBA; break;
case 0x015A: ch = 0xDA; break;
case 0x015B: ch = 0xFA; break;
case 0x0160: ch = 0xD0; break;
case 0x0161: ch = 0xF0; break;
case 0x016A: ch = 0xDB; break;
case 0x016B: ch = 0xFB; break;
case 0x0172: ch = 0xD8; break;
case 0x0173: ch = 0xF8; break;
case 0x0179: ch = 0xCA; break;
case 0x017A: ch = 0xEA; break;
case 0x017B: ch = 0xDD; break;
case 0x017C: ch = 0xFD; break;
case 0x017D: ch = 0xDE; break;
case 0x017E: ch = 0xFE; break;
case 0x02C7: ch = 0x8E; break;
case 0x02D9: ch = 0xFF; break;
case 0x02DB: ch = 0x9E; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1257
public class ENCwindows_1257 : CP1257
{
public ENCwindows_1257() : base() {}
}; // class ENCwindows_1257
}; // namespace I18N.Other
+399
View File
@@ -0,0 +1,399 @@
/*
* CP1258.cs - Vietnamese (Windows) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-5354.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP1258 : ByteEncoding
{
public CP1258()
: base(1258, ToChars, "Vietnamese (Windows)",
"windows-1258", "windows-1258", "windows-1258",
true, true, true, true, 1258)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u20AC', '\u0081', '\u201A', '\u0192',
'\u201E', '\u2026', '\u2020', '\u2021', '\u02C6', '\u2030',
'\u008A', '\u2039', '\u0152', '\u008D', '\u008E', '\u008F',
'\u0090', '\u2018', '\u2019', '\u201C', '\u201D', '\u2022',
'\u2013', '\u2014', '\u02DC', '\u2122', '\u009A', '\u203A',
'\u0153', '\u009D', '\u009E', '\u0178', '\u00A0', '\u00A1',
'\u00A2', '\u00A3', '\u00A4', '\u00A5', '\u00A6', '\u00A7',
'\u00A8', '\u00A9', '\u00AA', '\u00AB', '\u00AC', '\u00AD',
'\u00AE', '\u00AF', '\u00B0', '\u00B1', '\u00B2', '\u00B3',
'\u00B4', '\u00B5', '\u00B6', '\u00B7', '\u00B8', '\u00B9',
'\u00BA', '\u00BB', '\u00BC', '\u00BD', '\u00BE', '\u00BF',
'\u00C0', '\u00C1', '\u00C2', '\u0102', '\u00C4', '\u00C5',
'\u00C6', '\u00C7', '\u00C8', '\u00C9', '\u00CA', '\u00CB',
'\u0300', '\u00CD', '\u00CE', '\u00CF', '\u0110', '\u00D1',
'\u0309', '\u00D3', '\u00D4', '\u01A0', '\u00D6', '\u00D7',
'\u00D8', '\u00D9', '\u00DA', '\u00DB', '\u00DC', '\u01AF',
'\u0303', '\u00DF', '\u00E0', '\u00E1', '\u00E2', '\u0103',
'\u00E4', '\u00E5', '\u00E6', '\u00E7', '\u00E8', '\u00E9',
'\u00EA', '\u00EB', '\u0301', '\u00ED', '\u00EE', '\u00EF',
'\u0111', '\u00F1', '\u0323', '\u00F3', '\u00F4', '\u01A1',
'\u00F6', '\u00F7', '\u00F8', '\u00F9', '\u00FA', '\u00FB',
'\u00FC', '\u01B0', '\u20AB', '\u00FF',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x008A:
case 0x008D:
case 0x008E:
case 0x008F:
case 0x0090:
case 0x009A:
case 0x009D:
case 0x009E:
case 0x00A0:
case 0x00A1:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AA:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BA:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00BF:
case 0x00C0:
case 0x00C1:
case 0x00C2:
case 0x00C4:
case 0x00C5:
case 0x00C6:
case 0x00C7:
case 0x00C8:
case 0x00C9:
case 0x00CA:
case 0x00CB:
case 0x00CD:
case 0x00CE:
case 0x00CF:
case 0x00D1:
case 0x00D3:
case 0x00D4:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00D9:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E0:
case 0x00E1:
case 0x00E2:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00ED:
case 0x00EE:
case 0x00EF:
case 0x00F1:
case 0x00F3:
case 0x00F4:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00F9:
case 0x00FA:
case 0x00FB:
case 0x00FC:
case 0x00FF:
break;
case 0x0102: ch = 0xC3; break;
case 0x0103: ch = 0xE3; break;
case 0x0110: ch = 0xD0; break;
case 0x0111: ch = 0xF0; break;
case 0x0152: ch = 0x8C; break;
case 0x0153: ch = 0x9C; break;
case 0x0178: ch = 0x9F; break;
case 0x0192: ch = 0x83; break;
case 0x01A0: ch = 0xD5; break;
case 0x01A1: ch = 0xF5; break;
case 0x01AF: ch = 0xDD; break;
case 0x01B0: ch = 0xFD; break;
case 0x02C6: ch = 0x88; break;
case 0x02DC: ch = 0x98; break;
case 0x0300: ch = 0xCC; break;
case 0x0301: ch = 0xEC; break;
case 0x0303: ch = 0xDE; break;
case 0x0309: ch = 0xD2; break;
case 0x0323: ch = 0xF2; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AB: ch = 0xFE; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x0081:
case 0x008A:
case 0x008D:
case 0x008E:
case 0x008F:
case 0x0090:
case 0x009A:
case 0x009D:
case 0x009E:
case 0x00A0:
case 0x00A1:
case 0x00A2:
case 0x00A3:
case 0x00A4:
case 0x00A5:
case 0x00A6:
case 0x00A7:
case 0x00A8:
case 0x00A9:
case 0x00AA:
case 0x00AB:
case 0x00AC:
case 0x00AD:
case 0x00AE:
case 0x00AF:
case 0x00B0:
case 0x00B1:
case 0x00B2:
case 0x00B3:
case 0x00B4:
case 0x00B5:
case 0x00B6:
case 0x00B7:
case 0x00B8:
case 0x00B9:
case 0x00BA:
case 0x00BB:
case 0x00BC:
case 0x00BD:
case 0x00BE:
case 0x00BF:
case 0x00C0:
case 0x00C1:
case 0x00C2:
case 0x00C4:
case 0x00C5:
case 0x00C6:
case 0x00C7:
case 0x00C8:
case 0x00C9:
case 0x00CA:
case 0x00CB:
case 0x00CD:
case 0x00CE:
case 0x00CF:
case 0x00D1:
case 0x00D3:
case 0x00D4:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00D9:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E0:
case 0x00E1:
case 0x00E2:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E7:
case 0x00E8:
case 0x00E9:
case 0x00EA:
case 0x00EB:
case 0x00ED:
case 0x00EE:
case 0x00EF:
case 0x00F1:
case 0x00F3:
case 0x00F4:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00F9:
case 0x00FA:
case 0x00FB:
case 0x00FC:
case 0x00FF:
break;
case 0x0102: ch = 0xC3; break;
case 0x0103: ch = 0xE3; break;
case 0x0110: ch = 0xD0; break;
case 0x0111: ch = 0xF0; break;
case 0x0152: ch = 0x8C; break;
case 0x0153: ch = 0x9C; break;
case 0x0178: ch = 0x9F; break;
case 0x0192: ch = 0x83; break;
case 0x01A0: ch = 0xD5; break;
case 0x01A1: ch = 0xF5; break;
case 0x01AF: ch = 0xDD; break;
case 0x01B0: ch = 0xFD; break;
case 0x02C6: ch = 0x88; break;
case 0x02DC: ch = 0x98; break;
case 0x0300: ch = 0xCC; break;
case 0x0301: ch = 0xEC; break;
case 0x0303: ch = 0xDE; break;
case 0x0309: ch = 0xD2; break;
case 0x0323: ch = 0xF2; break;
case 0x2013: ch = 0x96; break;
case 0x2014: ch = 0x97; break;
case 0x2018: ch = 0x91; break;
case 0x2019: ch = 0x92; break;
case 0x201A: ch = 0x82; break;
case 0x201C: ch = 0x93; break;
case 0x201D: ch = 0x94; break;
case 0x201E: ch = 0x84; break;
case 0x2020: ch = 0x86; break;
case 0x2021: ch = 0x87; break;
case 0x2022: ch = 0x95; break;
case 0x2026: ch = 0x85; break;
case 0x2030: ch = 0x89; break;
case 0x2039: ch = 0x8B; break;
case 0x203A: ch = 0x9B; break;
case 0x20AB: ch = 0xFE; break;
case 0x20AC: ch = 0x80; break;
case 0x2122: ch = 0x99; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1258
public class ENCwindows_1258 : CP1258
{
public ENCwindows_1258() : base() {}
}; // class ENCwindows_1258
}; // namespace I18N.Other
+429
View File
@@ -0,0 +1,429 @@
/*
* CP20866.cs - Cyrillic (KOI8-R) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-878.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP20866 : ByteEncoding
{
public CP20866()
: base(20866, ToChars, "Cyrillic (KOI8-R)",
"koi8-r", "koi8-r", "koi8-r",
true, true, true, true, 1251)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u2500', '\u2502', '\u250C', '\u2510',
'\u2514', '\u2518', '\u251C', '\u2524', '\u252C', '\u2534',
'\u253C', '\u2580', '\u2584', '\u2588', '\u258C', '\u2590',
'\u2591', '\u2592', '\u2593', '\u2320', '\u25A0', '\u2219',
'\u221A', '\u2248', '\u2264', '\u2265', '\u00A0', '\u2321',
'\u00B0', '\u00B2', '\u00B7', '\u00F7', '\u2550', '\u2551',
'\u2552', '\u0451', '\u2553', '\u2554', '\u2555', '\u2556',
'\u2557', '\u2558', '\u2559', '\u255A', '\u255B', '\u255C',
'\u255D', '\u255E', '\u255F', '\u2560', '\u2561', '\u0401',
'\u2562', '\u2563', '\u2564', '\u2565', '\u2566', '\u2567',
'\u2568', '\u2569', '\u256A', '\u256B', '\u256C', '\u00A9',
'\u044E', '\u0430', '\u0431', '\u0446', '\u0434', '\u0435',
'\u0444', '\u0433', '\u0445', '\u0438', '\u0439', '\u043A',
'\u043B', '\u043C', '\u043D', '\u043E', '\u043F', '\u044F',
'\u0440', '\u0441', '\u0442', '\u0443', '\u0436', '\u0432',
'\u044C', '\u044B', '\u0437', '\u0448', '\u044D', '\u0449',
'\u0447', '\u044A', '\u042E', '\u0410', '\u0411', '\u0426',
'\u0414', '\u0415', '\u0424', '\u0413', '\u0425', '\u0418',
'\u0419', '\u041A', '\u041B', '\u041C', '\u041D', '\u041E',
'\u041F', '\u042F', '\u0420', '\u0421', '\u0422', '\u0423',
'\u0416', '\u0412', '\u042C', '\u042B', '\u0417', '\u0428',
'\u042D', '\u0429', '\u0427', '\u042A',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x00A0: ch = 0x9A; break;
case 0x00A9: ch = 0xBF; break;
case 0x00B0: ch = 0x9C; break;
case 0x00B2: ch = 0x9D; break;
case 0x00B7: ch = 0x9E; break;
case 0x00F7: ch = 0x9F; break;
case 0x0401: ch = 0xB3; break;
case 0x0410: ch = 0xE1; break;
case 0x0411: ch = 0xE2; break;
case 0x0412: ch = 0xF7; break;
case 0x0413: ch = 0xE7; break;
case 0x0414: ch = 0xE4; break;
case 0x0415: ch = 0xE5; break;
case 0x0416: ch = 0xF6; break;
case 0x0417: ch = 0xFA; break;
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
ch -= 0x032F;
break;
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
ch -= 0x032E;
break;
case 0x0424: ch = 0xE6; break;
case 0x0425: ch = 0xE8; break;
case 0x0426: ch = 0xE3; break;
case 0x0427: ch = 0xFE; break;
case 0x0428: ch = 0xFB; break;
case 0x0429: ch = 0xFD; break;
case 0x042A: ch = 0xFF; break;
case 0x042B: ch = 0xF9; break;
case 0x042C: ch = 0xF8; break;
case 0x042D: ch = 0xFC; break;
case 0x042E: ch = 0xE0; break;
case 0x042F: ch = 0xF1; break;
case 0x0430: ch = 0xC1; break;
case 0x0431: ch = 0xC2; break;
case 0x0432: ch = 0xD7; break;
case 0x0433: ch = 0xC7; break;
case 0x0434: ch = 0xC4; break;
case 0x0435: ch = 0xC5; break;
case 0x0436: ch = 0xD6; break;
case 0x0437: ch = 0xDA; break;
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
ch -= 0x036F;
break;
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
ch -= 0x036E;
break;
case 0x0444: ch = 0xC6; break;
case 0x0445: ch = 0xC8; break;
case 0x0446: ch = 0xC3; break;
case 0x0447: ch = 0xDE; break;
case 0x0448: ch = 0xDB; break;
case 0x0449: ch = 0xDD; break;
case 0x044A: ch = 0xDF; break;
case 0x044B: ch = 0xD9; break;
case 0x044C: ch = 0xD8; break;
case 0x044D: ch = 0xDC; break;
case 0x044E: ch = 0xC0; break;
case 0x044F: ch = 0xD1; break;
case 0x0451: ch = 0xA3; break;
case 0x2219: ch = 0x95; break;
case 0x221A: ch = 0x96; break;
case 0x2248: ch = 0x97; break;
case 0x2264: ch = 0x98; break;
case 0x2265: ch = 0x99; break;
case 0x2320: ch = 0x93; break;
case 0x2321: ch = 0x9B; break;
case 0x2500: ch = 0x80; break;
case 0x2502: ch = 0x81; break;
case 0x250C: ch = 0x82; break;
case 0x2510: ch = 0x83; break;
case 0x2514: ch = 0x84; break;
case 0x2518: ch = 0x85; break;
case 0x251C: ch = 0x86; break;
case 0x2524: ch = 0x87; break;
case 0x252C: ch = 0x88; break;
case 0x2534: ch = 0x89; break;
case 0x253C: ch = 0x8A; break;
case 0x2550: ch = 0xA0; break;
case 0x2551: ch = 0xA1; break;
case 0x2552: ch = 0xA2; break;
case 0x2553:
case 0x2554:
case 0x2555:
case 0x2556:
case 0x2557:
case 0x2558:
case 0x2559:
case 0x255A:
case 0x255B:
case 0x255C:
case 0x255D:
case 0x255E:
case 0x255F:
case 0x2560:
case 0x2561:
ch -= 0x24AF;
break;
case 0x2562:
case 0x2563:
case 0x2564:
case 0x2565:
case 0x2566:
case 0x2567:
case 0x2568:
case 0x2569:
case 0x256A:
case 0x256B:
case 0x256C:
ch -= 0x24AE;
break;
case 0x2580: ch = 0x8B; break;
case 0x2584: ch = 0x8C; break;
case 0x2588: ch = 0x8D; break;
case 0x258C: ch = 0x8E; break;
case 0x2590:
case 0x2591:
case 0x2592:
case 0x2593:
ch -= 0x2501;
break;
case 0x25A0: ch = 0x94; break;
case 0xFFE8: ch = 0x81; break;
case 0xFFED: ch = 0x94; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x00A0: ch = 0x9A; break;
case 0x00A9: ch = 0xBF; break;
case 0x00B0: ch = 0x9C; break;
case 0x00B2: ch = 0x9D; break;
case 0x00B7: ch = 0x9E; break;
case 0x00F7: ch = 0x9F; break;
case 0x0401: ch = 0xB3; break;
case 0x0410: ch = 0xE1; break;
case 0x0411: ch = 0xE2; break;
case 0x0412: ch = 0xF7; break;
case 0x0413: ch = 0xE7; break;
case 0x0414: ch = 0xE4; break;
case 0x0415: ch = 0xE5; break;
case 0x0416: ch = 0xF6; break;
case 0x0417: ch = 0xFA; break;
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
ch -= 0x032F;
break;
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
ch -= 0x032E;
break;
case 0x0424: ch = 0xE6; break;
case 0x0425: ch = 0xE8; break;
case 0x0426: ch = 0xE3; break;
case 0x0427: ch = 0xFE; break;
case 0x0428: ch = 0xFB; break;
case 0x0429: ch = 0xFD; break;
case 0x042A: ch = 0xFF; break;
case 0x042B: ch = 0xF9; break;
case 0x042C: ch = 0xF8; break;
case 0x042D: ch = 0xFC; break;
case 0x042E: ch = 0xE0; break;
case 0x042F: ch = 0xF1; break;
case 0x0430: ch = 0xC1; break;
case 0x0431: ch = 0xC2; break;
case 0x0432: ch = 0xD7; break;
case 0x0433: ch = 0xC7; break;
case 0x0434: ch = 0xC4; break;
case 0x0435: ch = 0xC5; break;
case 0x0436: ch = 0xD6; break;
case 0x0437: ch = 0xDA; break;
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
ch -= 0x036F;
break;
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
ch -= 0x036E;
break;
case 0x0444: ch = 0xC6; break;
case 0x0445: ch = 0xC8; break;
case 0x0446: ch = 0xC3; break;
case 0x0447: ch = 0xDE; break;
case 0x0448: ch = 0xDB; break;
case 0x0449: ch = 0xDD; break;
case 0x044A: ch = 0xDF; break;
case 0x044B: ch = 0xD9; break;
case 0x044C: ch = 0xD8; break;
case 0x044D: ch = 0xDC; break;
case 0x044E: ch = 0xC0; break;
case 0x044F: ch = 0xD1; break;
case 0x0451: ch = 0xA3; break;
case 0x2219: ch = 0x95; break;
case 0x221A: ch = 0x96; break;
case 0x2248: ch = 0x97; break;
case 0x2264: ch = 0x98; break;
case 0x2265: ch = 0x99; break;
case 0x2320: ch = 0x93; break;
case 0x2321: ch = 0x9B; break;
case 0x2500: ch = 0x80; break;
case 0x2502: ch = 0x81; break;
case 0x250C: ch = 0x82; break;
case 0x2510: ch = 0x83; break;
case 0x2514: ch = 0x84; break;
case 0x2518: ch = 0x85; break;
case 0x251C: ch = 0x86; break;
case 0x2524: ch = 0x87; break;
case 0x252C: ch = 0x88; break;
case 0x2534: ch = 0x89; break;
case 0x253C: ch = 0x8A; break;
case 0x2550: ch = 0xA0; break;
case 0x2551: ch = 0xA1; break;
case 0x2552: ch = 0xA2; break;
case 0x2553:
case 0x2554:
case 0x2555:
case 0x2556:
case 0x2557:
case 0x2558:
case 0x2559:
case 0x255A:
case 0x255B:
case 0x255C:
case 0x255D:
case 0x255E:
case 0x255F:
case 0x2560:
case 0x2561:
ch -= 0x24AF;
break;
case 0x2562:
case 0x2563:
case 0x2564:
case 0x2565:
case 0x2566:
case 0x2567:
case 0x2568:
case 0x2569:
case 0x256A:
case 0x256B:
case 0x256C:
ch -= 0x24AE;
break;
case 0x2580: ch = 0x8B; break;
case 0x2584: ch = 0x8C; break;
case 0x2588: ch = 0x8D; break;
case 0x258C: ch = 0x8E; break;
case 0x2590:
case 0x2591:
case 0x2592:
case 0x2593:
ch -= 0x2501;
break;
case 0x25A0: ch = 0x94; break;
case 0xFFE8: ch = 0x81; break;
case 0xFFED: ch = 0x94; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP20866
public class ENCkoi8_r : CP20866
{
public ENCkoi8_r() : base() {}
}; // class ENCkoi8_r
}; // namespace I18N.Other
+429
View File
@@ -0,0 +1,429 @@
/*
* CP21866.cs - Ukrainian (KOI8-U) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "koi8-u.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP21866 : ByteEncoding
{
public CP21866()
: base(21866, ToChars, "Ukrainian (KOI8-U)",
"koi8-u", "koi8-u", "koi8-u",
true, true, true, true, 1251)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u2500', '\u2502', '\u250C', '\u2510',
'\u2514', '\u2518', '\u251C', '\u2524', '\u252C', '\u2534',
'\u253C', '\u2580', '\u2584', '\u2588', '\u258C', '\u2590',
'\u2591', '\u2592', '\u2593', '\u2320', '\u25A0', '\u2219',
'\u221A', '\u2248', '\u2264', '\u2265', '\u00A0', '\u2321',
'\u00B0', '\u00B2', '\u00B7', '\u00F7', '\u2550', '\u2551',
'\u2552', '\u0451', '\u0454', '\u2554', '\u0456', '\u0457',
'\u2557', '\u2558', '\u2559', '\u255A', '\u255B', '\u0491',
'\u255D', '\u255E', '\u255F', '\u2560', '\u2561', '\u0401',
'\u0404', '\u2563', '\u0406', '\u0407', '\u2566', '\u2567',
'\u2568', '\u2569', '\u256A', '\u0490', '\u256C', '\u00A9',
'\u044E', '\u0430', '\u0431', '\u0446', '\u0434', '\u0435',
'\u0444', '\u0433', '\u0445', '\u0438', '\u0439', '\u043A',
'\u043B', '\u043C', '\u043D', '\u043E', '\u043F', '\u044F',
'\u0440', '\u0441', '\u0442', '\u0443', '\u0436', '\u0432',
'\u044C', '\u044B', '\u0437', '\u0448', '\u044D', '\u0449',
'\u0447', '\u044A', '\u042E', '\u0410', '\u0411', '\u0426',
'\u0414', '\u0415', '\u0424', '\u0413', '\u0425', '\u0418',
'\u0419', '\u041A', '\u041B', '\u041C', '\u041D', '\u041E',
'\u041F', '\u042F', '\u0420', '\u0421', '\u0422', '\u0423',
'\u0416', '\u0412', '\u042C', '\u042B', '\u0417', '\u0428',
'\u042D', '\u0429', '\u0427', '\u042A',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x00A0: ch = 0x9A; break;
case 0x00A9: ch = 0xBF; break;
case 0x00B0: ch = 0x9C; break;
case 0x00B2: ch = 0x9D; break;
case 0x00B7: ch = 0x9E; break;
case 0x00F7: ch = 0x9F; break;
case 0x0401: ch = 0xB3; break;
case 0x0404: ch = 0xB4; break;
case 0x0406: ch = 0xB6; break;
case 0x0407: ch = 0xB7; break;
case 0x0410: ch = 0xE1; break;
case 0x0411: ch = 0xE2; break;
case 0x0412: ch = 0xF7; break;
case 0x0413: ch = 0xE7; break;
case 0x0414: ch = 0xE4; break;
case 0x0415: ch = 0xE5; break;
case 0x0416: ch = 0xF6; break;
case 0x0417: ch = 0xFA; break;
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
ch -= 0x032F;
break;
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
ch -= 0x032E;
break;
case 0x0424: ch = 0xE6; break;
case 0x0425: ch = 0xE8; break;
case 0x0426: ch = 0xE3; break;
case 0x0427: ch = 0xFE; break;
case 0x0428: ch = 0xFB; break;
case 0x0429: ch = 0xFD; break;
case 0x042A: ch = 0xFF; break;
case 0x042B: ch = 0xF9; break;
case 0x042C: ch = 0xF8; break;
case 0x042D: ch = 0xFC; break;
case 0x042E: ch = 0xE0; break;
case 0x042F: ch = 0xF1; break;
case 0x0430: ch = 0xC1; break;
case 0x0431: ch = 0xC2; break;
case 0x0432: ch = 0xD7; break;
case 0x0433: ch = 0xC7; break;
case 0x0434: ch = 0xC4; break;
case 0x0435: ch = 0xC5; break;
case 0x0436: ch = 0xD6; break;
case 0x0437: ch = 0xDA; break;
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
ch -= 0x036F;
break;
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
ch -= 0x036E;
break;
case 0x0444: ch = 0xC6; break;
case 0x0445: ch = 0xC8; break;
case 0x0446: ch = 0xC3; break;
case 0x0447: ch = 0xDE; break;
case 0x0448: ch = 0xDB; break;
case 0x0449: ch = 0xDD; break;
case 0x044A: ch = 0xDF; break;
case 0x044B: ch = 0xD9; break;
case 0x044C: ch = 0xD8; break;
case 0x044D: ch = 0xDC; break;
case 0x044E: ch = 0xC0; break;
case 0x044F: ch = 0xD1; break;
case 0x0451: ch = 0xA3; break;
case 0x0454: ch = 0xA4; break;
case 0x0456: ch = 0xA6; break;
case 0x0457: ch = 0xA7; break;
case 0x0490: ch = 0xBD; break;
case 0x0491: ch = 0xAD; break;
case 0x2219: ch = 0x95; break;
case 0x221A: ch = 0x96; break;
case 0x2248: ch = 0x97; break;
case 0x2264: ch = 0x98; break;
case 0x2265: ch = 0x99; break;
case 0x2320: ch = 0x93; break;
case 0x2321: ch = 0x9B; break;
case 0x2500: ch = 0x80; break;
case 0x2502: ch = 0x81; break;
case 0x250C: ch = 0x82; break;
case 0x2510: ch = 0x83; break;
case 0x2514: ch = 0x84; break;
case 0x2518: ch = 0x85; break;
case 0x251C: ch = 0x86; break;
case 0x2524: ch = 0x87; break;
case 0x252C: ch = 0x88; break;
case 0x2534: ch = 0x89; break;
case 0x253C: ch = 0x8A; break;
case 0x2550: ch = 0xA0; break;
case 0x2551: ch = 0xA1; break;
case 0x2552: ch = 0xA2; break;
case 0x2554: ch = 0xA5; break;
case 0x2557:
case 0x2558:
case 0x2559:
case 0x255A:
case 0x255B:
ch -= 0x24AF;
break;
case 0x255D:
case 0x255E:
case 0x255F:
case 0x2560:
case 0x2561:
ch -= 0x24AF;
break;
case 0x2563: ch = 0xB5; break;
case 0x2566:
case 0x2567:
case 0x2568:
case 0x2569:
case 0x256A:
ch -= 0x24AE;
break;
case 0x256C: ch = 0xBE; break;
case 0x2580: ch = 0x8B; break;
case 0x2584: ch = 0x8C; break;
case 0x2588: ch = 0x8D; break;
case 0x258C: ch = 0x8E; break;
case 0x2590:
case 0x2591:
case 0x2592:
case 0x2593:
ch -= 0x2501;
break;
case 0x25A0: ch = 0x94; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 128) switch(ch)
{
case 0x00A0: ch = 0x9A; break;
case 0x00A9: ch = 0xBF; break;
case 0x00B0: ch = 0x9C; break;
case 0x00B2: ch = 0x9D; break;
case 0x00B7: ch = 0x9E; break;
case 0x00F7: ch = 0x9F; break;
case 0x0401: ch = 0xB3; break;
case 0x0404: ch = 0xB4; break;
case 0x0406: ch = 0xB6; break;
case 0x0407: ch = 0xB7; break;
case 0x0410: ch = 0xE1; break;
case 0x0411: ch = 0xE2; break;
case 0x0412: ch = 0xF7; break;
case 0x0413: ch = 0xE7; break;
case 0x0414: ch = 0xE4; break;
case 0x0415: ch = 0xE5; break;
case 0x0416: ch = 0xF6; break;
case 0x0417: ch = 0xFA; break;
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
ch -= 0x032F;
break;
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
ch -= 0x032E;
break;
case 0x0424: ch = 0xE6; break;
case 0x0425: ch = 0xE8; break;
case 0x0426: ch = 0xE3; break;
case 0x0427: ch = 0xFE; break;
case 0x0428: ch = 0xFB; break;
case 0x0429: ch = 0xFD; break;
case 0x042A: ch = 0xFF; break;
case 0x042B: ch = 0xF9; break;
case 0x042C: ch = 0xF8; break;
case 0x042D: ch = 0xFC; break;
case 0x042E: ch = 0xE0; break;
case 0x042F: ch = 0xF1; break;
case 0x0430: ch = 0xC1; break;
case 0x0431: ch = 0xC2; break;
case 0x0432: ch = 0xD7; break;
case 0x0433: ch = 0xC7; break;
case 0x0434: ch = 0xC4; break;
case 0x0435: ch = 0xC5; break;
case 0x0436: ch = 0xD6; break;
case 0x0437: ch = 0xDA; break;
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
ch -= 0x036F;
break;
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
ch -= 0x036E;
break;
case 0x0444: ch = 0xC6; break;
case 0x0445: ch = 0xC8; break;
case 0x0446: ch = 0xC3; break;
case 0x0447: ch = 0xDE; break;
case 0x0448: ch = 0xDB; break;
case 0x0449: ch = 0xDD; break;
case 0x044A: ch = 0xDF; break;
case 0x044B: ch = 0xD9; break;
case 0x044C: ch = 0xD8; break;
case 0x044D: ch = 0xDC; break;
case 0x044E: ch = 0xC0; break;
case 0x044F: ch = 0xD1; break;
case 0x0451: ch = 0xA3; break;
case 0x0454: ch = 0xA4; break;
case 0x0456: ch = 0xA6; break;
case 0x0457: ch = 0xA7; break;
case 0x0490: ch = 0xBD; break;
case 0x0491: ch = 0xAD; break;
case 0x2219: ch = 0x95; break;
case 0x221A: ch = 0x96; break;
case 0x2248: ch = 0x97; break;
case 0x2264: ch = 0x98; break;
case 0x2265: ch = 0x99; break;
case 0x2320: ch = 0x93; break;
case 0x2321: ch = 0x9B; break;
case 0x2500: ch = 0x80; break;
case 0x2502: ch = 0x81; break;
case 0x250C: ch = 0x82; break;
case 0x2510: ch = 0x83; break;
case 0x2514: ch = 0x84; break;
case 0x2518: ch = 0x85; break;
case 0x251C: ch = 0x86; break;
case 0x2524: ch = 0x87; break;
case 0x252C: ch = 0x88; break;
case 0x2534: ch = 0x89; break;
case 0x253C: ch = 0x8A; break;
case 0x2550: ch = 0xA0; break;
case 0x2551: ch = 0xA1; break;
case 0x2552: ch = 0xA2; break;
case 0x2554: ch = 0xA5; break;
case 0x2557:
case 0x2558:
case 0x2559:
case 0x255A:
case 0x255B:
ch -= 0x24AF;
break;
case 0x255D:
case 0x255E:
case 0x255F:
case 0x2560:
case 0x2561:
ch -= 0x24AF;
break;
case 0x2563: ch = 0xB5; break;
case 0x2566:
case 0x2567:
case 0x2568:
case 0x2569:
case 0x256A:
ch -= 0x24AE;
break;
case 0x256C: ch = 0xBE; break;
case 0x2580: ch = 0x8B; break;
case 0x2584: ch = 0x8C; break;
case 0x2588: ch = 0x8D; break;
case 0x258C: ch = 0x8E; break;
case 0x2590:
case 0x2591:
case 0x2592:
case 0x2593:
ch -= 0x2501;
break;
case 0x25A0: ch = 0x94; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP21866
public class ENCkoi8_u : CP21866
{
public ENCkoi8_u() : base() {}
}; // class ENCkoi8_u
}; // namespace I18N.Other
+333
View File
@@ -0,0 +1,333 @@
/*
* CP28594.cs - Baltic (ISO) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-914.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP28594 : ByteEncoding
{
public CP28594()
: base(28594, ToChars, "Baltic (ISO)",
"iso-8859-4", "iso-8859-4", "iso-8859-4",
true, true, true, true, 1257)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u0085', '\u0086', '\u0087', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u008D', '\u008E', '\u008F',
'\u0090', '\u0091', '\u0092', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0097', '\u0098', '\u0099', '\u009A', '\u009B',
'\u009C', '\u009D', '\u009E', '\u009F', '\u00A0', '\u0104',
'\u0138', '\u0156', '\u00A4', '\u0128', '\u013B', '\u00A7',
'\u00A8', '\u0160', '\u0112', '\u0122', '\u0166', '\u00AD',
'\u017D', '\u00AF', '\u00B0', '\u0105', '\u02DB', '\u0157',
'\u00B4', '\u0129', '\u013C', '\u02C7', '\u00B8', '\u0161',
'\u0113', '\u0123', '\u0167', '\u014A', '\u017E', '\u014B',
'\u0100', '\u00C1', '\u00C2', '\u00C3', '\u00C4', '\u00C5',
'\u00C6', '\u012E', '\u010C', '\u00C9', '\u0118', '\u00CB',
'\u0116', '\u00CD', '\u00CE', '\u012A', '\u0110', '\u0145',
'\u014C', '\u0136', '\u00D4', '\u00D5', '\u00D6', '\u00D7',
'\u00D8', '\u0172', '\u00DA', '\u00DB', '\u00DC', '\u0168',
'\u016A', '\u00DF', '\u0101', '\u00E1', '\u00E2', '\u00E3',
'\u00E4', '\u00E5', '\u00E6', '\u012F', '\u010D', '\u00E9',
'\u0119', '\u00EB', '\u0117', '\u00ED', '\u00EE', '\u012B',
'\u0111', '\u0146', '\u014D', '\u0137', '\u00F4', '\u00F5',
'\u00F6', '\u00F7', '\u00F8', '\u0173', '\u00FA', '\u00FB',
'\u00FC', '\u0169', '\u016B', '\u02D9',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A4:
case 0x00A7:
case 0x00A8:
case 0x00AD:
case 0x00AF:
case 0x00B0:
case 0x00B4:
case 0x00B8:
case 0x00C1:
case 0x00C2:
case 0x00C3:
case 0x00C4:
case 0x00C5:
case 0x00C6:
case 0x00C9:
case 0x00CB:
case 0x00CD:
case 0x00CE:
case 0x00D4:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E1:
case 0x00E2:
case 0x00E3:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E9:
case 0x00EB:
case 0x00ED:
case 0x00EE:
case 0x00F4:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00FA:
case 0x00FB:
case 0x00FC:
break;
case 0x0100: ch = 0xC0; break;
case 0x0101: ch = 0xE0; break;
case 0x0104: ch = 0xA1; break;
case 0x0105: ch = 0xB1; break;
case 0x010C: ch = 0xC8; break;
case 0x010D: ch = 0xE8; break;
case 0x0110: ch = 0xD0; break;
case 0x0111: ch = 0xF0; break;
case 0x0112: ch = 0xAA; break;
case 0x0113: ch = 0xBA; break;
case 0x0116: ch = 0xCC; break;
case 0x0117: ch = 0xEC; break;
case 0x0118: ch = 0xCA; break;
case 0x0119: ch = 0xEA; break;
case 0x0122: ch = 0xAB; break;
case 0x0123: ch = 0xBB; break;
case 0x0128: ch = 0xA5; break;
case 0x0129: ch = 0xB5; break;
case 0x012A: ch = 0xCF; break;
case 0x012B: ch = 0xEF; break;
case 0x012E: ch = 0xC7; break;
case 0x012F: ch = 0xE7; break;
case 0x0136: ch = 0xD3; break;
case 0x0137: ch = 0xF3; break;
case 0x0138: ch = 0xA2; break;
case 0x013B: ch = 0xA6; break;
case 0x013C: ch = 0xB6; break;
case 0x0145: ch = 0xD1; break;
case 0x0146: ch = 0xF1; break;
case 0x014A: ch = 0xBD; break;
case 0x014B: ch = 0xBF; break;
case 0x014C: ch = 0xD2; break;
case 0x014D: ch = 0xF2; break;
case 0x0156: ch = 0xA3; break;
case 0x0157: ch = 0xB3; break;
case 0x0160: ch = 0xA9; break;
case 0x0161: ch = 0xB9; break;
case 0x0166: ch = 0xAC; break;
case 0x0167: ch = 0xBC; break;
case 0x0168: ch = 0xDD; break;
case 0x0169: ch = 0xFD; break;
case 0x016A: ch = 0xDE; break;
case 0x016B: ch = 0xFE; break;
case 0x0172: ch = 0xD9; break;
case 0x0173: ch = 0xF9; break;
case 0x017D: ch = 0xAE; break;
case 0x017E: ch = 0xBE; break;
case 0x02C7: ch = 0xB7; break;
case 0x02D9: ch = 0xFF; break;
case 0x02DB: ch = 0xB2; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00A4:
case 0x00A7:
case 0x00A8:
case 0x00AD:
case 0x00AF:
case 0x00B0:
case 0x00B4:
case 0x00B8:
case 0x00C1:
case 0x00C2:
case 0x00C3:
case 0x00C4:
case 0x00C5:
case 0x00C6:
case 0x00C9:
case 0x00CB:
case 0x00CD:
case 0x00CE:
case 0x00D4:
case 0x00D5:
case 0x00D6:
case 0x00D7:
case 0x00D8:
case 0x00DA:
case 0x00DB:
case 0x00DC:
case 0x00DF:
case 0x00E1:
case 0x00E2:
case 0x00E3:
case 0x00E4:
case 0x00E5:
case 0x00E6:
case 0x00E9:
case 0x00EB:
case 0x00ED:
case 0x00EE:
case 0x00F4:
case 0x00F5:
case 0x00F6:
case 0x00F7:
case 0x00F8:
case 0x00FA:
case 0x00FB:
case 0x00FC:
break;
case 0x0100: ch = 0xC0; break;
case 0x0101: ch = 0xE0; break;
case 0x0104: ch = 0xA1; break;
case 0x0105: ch = 0xB1; break;
case 0x010C: ch = 0xC8; break;
case 0x010D: ch = 0xE8; break;
case 0x0110: ch = 0xD0; break;
case 0x0111: ch = 0xF0; break;
case 0x0112: ch = 0xAA; break;
case 0x0113: ch = 0xBA; break;
case 0x0116: ch = 0xCC; break;
case 0x0117: ch = 0xEC; break;
case 0x0118: ch = 0xCA; break;
case 0x0119: ch = 0xEA; break;
case 0x0122: ch = 0xAB; break;
case 0x0123: ch = 0xBB; break;
case 0x0128: ch = 0xA5; break;
case 0x0129: ch = 0xB5; break;
case 0x012A: ch = 0xCF; break;
case 0x012B: ch = 0xEF; break;
case 0x012E: ch = 0xC7; break;
case 0x012F: ch = 0xE7; break;
case 0x0136: ch = 0xD3; break;
case 0x0137: ch = 0xF3; break;
case 0x0138: ch = 0xA2; break;
case 0x013B: ch = 0xA6; break;
case 0x013C: ch = 0xB6; break;
case 0x0145: ch = 0xD1; break;
case 0x0146: ch = 0xF1; break;
case 0x014A: ch = 0xBD; break;
case 0x014B: ch = 0xBF; break;
case 0x014C: ch = 0xD2; break;
case 0x014D: ch = 0xF2; break;
case 0x0156: ch = 0xA3; break;
case 0x0157: ch = 0xB3; break;
case 0x0160: ch = 0xA9; break;
case 0x0161: ch = 0xB9; break;
case 0x0166: ch = 0xAC; break;
case 0x0167: ch = 0xBC; break;
case 0x0168: ch = 0xDD; break;
case 0x0169: ch = 0xFD; break;
case 0x016A: ch = 0xDE; break;
case 0x016B: ch = 0xFE; break;
case 0x0172: ch = 0xD9; break;
case 0x0173: ch = 0xF9; break;
case 0x017D: ch = 0xAE; break;
case 0x017E: ch = 0xBE; break;
case 0x02C7: ch = 0xB7; break;
case 0x02D9: ch = 0xFF; break;
case 0x02DB: ch = 0xB2; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP28594
public class ENCiso_8859_4 : CP28594
{
public ENCiso_8859_4() : base() {}
}; // class ENCiso_8859_4
}; // namespace I18N.Other
+345
View File
@@ -0,0 +1,345 @@
/*
* CP28595.cs - Cyrillic (ISO) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-915.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP28595 : ByteEncoding
{
public CP28595()
: base(28595, ToChars, "Cyrillic (ISO)",
"iso-8859-5", "iso-8859-5", "iso-8859-5",
true, true, true, true, 1251)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001A', '\u001B', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u007F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u0085', '\u0086', '\u0087', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u008D', '\u008E', '\u008F',
'\u0090', '\u0091', '\u0092', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0097', '\u0098', '\u0099', '\u009A', '\u009B',
'\u009C', '\u009D', '\u009E', '\u009F', '\u00A0', '\u0401',
'\u0402', '\u0403', '\u0404', '\u0405', '\u0406', '\u0407',
'\u0408', '\u0409', '\u040A', '\u040B', '\u040C', '\u00AD',
'\u040E', '\u040F', '\u0410', '\u0411', '\u0412', '\u0413',
'\u0414', '\u0415', '\u0416', '\u0417', '\u0418', '\u0419',
'\u041A', '\u041B', '\u041C', '\u041D', '\u041E', '\u041F',
'\u0420', '\u0421', '\u0422', '\u0423', '\u0424', '\u0425',
'\u0426', '\u0427', '\u0428', '\u0429', '\u042A', '\u042B',
'\u042C', '\u042D', '\u042E', '\u042F', '\u0430', '\u0431',
'\u0432', '\u0433', '\u0434', '\u0435', '\u0436', '\u0437',
'\u0438', '\u0439', '\u043A', '\u043B', '\u043C', '\u043D',
'\u043E', '\u043F', '\u0440', '\u0441', '\u0442', '\u0443',
'\u0444', '\u0445', '\u0446', '\u0447', '\u0448', '\u0449',
'\u044A', '\u044B', '\u044C', '\u044D', '\u044E', '\u044F',
'\u2116', '\u0451', '\u0452', '\u0453', '\u0454', '\u0455',
'\u0456', '\u0457', '\u0458', '\u0459', '\u045A', '\u045B',
'\u045C', '\u00A7', '\u045E', '\u045F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00AD:
break;
case 0x00A7: ch = 0xFD; break;
case 0x0401:
case 0x0402:
case 0x0403:
case 0x0404:
case 0x0405:
case 0x0406:
case 0x0407:
case 0x0408:
case 0x0409:
case 0x040A:
case 0x040B:
case 0x040C:
ch -= 0x0360;
break;
case 0x040E:
case 0x040F:
case 0x0410:
case 0x0411:
case 0x0412:
case 0x0413:
case 0x0414:
case 0x0415:
case 0x0416:
case 0x0417:
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
case 0x0424:
case 0x0425:
case 0x0426:
case 0x0427:
case 0x0428:
case 0x0429:
case 0x042A:
case 0x042B:
case 0x042C:
case 0x042D:
case 0x042E:
case 0x042F:
case 0x0430:
case 0x0431:
case 0x0432:
case 0x0433:
case 0x0434:
case 0x0435:
case 0x0436:
case 0x0437:
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
case 0x0444:
case 0x0445:
case 0x0446:
case 0x0447:
case 0x0448:
case 0x0449:
case 0x044A:
case 0x044B:
case 0x044C:
case 0x044D:
case 0x044E:
case 0x044F:
ch -= 0x0360;
break;
case 0x0451:
case 0x0452:
case 0x0453:
case 0x0454:
case 0x0455:
case 0x0456:
case 0x0457:
case 0x0458:
case 0x0459:
case 0x045A:
case 0x045B:
case 0x045C:
ch -= 0x0360;
break;
case 0x045E: ch = 0xFE; break;
case 0x045F: ch = 0xFF; break;
case 0x2116: ch = 0xF0; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 161) switch(ch)
{
case 0x00AD:
break;
case 0x00A7: ch = 0xFD; break;
case 0x0401:
case 0x0402:
case 0x0403:
case 0x0404:
case 0x0405:
case 0x0406:
case 0x0407:
case 0x0408:
case 0x0409:
case 0x040A:
case 0x040B:
case 0x040C:
ch -= 0x0360;
break;
case 0x040E:
case 0x040F:
case 0x0410:
case 0x0411:
case 0x0412:
case 0x0413:
case 0x0414:
case 0x0415:
case 0x0416:
case 0x0417:
case 0x0418:
case 0x0419:
case 0x041A:
case 0x041B:
case 0x041C:
case 0x041D:
case 0x041E:
case 0x041F:
case 0x0420:
case 0x0421:
case 0x0422:
case 0x0423:
case 0x0424:
case 0x0425:
case 0x0426:
case 0x0427:
case 0x0428:
case 0x0429:
case 0x042A:
case 0x042B:
case 0x042C:
case 0x042D:
case 0x042E:
case 0x042F:
case 0x0430:
case 0x0431:
case 0x0432:
case 0x0433:
case 0x0434:
case 0x0435:
case 0x0436:
case 0x0437:
case 0x0438:
case 0x0439:
case 0x043A:
case 0x043B:
case 0x043C:
case 0x043D:
case 0x043E:
case 0x043F:
case 0x0440:
case 0x0441:
case 0x0442:
case 0x0443:
case 0x0444:
case 0x0445:
case 0x0446:
case 0x0447:
case 0x0448:
case 0x0449:
case 0x044A:
case 0x044B:
case 0x044C:
case 0x044D:
case 0x044E:
case 0x044F:
ch -= 0x0360;
break;
case 0x0451:
case 0x0452:
case 0x0453:
case 0x0454:
case 0x0455:
case 0x0456:
case 0x0457:
case 0x0458:
case 0x0459:
case 0x045A:
case 0x045B:
case 0x045C:
ch -= 0x0360;
break;
case 0x045E: ch = 0xFE; break;
case 0x045F: ch = 0xFF; break;
case 0x2116: ch = 0xF0; break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP28595
public class ENCiso_8859_5 : CP28595
{
public ENCiso_8859_5() : base() {}
}; // class ENCiso_8859_5
}; // namespace I18N.Other
+496
View File
@@ -0,0 +1,496 @@
/*
* CP57002.cs - ISCII code pages 57002-57011.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
namespace I18N.Other
{
using System;
using System.Text;
using I18N.Common;
// This class provides an abstract base for the ISCII encodings,
// which all have a similar pattern. Code points 0x00-0x7F are
// the standard ASCII character set, and code points 0x80-0xFF
// are a shifted version of the Unicode character set, starting
// at a fixed offset.
public abstract class ISCIIEncoding : Encoding
{
// Internal state.
protected int shift;
protected String encodingName;
protected String webName;
// Constructor.
protected ISCIIEncoding(int codePage, int shift,
String encodingName, String webName)
: base(codePage)
{
this.shift = shift;
this.encodingName = encodingName;
this.webName = webName;
}
// Get the number of bytes needed to encode a character buffer.
public override int GetByteCount(char[] chars, int index, int count)
{
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(index < 0 || index > chars.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (chars.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
return count;
}
// Convenience wrappers for "GetByteCount".
public override int GetByteCount(String s)
{
if(s == null)
{
throw new ArgumentNullException("s");
}
return s.Length;
}
// Get the bytes that result from encoding a character buffer.
public override int GetBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(charIndex < 0 || charIndex > chars.Length)
{
throw new ArgumentOutOfRangeException
("charIndex", Strings.GetString("ArgRange_Array"));
}
if(charCount < 0 || charCount > (chars.Length - charIndex))
{
throw new ArgumentOutOfRangeException
("charCount", Strings.GetString("ArgRange_Array"));
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
if((bytes.Length - byteIndex) < charCount)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"), "bytes");
}
// Convert the characters into bytes.
char ch;
int posn = byteIndex;
char first = (char)shift;
char last = (char)(shift + 0x7F);
while(charCount-- > 0)
{
ch = chars[charIndex++];
if(ch < (char)0x0080)
{
// Regular ASCII subset.
bytes[posn++] = (byte)ch;
}
else if(ch >= first && ch <= last)
{
// ISCII range that we need to shift.
bytes[posn++] = (byte)(ch - first + 0x80);
}
else if(ch >= '\uFF01' && ch <= '\uFF5E')
{
// ASCII full-width characters.
bytes[posn++] = (byte)(ch - 0xFEE0);
}
else
{
bytes[posn++] = (byte)'?';
}
}
// Return the final length of the output.
return posn - byteIndex;
}
// Convenience wrappers for "GetBytes".
public override int GetBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
// Validate the parameters.
if(s == null)
{
throw new ArgumentNullException("s");
}
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(charIndex < 0 || charIndex > s.Length)
{
throw new ArgumentOutOfRangeException
("charIndex",
Strings.GetString("ArgRange_StringIndex"));
}
if(charCount < 0 || charCount > (s.Length - charIndex))
{
throw new ArgumentOutOfRangeException
("charCount",
Strings.GetString("ArgRange_StringRange"));
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex",
Strings.GetString("ArgRange_Array"));
}
if((bytes.Length - byteIndex) < charCount)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"), "bytes");
}
// Convert the characters into bytes.
char ch;
int posn = byteIndex;
char first = (char)shift;
char last = (char)(shift + 0x7F);
while(charCount-- > 0)
{
ch = s[charIndex++];
if(ch < (char)0x0080)
{
// Regular ASCII subset.
bytes[posn++] = (byte)ch;
}
else if(ch >= first && ch <= last)
{
// ISCII range that we need to shift.
bytes[posn++] = (byte)(ch - first + 0x80);
}
else if(ch >= '\uFF01' && ch <= '\uFF5E')
{
// ASCII full-width characters.
bytes[posn++] = (byte)(ch - 0xFEE0);
}
else
{
bytes[posn++] = (byte)'?';
}
}
// Return the final length of the output.
return posn - byteIndex;
}
// Get the number of characters needed to decode a byte buffer.
public override int GetCharCount(byte[] bytes, int index, int count)
{
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(index < 0 || index > bytes.Length)
{
throw new ArgumentOutOfRangeException
("index", Strings.GetString("ArgRange_Array"));
}
if(count < 0 || count > (bytes.Length - index))
{
throw new ArgumentOutOfRangeException
("count", Strings.GetString("ArgRange_Array"));
}
return count;
}
// Get the characters that result from decoding a byte buffer.
public override int GetChars(byte[] bytes, int byteIndex, int byteCount,
char[] chars, int charIndex)
{
// Validate the parameters.
if(bytes == null)
{
throw new ArgumentNullException("bytes");
}
if(chars == null)
{
throw new ArgumentNullException("chars");
}
if(byteIndex < 0 || byteIndex > bytes.Length)
{
throw new ArgumentOutOfRangeException
("byteIndex", Strings.GetString("ArgRange_Array"));
}
if(byteCount < 0 || byteCount > (bytes.Length - byteIndex))
{
throw new ArgumentOutOfRangeException
("byteCount", Strings.GetString("ArgRange_Array"));
}
if(charIndex < 0 || charIndex > chars.Length)
{
throw new ArgumentOutOfRangeException
("charIndex", Strings.GetString("ArgRange_Array"));
}
if((chars.Length - charIndex) < byteCount)
{
throw new ArgumentException
(Strings.GetString("Arg_InsufficientSpace"), "chars");
}
// Convert the bytes into characters.
int count = byteCount;
int byteval;
int shift = this.shift - 0x80;
while(count-- > 0)
{
byteval = (int)(bytes[byteIndex++]);
if(byteval < 0x80)
{
// Ordinary ASCII character.
chars[charIndex++] = (char)byteval;
}
else
{
// Shift the ISCII character into the Unicode page.
chars[charIndex++] = (char)(byteval + shift);
}
}
return byteCount;
}
// Get the maximum number of bytes needed to encode a
// specified number of characters.
public override int GetMaxByteCount(int charCount)
{
if(charCount < 0)
{
throw new ArgumentOutOfRangeException
("charCount",
Strings.GetString("ArgRange_NonNegative"));
}
return charCount;
}
// Get the maximum number of characters needed to decode a
// specified number of bytes.
public override int GetMaxCharCount(int byteCount)
{
if(byteCount < 0)
{
throw new ArgumentOutOfRangeException
("byteCount",
Strings.GetString("ArgRange_NonNegative"));
}
return byteCount;
}
#if !ECMA_COMPAT
// Get the mail body name for this encoding.
public override String BodyName
{
get
{
return webName;
}
}
// Get the human-readable name for this encoding.
public override String EncodingName
{
get
{
return encodingName;
}
}
// Get the mail agent header name for this encoding.
public override String HeaderName
{
get
{
return webName;
}
}
// Get the IANA-preferred Web name for this encoding.
public override String WebName
{
get
{
return webName;
}
}
#endif // !ECMA_COMPAT
}; // class ISCIIEncoding
// Define the ISCII code pages as subclasses of "ISCIIEncoding".
public class CP57002 : ISCIIEncoding
{
public CP57002() : base(57002, 0x0900, "ISCII Devanagari", "x-iscii-de") {}
}; // class CP57002
public class CP57003 : ISCIIEncoding
{
public CP57003() : base(57003, 0x0980, "ISCII Bengali", "x-iscii-be") {}
}; // class CP57003
public class CP57004 : ISCIIEncoding
{
public CP57004() : base(57004, 0x0B80, "ISCII Tamil", "x-iscii-ta") {}
}; // class CP57004
public class CP57005 : ISCIIEncoding
{
public CP57005() : base(57005, 0x0B80, "ISCII Telugu", "x-iscii-te") {}
}; // class CP57005
public class CP57006 : ISCIIEncoding
{
// Note: Unicode has a "Sinhala" page, but no "Assamese" page.
// Until I hear otherwise, I will assume that they are the same
// thing with different names - Rhys Weatherley, 16 April 2002.
public CP57006() : base(57006, 0x0D80, "ISCII Assamese", "x-iscii-as") {}
}; // class CP57006
public class CP57007 : ISCIIEncoding
{
public CP57007() : base(57007, 0x0B00, "ISCII Oriya", "x-iscii-or") {}
}; // class CP57007
public class CP57008 : ISCIIEncoding
{
public CP57008() : base(57008, 0x0C80, "ISCII Kannada", "x-iscii-ka") {}
}; // class CP57008
public class CP57009 : ISCIIEncoding
{
public CP57009() : base(57009, 0x0D00, "ISCII Malayalam", "x-iscii-ma") {}
}; // class CP57009
public class CP57010 : ISCIIEncoding
{
public CP57010() : base(57010, 0x0A80, "ISCII Gujarati", "x-iscii-gu") {}
}; // class CP57010
public class CP57011 : ISCIIEncoding
{
// Note: Unicode has a "Gurmukhi" page, but no "Punjabi" page.
// Other ISCII-related information on the Internet seems to
// indicate that they are the same. Until I hear otherwise,
// I will assume that they are the same thing with different
// names - Rhys Weatherley, 16 April 2002.
public CP57011() : base(57011, 0x0A00, "ISCII Punjabi", "x-iscii-pa") {}
}; // class CP57011
// Define the web encoding name aliases for the above code pages.
public class ENCx_iscii_de : CP57002
{
public ENCx_iscii_de() : base() {}
}; // class ENCx_iscii_de
public class ENCx_iscii_be : CP57003
{
public ENCx_iscii_be() : base() {}
}; // class ENCx_iscii_be
public class ENCx_iscii_ta : CP57004
{
public ENCx_iscii_ta() : base() {}
}; // class ENCx_iscii_ta
public class ENCx_iscii_te : CP57005
{
public ENCx_iscii_te() : base() {}
}; // class ENCx_iscii_te
public class ENCx_iscii_as : CP57006
{
public ENCx_iscii_as() : base() {}
}; // class ENCx_iscii_as
public class ENCx_iscii_or : CP57007
{
public ENCx_iscii_or() : base() {}
}; // class ENCx_iscii_or
public class ENCx_iscii_ka : CP57008
{
public ENCx_iscii_ka() : base() {}
}; // class ENCx_iscii_ka
public class ENCx_iscii_ma : CP57009
{
public ENCx_iscii_ma() : base() {}
}; // class ENCx_iscii_ma
public class ENCx_iscii_gu : CP57010
{
public ENCx_iscii_gu() : base() {}
}; // class ENCx_iscii_gu
public class ENCx_iscii_pa : CP57011
{
public ENCx_iscii_pa() : base() {}
}; // class ENCx_iscii_pa
}; // namespace I18N.Other
+537
View File
@@ -0,0 +1,537 @@
/*
* CP874.cs - Thai (Windows) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-874.ucm".
namespace I18N.Other
{
using System;
using I18N.Common;
public class CP874 : ByteEncoding
{
public CP874()
: base(874, ToChars, "Thai (Windows)",
"windows-874", "windows-874", "windows-874",
true, true, true, true, 874)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
'\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
'\u0018', '\u0019', '\u001C', '\u001B', '\u007F', '\u001D',
'\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
'\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
'\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
'\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
'\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
'\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
'\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
'\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
'\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
'\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
'\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
'\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
'\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
'\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
'\u007E', '\u001A', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u003F', '\u003F',
'\u003F', '\u003F', '\u003F', '\u003F', '\u0E48', '\u0E01',
'\u0E02', '\u0E03', '\u0E04', '\u0E05', '\u0E06', '\u0E07',
'\u0E08', '\u0E09', '\u0E0A', '\u0E0B', '\u0E0C', '\u0E0D',
'\u0E0E', '\u0E0F', '\u0E10', '\u0E11', '\u0E12', '\u0E13',
'\u0E14', '\u0E15', '\u0E16', '\u0E17', '\u0E18', '\u0E19',
'\u0E1A', '\u0E1B', '\u0E1C', '\u0E1D', '\u0E1E', '\u0E1F',
'\u0E20', '\u0E21', '\u0E22', '\u0E23', '\u0E24', '\u0E25',
'\u0E26', '\u0E27', '\u0E28', '\u0E29', '\u0E2A', '\u0E2B',
'\u0E2C', '\u0E2D', '\u0E2E', '\u0E2F', '\u0E30', '\u0E31',
'\u0E32', '\u0E33', '\u0E34', '\u0E35', '\u0E36', '\u0E37',
'\u0E38', '\u0E39', '\u0E3A', '\u0E49', '\u0E4A', '\u0E4B',
'\u0E4C', '\u0E3F', '\u0E40', '\u0E41', '\u0E42', '\u0E43',
'\u0E44', '\u0E45', '\u0E46', '\u0E47', '\u0E48', '\u0E49',
'\u0E4A', '\u0E4B', '\u0E4C', '\u0E4D', '\u0E4E', '\u0E4F',
'\u0E50', '\u0E51', '\u0E52', '\u0E53', '\u0E54', '\u0E55',
'\u0E56', '\u0E57', '\u0E58', '\u0E59', '\u0E5A', '\u0E5B',
'\u00A2', '\u00AC', '\u00A6', '\u00A0',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 26) switch(ch)
{
case 0x001B:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x0020:
case 0x0021:
case 0x0022:
case 0x0023:
case 0x0024:
case 0x0025:
case 0x0026:
case 0x0027:
case 0x0028:
case 0x0029:
case 0x002A:
case 0x002B:
case 0x002C:
case 0x002D:
case 0x002E:
case 0x002F:
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
case 0x003A:
case 0x003B:
case 0x003C:
case 0x003D:
case 0x003E:
case 0x003F:
case 0x0040:
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
case 0x005B:
case 0x005C:
case 0x005D:
case 0x005E:
case 0x005F:
case 0x0060:
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
case 0x007B:
case 0x007C:
case 0x007D:
case 0x007E:
break;
case 0x001A: ch = 0x7F; break;
case 0x001C: ch = 0x1A; break;
case 0x007F: ch = 0x1C; break;
case 0x00A0: ch = 0xFF; break;
case 0x00A2: ch = 0xFC; break;
case 0x00A6: ch = 0xFE; break;
case 0x00AC: ch = 0xFD; break;
case 0x0E01:
case 0x0E02:
case 0x0E03:
case 0x0E04:
case 0x0E05:
case 0x0E06:
case 0x0E07:
case 0x0E08:
case 0x0E09:
case 0x0E0A:
case 0x0E0B:
case 0x0E0C:
case 0x0E0D:
case 0x0E0E:
case 0x0E0F:
case 0x0E10:
case 0x0E11:
case 0x0E12:
case 0x0E13:
case 0x0E14:
case 0x0E15:
case 0x0E16:
case 0x0E17:
case 0x0E18:
case 0x0E19:
case 0x0E1A:
case 0x0E1B:
case 0x0E1C:
case 0x0E1D:
case 0x0E1E:
case 0x0E1F:
case 0x0E20:
case 0x0E21:
case 0x0E22:
case 0x0E23:
case 0x0E24:
case 0x0E25:
case 0x0E26:
case 0x0E27:
case 0x0E28:
case 0x0E29:
case 0x0E2A:
case 0x0E2B:
case 0x0E2C:
case 0x0E2D:
case 0x0E2E:
case 0x0E2F:
case 0x0E30:
case 0x0E31:
case 0x0E32:
case 0x0E33:
case 0x0E34:
case 0x0E35:
case 0x0E36:
case 0x0E37:
case 0x0E38:
case 0x0E39:
case 0x0E3A:
ch -= 0x0D60;
break;
case 0x0E3F:
case 0x0E40:
case 0x0E41:
case 0x0E42:
case 0x0E43:
case 0x0E44:
case 0x0E45:
case 0x0E46:
case 0x0E47:
case 0x0E48:
case 0x0E49:
case 0x0E4A:
case 0x0E4B:
case 0x0E4C:
case 0x0E4D:
case 0x0E4E:
case 0x0E4F:
case 0x0E50:
case 0x0E51:
case 0x0E52:
case 0x0E53:
case 0x0E54:
case 0x0E55:
case 0x0E56:
case 0x0E57:
case 0x0E58:
case 0x0E59:
case 0x0E5A:
case 0x0E5B:
ch -= 0x0D60;
break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 26) switch(ch)
{
case 0x001B:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x0020:
case 0x0021:
case 0x0022:
case 0x0023:
case 0x0024:
case 0x0025:
case 0x0026:
case 0x0027:
case 0x0028:
case 0x0029:
case 0x002A:
case 0x002B:
case 0x002C:
case 0x002D:
case 0x002E:
case 0x002F:
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
case 0x003A:
case 0x003B:
case 0x003C:
case 0x003D:
case 0x003E:
case 0x003F:
case 0x0040:
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
case 0x005B:
case 0x005C:
case 0x005D:
case 0x005E:
case 0x005F:
case 0x0060:
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
case 0x007B:
case 0x007C:
case 0x007D:
case 0x007E:
break;
case 0x001A: ch = 0x7F; break;
case 0x001C: ch = 0x1A; break;
case 0x007F: ch = 0x1C; break;
case 0x00A0: ch = 0xFF; break;
case 0x00A2: ch = 0xFC; break;
case 0x00A6: ch = 0xFE; break;
case 0x00AC: ch = 0xFD; break;
case 0x0E01:
case 0x0E02:
case 0x0E03:
case 0x0E04:
case 0x0E05:
case 0x0E06:
case 0x0E07:
case 0x0E08:
case 0x0E09:
case 0x0E0A:
case 0x0E0B:
case 0x0E0C:
case 0x0E0D:
case 0x0E0E:
case 0x0E0F:
case 0x0E10:
case 0x0E11:
case 0x0E12:
case 0x0E13:
case 0x0E14:
case 0x0E15:
case 0x0E16:
case 0x0E17:
case 0x0E18:
case 0x0E19:
case 0x0E1A:
case 0x0E1B:
case 0x0E1C:
case 0x0E1D:
case 0x0E1E:
case 0x0E1F:
case 0x0E20:
case 0x0E21:
case 0x0E22:
case 0x0E23:
case 0x0E24:
case 0x0E25:
case 0x0E26:
case 0x0E27:
case 0x0E28:
case 0x0E29:
case 0x0E2A:
case 0x0E2B:
case 0x0E2C:
case 0x0E2D:
case 0x0E2E:
case 0x0E2F:
case 0x0E30:
case 0x0E31:
case 0x0E32:
case 0x0E33:
case 0x0E34:
case 0x0E35:
case 0x0E36:
case 0x0E37:
case 0x0E38:
case 0x0E39:
case 0x0E3A:
ch -= 0x0D60;
break;
case 0x0E3F:
case 0x0E40:
case 0x0E41:
case 0x0E42:
case 0x0E43:
case 0x0E44:
case 0x0E45:
case 0x0E46:
case 0x0E47:
case 0x0E48:
case 0x0E49:
case 0x0E4A:
case 0x0E4B:
case 0x0E4C:
case 0x0E4D:
case 0x0E4E:
case 0x0E4F:
case 0x0E50:
case 0x0E51:
case 0x0E52:
case 0x0E53:
case 0x0E54:
case 0x0E55:
case 0x0E56:
case 0x0E57:
case 0x0E58:
case 0x0E59:
case 0x0E5A:
case 0x0E5B:
ch -= 0x0D60;
break;
default:
{
if(ch >= 0xFF01 && ch <= 0xFF5E)
ch -= 0xFEE0;
else
ch = 0x3F;
}
break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP874
public class ENCwindows_874 : CP874
{
public ENCwindows_874() : base() {}
}; // class ENCwindows_874
}; // namespace I18N.Other
+377
View File
@@ -0,0 +1,377 @@
# *******************************************************************************
# *
# * Copyright (C) 1998-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 08:50:44 2000
#
# File created by dtcocm version 3.00
# from source files 44B014E3.RPMAP100 and 14E344B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-5347"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-5347
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0098> \x98 |0
<U00A0> \xA0 |0
<U00A4> \xA4 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A9> \xA9 |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B7> \xB7 |0
<U00BB> \xBB |0
<U0401> \xA8 |0
<U0402> \x80 |0
<U0403> \x81 |0
<U0404> \xAA |0
<U0405> \xBD |0
<U0406> \xB2 |0
<U0407> \xAF |0
<U0408> \xA3 |0
<U0409> \x8A |0
<U040A> \x8C |0
<U040B> \x8E |0
<U040C> \x8D |0
<U040E> \xA1 |0
<U040F> \x8F |0
<U0410> \xC0 |0
<U0411> \xC1 |0
<U0412> \xC2 |0
<U0413> \xC3 |0
<U0414> \xC4 |0
<U0415> \xC5 |0
<U0416> \xC6 |0
<U0417> \xC7 |0
<U0418> \xC8 |0
<U0419> \xC9 |0
<U041A> \xCA |0
<U041B> \xCB |0
<U041C> \xCC |0
<U041D> \xCD |0
<U041E> \xCE |0
<U041F> \xCF |0
<U0420> \xD0 |0
<U0421> \xD1 |0
<U0422> \xD2 |0
<U0423> \xD3 |0
<U0424> \xD4 |0
<U0425> \xD5 |0
<U0426> \xD6 |0
<U0427> \xD7 |0
<U0428> \xD8 |0
<U0429> \xD9 |0
<U042A> \xDA |0
<U042B> \xDB |0
<U042C> \xDC |0
<U042D> \xDD |0
<U042E> \xDE |0
<U042F> \xDF |0
<U0430> \xE0 |0
<U0431> \xE1 |0
<U0432> \xE2 |0
<U0433> \xE3 |0
<U0434> \xE4 |0
<U0435> \xE5 |0
<U0436> \xE6 |0
<U0437> \xE7 |0
<U0438> \xE8 |0
<U0439> \xE9 |0
<U043A> \xEA |0
<U043B> \xEB |0
<U043C> \xEC |0
<U043D> \xED |0
<U043E> \xEE |0
<U043F> \xEF |0
<U0440> \xF0 |0
<U0441> \xF1 |0
<U0442> \xF2 |0
<U0443> \xF3 |0
<U0444> \xF4 |0
<U0445> \xF5 |0
<U0446> \xF6 |0
<U0447> \xF7 |0
<U0448> \xF8 |0
<U0449> \xF9 |0
<U044A> \xFA |0
<U044B> \xFB |0
<U044C> \xFC |0
<U044D> \xFD |0
<U044E> \xFE |0
<U044F> \xFF |0
<U0451> \xB8 |0
<U0452> \x90 |0
<U0453> \x83 |0
<U0454> \xBA |0
<U0455> \xBE |0
<U0456> \xB3 |0
<U0457> \xBF |0
<U0458> \xBC |0
<U0459> \x9A |0
<U045A> \x9C |0
<U045B> \x9E |0
<U045C> \x9D |0
<U045E> \xA2 |0
<U045F> \x9F |0
<U0490> \xA5 |0
<U0491> \xB4 |0
<U2013> \x96 |0
<U2014> \x97 |0
<U2018> \x91 |0
<U2019> \x92 |0
<U201A> \x82 |0
<U201C> \x93 |0
<U201D> \x94 |0
<U201E> \x84 |0
<U2020> \x86 |0
<U2021> \x87 |0
<U2022> \x95 |0
<U2026> \x85 |0
<U2030> \x89 |0
<U2039> \x8B |0
<U203A> \x9B |0
<U20AC> \x88 |0
<U2116> \xB9 |0
<U2122> \x99 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+377
View File
@@ -0,0 +1,377 @@
# *******************************************************************************
# *
# * Copyright (C) 1998-2001, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 08:50:45 2000
#
# File created by dtcocm version 3.00
# from source files 44B014E9.RPMAP100 and 14E944B0.TPMAP100
#
# Patched for jitterbug 792
#
# Table Version : 1.01
#
<code_set_name> "IBM-5353"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-5353
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0081> \x81 |0
<U0083> \x83 |0
<U0088> \x88 |0
<U008A> \x8A |0
<U008C> \x8C |0
<U0090> \x90 |0
<U0098> \x98 |0
<U009A> \x9A |0
<U009C> \x9C |0
<U009F> \x9F |0
<U00A0> \xA0 |0
<U00A2> \xA2 |0
<U00A3> \xA3 |0
<U00A4> \xA4 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A8> \x8D |0
<U00A9> \xA9 |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00AF> \x9D |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B2> \xB2 |0
<U00B3> \xB3 |0
<U00B4> \xB4 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B7> \xB7 |0
<U00B8> \x8F |0
<U00B9> \xB9 |0
<U00BB> \xBB |0
<U00BC> \xBC |0
<U00BD> \xBD |0
<U00BE> \xBE |0
<U00C4> \xC4 |0
<U00C5> \xC5 |0
<U00C6> \xAF |0
<U00C9> \xC9 |0
<U00D3> \xD3 |0
<U00D5> \xD5 |0
<U00D6> \xD6 |0
<U00D7> \xD7 |0
<U00D8> \xA8 |0
<U00DC> \xDC |0
<U00DF> \xDF |0
<U00E4> \xE4 |0
<U00E5> \xE5 |0
<U00E6> \xBF |0
<U00E9> \xE9 |0
<U00F3> \xF3 |0
<U00F5> \xF5 |0
<U00F6> \xF6 |0
<U00F7> \xF7 |0
<U00F8> \xB8 |0
<U00FC> \xFC |0
<U0100> \xC2 |0
<U0101> \xE2 |0
<U0104> \xC0 |0
<U0105> \xE0 |0
<U0106> \xC3 |0
<U0107> \xE3 |0
<U010C> \xC8 |0
<U010D> \xE8 |0
<U0112> \xC7 |0
<U0113> \xE7 |0
<U0116> \xCB |0
<U0117> \xEB |0
<U0118> \xC6 |0
<U0119> \xE6 |0
<U0122> \xCC |0
<U0123> \xEC |0
<U012A> \xCE |0
<U012B> \xEE |0
<U012E> \xC1 |0
<U012F> \xE1 |0
<U0136> \xCD |0
<U0137> \xED |0
<U013B> \xCF |0
<U013C> \xEF |0
<U0141> \xD9 |0
<U0142> \xF9 |0
<U0143> \xD1 |0
<U0144> \xF1 |0
<U0145> \xD2 |0
<U0146> \xF2 |0
<U014C> \xD4 |0
<U014D> \xF4 |0
<U0156> \xAA |0
<U0157> \xBA |0
<U015A> \xDA |0
<U015B> \xFA |0
<U0160> \xD0 |0
<U0161> \xF0 |0
<U016A> \xDB |0
<U016B> \xFB |0
<U0172> \xD8 |0
<U0173> \xF8 |0
<U0179> \xCA |0
<U017A> \xEA |0
<U017B> \xDD |0
<U017C> \xFD |0
<U017D> \xDE |0
<U017E> \xFE |0
<U02C7> \x8E |0
<U02D9> \xFF |0
<U02DB> \x9E |0
<U2013> \x96 |0
<U2014> \x97 |0
<U2018> \x91 |0
<U2019> \x92 |0
<U201A> \x82 |0
<U201C> \x93 |0
<U201D> \x94 |0
<U201E> \x84 |0
<U2020> \x86 |0
<U2021> \x87 |0
<U2022> \x95 |0
<U2026> \x85 |0
<U2030> \x89 |0
<U2039> \x8B |0
<U203A> \x9B |0
<U20AC> \x80 |0
<U2122> \x99 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+377
View File
@@ -0,0 +1,377 @@
# *******************************************************************************
# *
# * Copyright (C) 1998-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 08:50:45 2000
#
# File created by dtcocm version 3.00
# from source files 44B014EA.RPMAP100 and 14EA44B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-5354"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-5354
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0081> \x81 |0
<U008A> \x8A |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U009A> \x9A |0
<U009D> \x9D |0
<U009E> \x9E |0
<U00A0> \xA0 |0
<U00A1> \xA1 |0
<U00A2> \xA2 |0
<U00A3> \xA3 |0
<U00A4> \xA4 |0
<U00A5> \xA5 |0
<U00A6> \xA6 |0
<U00A7> \xA7 |0
<U00A8> \xA8 |0
<U00A9> \xA9 |0
<U00AA> \xAA |0
<U00AB> \xAB |0
<U00AC> \xAC |0
<U00AD> \xAD |0
<U00AE> \xAE |0
<U00AF> \xAF |0
<U00B0> \xB0 |0
<U00B1> \xB1 |0
<U00B2> \xB2 |0
<U00B3> \xB3 |0
<U00B4> \xB4 |0
<U00B5> \xB5 |0
<U00B6> \xB6 |0
<U00B7> \xB7 |0
<U00B8> \xB8 |0
<U00B9> \xB9 |0
<U00BA> \xBA |0
<U00BB> \xBB |0
<U00BC> \xBC |0
<U00BD> \xBD |0
<U00BE> \xBE |0
<U00BF> \xBF |0
<U00C0> \xC0 |0
<U00C1> \xC1 |0
<U00C2> \xC2 |0
<U00C4> \xC4 |0
<U00C5> \xC5 |0
<U00C6> \xC6 |0
<U00C7> \xC7 |0
<U00C8> \xC8 |0
<U00C9> \xC9 |0
<U00CA> \xCA |0
<U00CB> \xCB |0
<U00CD> \xCD |0
<U00CE> \xCE |0
<U00CF> \xCF |0
<U00D1> \xD1 |0
<U00D3> \xD3 |0
<U00D4> \xD4 |0
<U00D6> \xD6 |0
<U00D7> \xD7 |0
<U00D8> \xD8 |0
<U00D9> \xD9 |0
<U00DA> \xDA |0
<U00DB> \xDB |0
<U00DC> \xDC |0
<U00DF> \xDF |0
<U00E0> \xE0 |0
<U00E1> \xE1 |0
<U00E2> \xE2 |0
<U00E4> \xE4 |0
<U00E5> \xE5 |0
<U00E6> \xE6 |0
<U00E7> \xE7 |0
<U00E8> \xE8 |0
<U00E9> \xE9 |0
<U00EA> \xEA |0
<U00EB> \xEB |0
<U00ED> \xED |0
<U00EE> \xEE |0
<U00EF> \xEF |0
<U00F1> \xF1 |0
<U00F3> \xF3 |0
<U00F4> \xF4 |0
<U00F6> \xF6 |0
<U00F7> \xF7 |0
<U00F8> \xF8 |0
<U00F9> \xF9 |0
<U00FA> \xFA |0
<U00FB> \xFB |0
<U00FC> \xFC |0
<U00FF> \xFF |0
<U0102> \xC3 |0
<U0103> \xE3 |0
<U0110> \xD0 |0
<U0111> \xF0 |0
<U0152> \x8C |0
<U0153> \x9C |0
<U0178> \x9F |0
<U0192> \x83 |0
<U01A0> \xD5 |0
<U01A1> \xF5 |0
<U01AF> \xDD |0
<U01B0> \xFD |0
<U02C6> \x88 |0
<U02DC> \x98 |0
<U0300> \xCC |0
<U0301> \xEC |0
<U0303> \xDE |0
<U0309> \xD2 |0
<U0323> \xF2 |0
<U2013> \x96 |0
<U2014> \x97 |0
<U2018> \x91 |0
<U2019> \x92 |0
<U201A> \x82 |0
<U201C> \x93 |0
<U201D> \x94 |0
<U201E> \x84 |0
<U2020> \x86 |0
<U2021> \x87 |0
<U2022> \x95 |0
<U2026> \x85 |0
<U2030> \x89 |0
<U2039> \x8B |0
<U203A> \x9B |0
<U20AB> \xFE |0
<U20AC> \x80 |0
<U2122> \x99 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+345
View File
@@ -0,0 +1,345 @@
# *******************************************************************************
# *
# * Copyright (C) 1995-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 09:28:03 2000
#
# File created by dtcocm version 3.00
# from source files 34B0036A.RPMAP100 and 036A34B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-874"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x7F
#
CHARMAP
#
#
#ISO 10646 IBM-874
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x7F |0
<U001B> \x1B |0
<U001C> \x1A |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x1C |0
<U00A0> \xFF |0
<U00A2> \xFC |0
<U00A6> \xFE |0
<U00AC> \xFD |0
<U0E01> \xA1 |0
<U0E02> \xA2 |0
<U0E03> \xA3 |0
<U0E04> \xA4 |0
<U0E05> \xA5 |0
<U0E06> \xA6 |0
<U0E07> \xA7 |0
<U0E08> \xA8 |0
<U0E09> \xA9 |0
<U0E0A> \xAA |0
<U0E0B> \xAB |0
<U0E0C> \xAC |0
<U0E0D> \xAD |0
<U0E0E> \xAE |0
<U0E0F> \xAF |0
<U0E10> \xB0 |0
<U0E11> \xB1 |0
<U0E12> \xB2 |0
<U0E13> \xB3 |0
<U0E14> \xB4 |0
<U0E15> \xB5 |0
<U0E16> \xB6 |0
<U0E17> \xB7 |0
<U0E18> \xB8 |0
<U0E19> \xB9 |0
<U0E1A> \xBA |0
<U0E1B> \xBB |0
<U0E1C> \xBC |0
<U0E1D> \xBD |0
<U0E1E> \xBE |0
<U0E1F> \xBF |0
<U0E20> \xC0 |0
<U0E21> \xC1 |0
<U0E22> \xC2 |0
<U0E23> \xC3 |0
<U0E24> \xC4 |0
<U0E25> \xC5 |0
<U0E26> \xC6 |0
<U0E27> \xC7 |0
<U0E28> \xC8 |0
<U0E29> \xC9 |0
<U0E2A> \xCA |0
<U0E2B> \xCB |0
<U0E2C> \xCC |0
<U0E2D> \xCD |0
<U0E2E> \xCE |0
<U0E2F> \xCF |0
<U0E30> \xD0 |0
<U0E31> \xD1 |0
<U0E32> \xD2 |0
<U0E33> \xD3 |0
<U0E34> \xD4 |0
<U0E35> \xD5 |0
<U0E36> \xD6 |0
<U0E37> \xD7 |0
<U0E38> \xD8 |0
<U0E39> \xD9 |0
<U0E3A> \xDA |0
<U0E3F> \xDF |0
<U0E40> \xE0 |0
<U0E41> \xE1 |0
<U0E42> \xE2 |0
<U0E43> \xE3 |0
<U0E44> \xE4 |0
<U0E45> \xE5 |0
<U0E46> \xE6 |0
<U0E47> \xE7 |0
<U0E48> \xA0 |3
<U0E48> \xE8 |0
<U0E49> \xDB |3
<U0E49> \xE9 |0
<U0E4A> \xDC |3
<U0E4A> \xEA |0
<U0E4B> \xDD |3
<U0E4B> \xEB |0
<U0E4C> \xDE |3
<U0E4C> \xEC |0
<U0E4D> \xED |0
<U0E4E> \xEE |0
<U0E4F> \xEF |0
<U0E50> \xF0 |0
<U0E51> \xF1 |0
<U0E52> \xF2 |0
<U0E53> \xF3 |0
<U0E54> \xF4 |0
<U0E55> \xF5 |0
<U0E56> \xF6 |0
<U0E57> \xF7 |0
<U0E58> \xF8 |0
<U0E59> \xF9 |0
<U0E5A> \xFA |0
<U0E5B> \xFB |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+379
View File
@@ -0,0 +1,379 @@
# *******************************************************************************
# *
# * Copyright (C) 1995-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 09:28:03 2000
#
# File created by dtcocm version 3.00
# from source files 34B0036E.RPMAP100 and 036E34B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-878"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-878
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U00A0> \x9A |0
<U00A9> \xBF |0
<U00B0> \x9C |0
<U00B2> \x9D |0
<U00B7> \x9E |0
<U00F7> \x9F |0
<U0401> \xB3 |0
<U0410> \xE1 |0
<U0411> \xE2 |0
<U0412> \xF7 |0
<U0413> \xE7 |0
<U0414> \xE4 |0
<U0415> \xE5 |0
<U0416> \xF6 |0
<U0417> \xFA |0
<U0418> \xE9 |0
<U0419> \xEA |0
<U041A> \xEB |0
<U041B> \xEC |0
<U041C> \xED |0
<U041D> \xEE |0
<U041E> \xEF |0
<U041F> \xF0 |0
<U0420> \xF2 |0
<U0421> \xF3 |0
<U0422> \xF4 |0
<U0423> \xF5 |0
<U0424> \xE6 |0
<U0425> \xE8 |0
<U0426> \xE3 |0
<U0427> \xFE |0
<U0428> \xFB |0
<U0429> \xFD |0
<U042A> \xFF |0
<U042B> \xF9 |0
<U042C> \xF8 |0
<U042D> \xFC |0
<U042E> \xE0 |0
<U042F> \xF1 |0
<U0430> \xC1 |0
<U0431> \xC2 |0
<U0432> \xD7 |0
<U0433> \xC7 |0
<U0434> \xC4 |0
<U0435> \xC5 |0
<U0436> \xD6 |0
<U0437> \xDA |0
<U0438> \xC9 |0
<U0439> \xCA |0
<U043A> \xCB |0
<U043B> \xCC |0
<U043C> \xCD |0
<U043D> \xCE |0
<U043E> \xCF |0
<U043F> \xD0 |0
<U0440> \xD2 |0
<U0441> \xD3 |0
<U0442> \xD4 |0
<U0443> \xD5 |0
<U0444> \xC6 |0
<U0445> \xC8 |0
<U0446> \xC3 |0
<U0447> \xDE |0
<U0448> \xDB |0
<U0449> \xDD |0
<U044A> \xDF |0
<U044B> \xD9 |0
<U044C> \xD8 |0
<U044D> \xDC |0
<U044E> \xC0 |0
<U044F> \xD1 |0
<U0451> \xA3 |0
<U2219> \x95 |0
<U221A> \x96 |0
<U2248> \x97 |0
<U2264> \x98 |0
<U2265> \x99 |0
<U2320> \x93 |0
<U2321> \x9B |0
<U2500> \x80 |0
<U2502> \x81 |0
<U250C> \x82 |0
<U2510> \x83 |0
<U2514> \x84 |0
<U2518> \x85 |0
<U251C> \x86 |0
<U2524> \x87 |0
<U252C> \x88 |0
<U2534> \x89 |0
<U253C> \x8A |0
<U2550> \xA0 |0
<U2551> \xA1 |0
<U2552> \xA2 |0
<U2553> \xA4 |0
<U2554> \xA5 |0
<U2555> \xA6 |0
<U2556> \xA7 |0
<U2557> \xA8 |0
<U2558> \xA9 |0
<U2559> \xAA |0
<U255A> \xAB |0
<U255B> \xAC |0
<U255C> \xAD |0
<U255D> \xAE |0
<U255E> \xAF |0
<U255F> \xB0 |0
<U2560> \xB1 |0
<U2561> \xB2 |0
<U2562> \xB4 |0
<U2563> \xB5 |0
<U2564> \xB6 |0
<U2565> \xB7 |0
<U2566> \xB8 |0
<U2567> \xB9 |0
<U2568> \xBA |0
<U2569> \xBB |0
<U256A> \xBC |0
<U256B> \xBD |0
<U256C> \xBE |0
<U2580> \x8B |0
<U2584> \x8C |0
<U2588> \x8D |0
<U258C> \x8E |0
<U2590> \x8F |0
<U2591> \x90 |0
<U2592> \x91 |0
<U2593> \x92 |0
<U25A0> \x94 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
<UFFE8> \x81 |1
<UFFED> \x94 |1
END CHARMAP
+377
View File
@@ -0,0 +1,377 @@
# *******************************************************************************
# *
# * Copyright (C) 1995-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 09:28:04 2000
#
# File created by dtcocm version 3.00
# from source files 34B00392.RPMAP100 and 039234B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-914"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-914
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0080> \x80 |0
<U0081> \x81 |0
<U0082> \x82 |0
<U0083> \x83 |0
<U0084> \x84 |0
<U0085> \x85 |0
<U0086> \x86 |0
<U0087> \x87 |0
<U0088> \x88 |0
<U0089> \x89 |0
<U008A> \x8A |0
<U008B> \x8B |0
<U008C> \x8C |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U0091> \x91 |0
<U0092> \x92 |0
<U0093> \x93 |0
<U0094> \x94 |0
<U0095> \x95 |0
<U0096> \x96 |0
<U0097> \x97 |0
<U0098> \x98 |0
<U0099> \x99 |0
<U009A> \x9A |0
<U009B> \x9B |0
<U009C> \x9C |0
<U009D> \x9D |0
<U009E> \x9E |0
<U009F> \x9F |0
<U00A0> \xA0 |0
<U00A4> \xA4 |0
<U00A7> \xA7 |0
<U00A8> \xA8 |0
<U00AD> \xAD |0
<U00AF> \xAF |0
<U00B0> \xB0 |0
<U00B4> \xB4 |0
<U00B8> \xB8 |0
<U00C1> \xC1 |0
<U00C2> \xC2 |0
<U00C3> \xC3 |0
<U00C4> \xC4 |0
<U00C5> \xC5 |0
<U00C6> \xC6 |0
<U00C9> \xC9 |0
<U00CB> \xCB |0
<U00CD> \xCD |0
<U00CE> \xCE |0
<U00D4> \xD4 |0
<U00D5> \xD5 |0
<U00D6> \xD6 |0
<U00D7> \xD7 |0
<U00D8> \xD8 |0
<U00DA> \xDA |0
<U00DB> \xDB |0
<U00DC> \xDC |0
<U00DF> \xDF |0
<U00E1> \xE1 |0
<U00E2> \xE2 |0
<U00E3> \xE3 |0
<U00E4> \xE4 |0
<U00E5> \xE5 |0
<U00E6> \xE6 |0
<U00E9> \xE9 |0
<U00EB> \xEB |0
<U00ED> \xED |0
<U00EE> \xEE |0
<U00F4> \xF4 |0
<U00F5> \xF5 |0
<U00F6> \xF6 |0
<U00F7> \xF7 |0
<U00F8> \xF8 |0
<U00FA> \xFA |0
<U00FB> \xFB |0
<U00FC> \xFC |0
<U0100> \xC0 |0
<U0101> \xE0 |0
<U0104> \xA1 |0
<U0105> \xB1 |0
<U010C> \xC8 |0
<U010D> \xE8 |0
<U0110> \xD0 |0
<U0111> \xF0 |0
<U0112> \xAA |0
<U0113> \xBA |0
<U0116> \xCC |0
<U0117> \xEC |0
<U0118> \xCA |0
<U0119> \xEA |0
<U0122> \xAB |0
<U0123> \xBB |0
<U0128> \xA5 |0
<U0129> \xB5 |0
<U012A> \xCF |0
<U012B> \xEF |0
<U012E> \xC7 |0
<U012F> \xE7 |0
<U0136> \xD3 |0
<U0137> \xF3 |0
<U0138> \xA2 |0
<U013B> \xA6 |0
<U013C> \xB6 |0
<U0145> \xD1 |0
<U0146> \xF1 |0
<U014A> \xBD |0
<U014B> \xBF |0
<U014C> \xD2 |0
<U014D> \xF2 |0
<U0156> \xA3 |0
<U0157> \xB3 |0
<U0160> \xA9 |0
<U0161> \xB9 |0
<U0166> \xAC |0
<U0167> \xBC |0
<U0168> \xDD |0
<U0169> \xFD |0
<U016A> \xDE |0
<U016B> \xFE |0
<U0172> \xD9 |0
<U0173> \xF9 |0
<U017D> \xAE |0
<U017E> \xBE |0
<U02C7> \xB7 |0
<U02D9> \xFF |0
<U02DB> \xB2 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+377
View File
@@ -0,0 +1,377 @@
# *******************************************************************************
# *
# * Copyright (C) 1995-2000, International Business Machines
# * Corporation and others. All Rights Reserved.
# *
# *******************************************************************************
#
# File created on Mon Nov 13 09:28:04 2000
#
# File created by dtcocm version 3.00
# from source files 34B00393.RPMAP100 and 039334B0.TPMAP100
#
# Table Version : 1.01
#
<code_set_name> "IBM-915"
<char_name_mask> "AXXXX"
<mb_cur_max> 1
<mb_cur_min> 1
<uconv_class> "SBCS"
<subchar> \x1A
#
CHARMAP
#
#
#ISO 10646 IBM-915
#_________ _________
<U0000> \x00 |0
<U0001> \x01 |0
<U0002> \x02 |0
<U0003> \x03 |0
<U0004> \x04 |0
<U0005> \x05 |0
<U0006> \x06 |0
<U0007> \x07 |0
<U0008> \x08 |0
<U0009> \x09 |0
<U000A> \x0A |0
<U000B> \x0B |0
<U000C> \x0C |0
<U000D> \x0D |0
<U000E> \x0E |0
<U000F> \x0F |0
<U0010> \x10 |0
<U0011> \x11 |0
<U0012> \x12 |0
<U0013> \x13 |0
<U0014> \x14 |0
<U0015> \x15 |0
<U0016> \x16 |0
<U0017> \x17 |0
<U0018> \x18 |0
<U0019> \x19 |0
<U001A> \x1A |0
<U001B> \x1B |0
<U001C> \x1C |0
<U001D> \x1D |0
<U001E> \x1E |0
<U001F> \x1F |0
<U0020> \x20 |0
<U0021> \x21 |0
<U0022> \x22 |0
<U0023> \x23 |0
<U0024> \x24 |0
<U0025> \x25 |0
<U0026> \x26 |0
<U0027> \x27 |0
<U0028> \x28 |0
<U0029> \x29 |0
<U002A> \x2A |0
<U002B> \x2B |0
<U002C> \x2C |0
<U002D> \x2D |0
<U002E> \x2E |0
<U002F> \x2F |0
<U0030> \x30 |0
<U0031> \x31 |0
<U0032> \x32 |0
<U0033> \x33 |0
<U0034> \x34 |0
<U0035> \x35 |0
<U0036> \x36 |0
<U0037> \x37 |0
<U0038> \x38 |0
<U0039> \x39 |0
<U003A> \x3A |0
<U003B> \x3B |0
<U003C> \x3C |0
<U003D> \x3D |0
<U003E> \x3E |0
<U003F> \x3F |0
<U0040> \x40 |0
<U0041> \x41 |0
<U0042> \x42 |0
<U0043> \x43 |0
<U0044> \x44 |0
<U0045> \x45 |0
<U0046> \x46 |0
<U0047> \x47 |0
<U0048> \x48 |0
<U0049> \x49 |0
<U004A> \x4A |0
<U004B> \x4B |0
<U004C> \x4C |0
<U004D> \x4D |0
<U004E> \x4E |0
<U004F> \x4F |0
<U0050> \x50 |0
<U0051> \x51 |0
<U0052> \x52 |0
<U0053> \x53 |0
<U0054> \x54 |0
<U0055> \x55 |0
<U0056> \x56 |0
<U0057> \x57 |0
<U0058> \x58 |0
<U0059> \x59 |0
<U005A> \x5A |0
<U005B> \x5B |0
<U005C> \x5C |0
<U005D> \x5D |0
<U005E> \x5E |0
<U005F> \x5F |0
<U0060> \x60 |0
<U0061> \x61 |0
<U0062> \x62 |0
<U0063> \x63 |0
<U0064> \x64 |0
<U0065> \x65 |0
<U0066> \x66 |0
<U0067> \x67 |0
<U0068> \x68 |0
<U0069> \x69 |0
<U006A> \x6A |0
<U006B> \x6B |0
<U006C> \x6C |0
<U006D> \x6D |0
<U006E> \x6E |0
<U006F> \x6F |0
<U0070> \x70 |0
<U0071> \x71 |0
<U0072> \x72 |0
<U0073> \x73 |0
<U0074> \x74 |0
<U0075> \x75 |0
<U0076> \x76 |0
<U0077> \x77 |0
<U0078> \x78 |0
<U0079> \x79 |0
<U007A> \x7A |0
<U007B> \x7B |0
<U007C> \x7C |0
<U007D> \x7D |0
<U007E> \x7E |0
<U007F> \x7F |0
<U0080> \x80 |0
<U0081> \x81 |0
<U0082> \x82 |0
<U0083> \x83 |0
<U0084> \x84 |0
<U0085> \x85 |0
<U0086> \x86 |0
<U0087> \x87 |0
<U0088> \x88 |0
<U0089> \x89 |0
<U008A> \x8A |0
<U008B> \x8B |0
<U008C> \x8C |0
<U008D> \x8D |0
<U008E> \x8E |0
<U008F> \x8F |0
<U0090> \x90 |0
<U0091> \x91 |0
<U0092> \x92 |0
<U0093> \x93 |0
<U0094> \x94 |0
<U0095> \x95 |0
<U0096> \x96 |0
<U0097> \x97 |0
<U0098> \x98 |0
<U0099> \x99 |0
<U009A> \x9A |0
<U009B> \x9B |0
<U009C> \x9C |0
<U009D> \x9D |0
<U009E> \x9E |0
<U009F> \x9F |0
<U00A0> \xA0 |0
<U00A7> \xFD |0
<U00AD> \xAD |0
<U0401> \xA1 |0
<U0402> \xA2 |0
<U0403> \xA3 |0
<U0404> \xA4 |0
<U0405> \xA5 |0
<U0406> \xA6 |0
<U0407> \xA7 |0
<U0408> \xA8 |0
<U0409> \xA9 |0
<U040A> \xAA |0
<U040B> \xAB |0
<U040C> \xAC |0
<U040E> \xAE |0
<U040F> \xAF |0
<U0410> \xB0 |0
<U0411> \xB1 |0
<U0412> \xB2 |0
<U0413> \xB3 |0
<U0414> \xB4 |0
<U0415> \xB5 |0
<U0416> \xB6 |0
<U0417> \xB7 |0
<U0418> \xB8 |0
<U0419> \xB9 |0
<U041A> \xBA |0
<U041B> \xBB |0
<U041C> \xBC |0
<U041D> \xBD |0
<U041E> \xBE |0
<U041F> \xBF |0
<U0420> \xC0 |0
<U0421> \xC1 |0
<U0422> \xC2 |0
<U0423> \xC3 |0
<U0424> \xC4 |0
<U0425> \xC5 |0
<U0426> \xC6 |0
<U0427> \xC7 |0
<U0428> \xC8 |0
<U0429> \xC9 |0
<U042A> \xCA |0
<U042B> \xCB |0
<U042C> \xCC |0
<U042D> \xCD |0
<U042E> \xCE |0
<U042F> \xCF |0
<U0430> \xD0 |0
<U0431> \xD1 |0
<U0432> \xD2 |0
<U0433> \xD3 |0
<U0434> \xD4 |0
<U0435> \xD5 |0
<U0436> \xD6 |0
<U0437> \xD7 |0
<U0438> \xD8 |0
<U0439> \xD9 |0
<U043A> \xDA |0
<U043B> \xDB |0
<U043C> \xDC |0
<U043D> \xDD |0
<U043E> \xDE |0
<U043F> \xDF |0
<U0440> \xE0 |0
<U0441> \xE1 |0
<U0442> \xE2 |0
<U0443> \xE3 |0
<U0444> \xE4 |0
<U0445> \xE5 |0
<U0446> \xE6 |0
<U0447> \xE7 |0
<U0448> \xE8 |0
<U0449> \xE9 |0
<U044A> \xEA |0
<U044B> \xEB |0
<U044C> \xEC |0
<U044D> \xED |0
<U044E> \xEE |0
<U044F> \xEF |0
<U0451> \xF1 |0
<U0452> \xF2 |0
<U0453> \xF3 |0
<U0454> \xF4 |0
<U0455> \xF5 |0
<U0456> \xF6 |0
<U0457> \xF7 |0
<U0458> \xF8 |0
<U0459> \xF9 |0
<U045A> \xFA |0
<U045B> \xFB |0
<U045C> \xFC |0
<U045E> \xFE |0
<U045F> \xFF |0
<U2116> \xF0 |0
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+363
View File
@@ -0,0 +1,363 @@
% This file is a combination of the glibc-2.2.5 charmap for
% koi8-u, adjusted to IBM's UCM syntax, with extra characters
% added for full-width Latin 1 -- Rhys Weatherley, 17 April 2002.
<code_set_name> KOI8-U
<comment_char> %
<escape_char> /
% version: 1.1
% source: RFC 2319
% source: http://www.net.ua/KOI8-U/
CHARMAP
<U0000> \x00 |0 NULL (NUL)
<U0001> \x01 |0 START OF HEADING (SOH)
<U0002> \x02 |0 START OF TEXT (STX)
<U0003> \x03 |0 END OF TEXT (ETX)
<U0004> \x04 |0 END OF TRANSMISSION (EOT)
<U0005> \x05 |0 ENQUIRY (ENQ)
<U0006> \x06 |0 ACKNOWLEDGE (ACK)
<U0007> \x07 |0 BELL (BEL)
<U0008> \x08 |0 BACKSPACE (BS)
<U0009> \x09 |0 CHARACTER TABULATION (HT)
<U000A> \x0a |0 LINE FEED (LF)
<U000B> \x0b |0 LINE TABULATION (VT)
<U000C> \x0c |0 FORM FEED (FF)
<U000D> \x0d |0 CARRIAGE RETURN (CR)
<U000E> \x0e |0 SHIFT OUT (SO)
<U000F> \x0f |0 SHIFT IN (SI)
<U0010> \x10 |0 DATALINK ESCAPE (DLE)
<U0011> \x11 |0 DEVICE CONTROL ONE (DC1)
<U0012> \x12 |0 DEVICE CONTROL TWO (DC2)
<U0013> \x13 |0 DEVICE CONTROL THREE (DC3)
<U0014> \x14 |0 DEVICE CONTROL FOUR (DC4)
<U0015> \x15 |0 NEGATIVE ACKNOWLEDGE (NAK)
<U0016> \x16 |0 SYNCHRONOUS IDLE (SYN)
<U0017> \x17 |0 END OF TRANSMISSION BLOCK (ETB)
<U0018> \x18 |0 CANCEL (CAN)
<U0019> \x19 |0 END OF MEDIUM (EM)
<U001A> \x1a |0 SUBSTITUTE (SUB)
<U001B> \x1b |0 ESCAPE (ESC)
<U001C> \x1c |0 FILE SEPARATOR (IS4)
<U001D> \x1d |0 GROUP SEPARATOR (IS3)
<U001E> \x1e |0 RECORD SEPARATOR (IS2)
<U001F> \x1f |0 UNIT SEPARATOR (IS1)
<U0020> \x20 |0 SPACE
<U0021> \x21 |0 EXCLAMATION MARK
<U0022> \x22 |0 QUOTATION MARK
<U0023> \x23 |0 NUMBER SIGN
<U0024> \x24 |0 DOLLAR SIGN
<U0025> \x25 |0 PERCENT SIGN
<U0026> \x26 |0 AMPERSAND
<U0027> \x27 |0 APOSTROPHE
<U0028> \x28 |0 LEFT PARENTHESIS
<U0029> \x29 |0 RIGHT PARENTHESIS
<U002A> \x2a |0 ASTERISK
<U002B> \x2b |0 PLUS SIGN
<U002C> \x2c |0 COMMA
<U002D> \x2d |0 HYPHEN-MINUS
<U002E> \x2e |0 FULL STOP
<U002F> \x2f |0 SOLIDUS
<U0030> \x30 |0 DIGIT ZERO
<U0031> \x31 |0 DIGIT ONE
<U0032> \x32 |0 DIGIT TWO
<U0033> \x33 |0 DIGIT THREE
<U0034> \x34 |0 DIGIT FOUR
<U0035> \x35 |0 DIGIT FIVE
<U0036> \x36 |0 DIGIT SIX
<U0037> \x37 |0 DIGIT SEVEN
<U0038> \x38 |0 DIGIT EIGHT
<U0039> \x39 |0 DIGIT NINE
<U003A> \x3a |0 COLON
<U003B> \x3b |0 SEMICOLON
<U003C> \x3c |0 LESS-THAN SIGN
<U003D> \x3d |0 EQUALS SIGN
<U003E> \x3e |0 GREATER-THAN SIGN
<U003F> \x3f |0 QUESTION MARK
<U0040> \x40 |0 COMMERCIAL AT
<U0041> \x41 |0 LATIN CAPITAL LETTER A
<U0042> \x42 |0 LATIN CAPITAL LETTER B
<U0043> \x43 |0 LATIN CAPITAL LETTER C
<U0044> \x44 |0 LATIN CAPITAL LETTER D
<U0045> \x45 |0 LATIN CAPITAL LETTER E
<U0046> \x46 |0 LATIN CAPITAL LETTER F
<U0047> \x47 |0 LATIN CAPITAL LETTER G
<U0048> \x48 |0 LATIN CAPITAL LETTER H
<U0049> \x49 |0 LATIN CAPITAL LETTER I
<U004A> \x4a |0 LATIN CAPITAL LETTER J
<U004B> \x4b |0 LATIN CAPITAL LETTER K
<U004C> \x4c |0 LATIN CAPITAL LETTER L
<U004D> \x4d |0 LATIN CAPITAL LETTER M
<U004E> \x4e |0 LATIN CAPITAL LETTER N
<U004F> \x4f |0 LATIN CAPITAL LETTER O
<U0050> \x50 |0 LATIN CAPITAL LETTER P
<U0051> \x51 |0 LATIN CAPITAL LETTER Q
<U0052> \x52 |0 LATIN CAPITAL LETTER R
<U0053> \x53 |0 LATIN CAPITAL LETTER S
<U0054> \x54 |0 LATIN CAPITAL LETTER T
<U0055> \x55 |0 LATIN CAPITAL LETTER U
<U0056> \x56 |0 LATIN CAPITAL LETTER V
<U0057> \x57 |0 LATIN CAPITAL LETTER W
<U0058> \x58 |0 LATIN CAPITAL LETTER X
<U0059> \x59 |0 LATIN CAPITAL LETTER Y
<U005A> \x5a |0 LATIN CAPITAL LETTER Z
<U005B> \x5b |0 LEFT SQUARE BRACKET
<U005C> \x5c |0 REVERSE SOLIDUS
<U005D> \x5d |0 RIGHT SQUARE BRACKET
<U005E> \x5e |0 CIRCUMFLEX ACCENT
<U005F> \x5f |0 LOW LINE
<U0060> \x60 |0 GRAVE ACCENT
<U0061> \x61 |0 LATIN SMALL LETTER A
<U0062> \x62 |0 LATIN SMALL LETTER B
<U0063> \x63 |0 LATIN SMALL LETTER C
<U0064> \x64 |0 LATIN SMALL LETTER D
<U0065> \x65 |0 LATIN SMALL LETTER E
<U0066> \x66 |0 LATIN SMALL LETTER F
<U0067> \x67 |0 LATIN SMALL LETTER G
<U0068> \x68 |0 LATIN SMALL LETTER H
<U0069> \x69 |0 LATIN SMALL LETTER I
<U006A> \x6a |0 LATIN SMALL LETTER J
<U006B> \x6b |0 LATIN SMALL LETTER K
<U006C> \x6c |0 LATIN SMALL LETTER L
<U006D> \x6d |0 LATIN SMALL LETTER M
<U006E> \x6e |0 LATIN SMALL LETTER N
<U006F> \x6f |0 LATIN SMALL LETTER O
<U0070> \x70 |0 LATIN SMALL LETTER P
<U0071> \x71 |0 LATIN SMALL LETTER Q
<U0072> \x72 |0 LATIN SMALL LETTER R
<U0073> \x73 |0 LATIN SMALL LETTER S
<U0074> \x74 |0 LATIN SMALL LETTER T
<U0075> \x75 |0 LATIN SMALL LETTER U
<U0076> \x76 |0 LATIN SMALL LETTER V
<U0077> \x77 |0 LATIN SMALL LETTER W
<U0078> \x78 |0 LATIN SMALL LETTER X
<U0079> \x79 |0 LATIN SMALL LETTER Y
<U007A> \x7a |0 LATIN SMALL LETTER Z
<U007B> \x7b |0 LEFT CURLY BRACKET
<U007C> \x7c |0 VERTICAL LINE
<U007D> \x7d |0 RIGHT CURLY BRACKET
<U007E> \x7e |0 TILDE
<U007F> \x7f |0 DELETE (DEL)
<U2500> \x80 |0 BOX DRAWINGS LIGHT HORIZONTAL
<U2502> \x81 |0 BOX DRAWINGS LIGHT VERTICAL
<U250C> \x82 |0 BOX DRAWINGS LIGHT DOWN AND RIGHT
<U2510> \x83 |0 BOX DRAWINGS LIGHT DOWN AND LEFT
<U2514> \x84 |0 BOX DRAWINGS LIGHT UP AND RIGHT
<U2518> \x85 |0 BOX DRAWINGS LIGHT UP AND LEFT
<U251C> \x86 |0 BOX DRAWINGS LIGHT VERTICAL AND RIGHT
<U2524> \x87 |0 BOX DRAWINGS LIGHT VERTICAL AND LEFT
<U252C> \x88 |0 BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
<U2534> \x89 |0 BOX DRAWINGS LIGHT UP AND HORIZONTAL
<U253C> \x8a |0 BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
<U2580> \x8b |0 UPPER HALF BLOCK
<U2584> \x8c |0 LOWER HALF BLOCK
<U2588> \x8d |0 FULL BLOCK
<U258C> \x8e |0 LEFT HALF BLOCK
<U2590> \x8f |0 RIGHT HALF BLOCK
<U2591> \x90 |0 LIGHT SHADE
<U2592> \x91 |0 MEDIUM SHADE
<U2593> \x92 |0 DARK SHADE
<U2320> \x93 |0 TOP HALF INTEGRAL
<U25A0> \x94 |0 BLACK SQUARE
<U2219> \x95 |0 BULLET OPERATOR
<U221A> \x96 |0 SQUARE ROOT
<U2248> \x97 |0 ALMOST EQUAL TO
<U2264> \x98 |0 LESS THAN OR EQUAL TO
<U2265> \x99 |0 GREATER THAN OR EQUAL TO
<U00A0> \x9a |0 NO-BREAK SPACE
<U2321> \x9b |0 BOTTOM HALF INTEGRAL
<U00B0> \x9c |0 DEGREE SIGN
<U00B2> \x9d |0 SUPERSCRIPT DIGIT TWO
<U00B7> \x9e |0 MIDDLE DOT
<U00F7> \x9f |0 DIVISION SIGN
<U2550> \xa0 |0 BOX DRAWINGS DOUBLE HORIZONTAL
<U2551> \xa1 |0 BOX DRAWINGS DOUBLE VERTICAL
<U2552> \xa2 |0 BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
<U0451> \xa3 |0 CYRILLIC SMALL LETTER IO
<U0454> \xa4 |0 CYRILLIC SMALL LETTER UKRAINIAN IE
<U2554> \xa5 |0 BOX DRAWINGS DOUBLE DOWN AND RIGHT
<U0456> \xa6 |0 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
<U0457> \xa7 |0 CYRILLIC SMALL LETTER YI (Ukrainian)
<U2557> \xa8 |0 BOX DRAWINGS DOUBLE DOWN AND LEFT
<U2558> \xa9 |0 BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
<U2559> \xaa |0 BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
<U255A> \xab |0 BOX DRAWINGS DOUBLE UP AND RIGHT
<U255B> \xac |0 BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
<U0491> \xad |0 CYRILLIC SMALL LETTER GHE WITH UPTURN
<U255D> \xae |0 BOX DRAWINGS DOUBLE UP AND LEFT
<U255E> \xaf |0 BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
<U255F> \xb0 |0 BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
<U2560> \xb1 |0 BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
<U2561> \xb2 |0 BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
<U0401> \xb3 |0 CYRILLIC CAPITAL LETTER IO
<U0404> \xb4 |0 CYRILLIC CAPITAL LETTER UKRAINIAN IE
<U2563> \xb5 |0 DOUBLE VERTICAL AND LEFT
<U0406> \xb6 |0 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
<U0407> \xb7 |0 CYRILLIC CAPITAL LETTER YI (Ukrainian)
<U2566> \xb8 |0 BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
<U2567> \xb9 |0 BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
<U2568> \xba |0 BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
<U2569> \xbb |0 BOX DRAWINGS DOUBLE UP AND HORIZONTAL
<U256A> \xbc |0 BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
<U0490> \xbd |0 CYRILLIC CAPITAL LETTER GHE WITH UPTURN
<U256C> \xbe |0 BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
<U00A9> \xbf |0 COPYRIGHT SIGN
<U044E> \xc0 |0 CYRILLIC SMALL LETTER YU
<U0430> \xc1 |0 CYRILLIC SMALL LETTER A
<U0431> \xc2 |0 CYRILLIC SMALL LETTER BE
<U0446> \xc3 |0 CYRILLIC SMALL LETTER TSE
<U0434> \xc4 |0 CYRILLIC SMALL LETTER DE
<U0435> \xc5 |0 CYRILLIC SMALL LETTER IE
<U0444> \xc6 |0 CYRILLIC SMALL LETTER EF
<U0433> \xc7 |0 CYRILLIC SMALL LETTER GHE
<U0445> \xc8 |0 CYRILLIC SMALL LETTER HA
<U0438> \xc9 |0 CYRILLIC SMALL LETTER I
<U0439> \xca |0 CYRILLIC SMALL LETTER SHORT I
<U043A> \xcb |0 CYRILLIC SMALL LETTER KA
<U043B> \xcc |0 CYRILLIC SMALL LETTER EL
<U043C> \xcd |0 CYRILLIC SMALL LETTER EM
<U043D> \xce |0 CYRILLIC SMALL LETTER EN
<U043E> \xcf |0 CYRILLIC SMALL LETTER O
<U043F> \xd0 |0 CYRILLIC SMALL LETTER PE
<U044F> \xd1 |0 CYRILLIC SMALL LETTER YA
<U0440> \xd2 |0 CYRILLIC SMALL LETTER ER
<U0441> \xd3 |0 CYRILLIC SMALL LETTER ES
<U0442> \xd4 |0 CYRILLIC SMALL LETTER TE
<U0443> \xd5 |0 CYRILLIC SMALL LETTER U
<U0436> \xd6 |0 CYRILLIC SMALL LETTER ZHE
<U0432> \xd7 |0 CYRILLIC SMALL LETTER VE
<U044C> \xd8 |0 CYRILLIC SMALL LETTER SOFT SIGN
<U044B> \xd9 |0 CYRILLIC SMALL LETTER YERU
<U0437> \xda |0 CYRILLIC SMALL LETTER ZE
<U0448> \xdb |0 CYRILLIC SMALL LETTER SHA
<U044D> \xdc |0 CYRILLIC SMALL LETTER E
<U0449> \xdd |0 CYRILLIC SMALL LETTER SHCHA
<U0447> \xde |0 CYRILLIC SMALL LETTER CHE
<U044A> \xdf |0 CYRILLIC SMALL LETTER HARD SIGN
<U042E> \xe0 |0 CYRILLIC CAPITAL LETTER YU
<U0410> \xe1 |0 CYRILLIC CAPITAL LETTER A
<U0411> \xe2 |0 CYRILLIC CAPITAL LETTER BE
<U0426> \xe3 |0 CYRILLIC CAPITAL LETTER TSE
<U0414> \xe4 |0 CYRILLIC CAPITAL LETTER DE
<U0415> \xe5 |0 CYRILLIC CAPITAL LETTER IE
<U0424> \xe6 |0 CYRILLIC CAPITAL LETTER EF
<U0413> \xe7 |0 CYRILLIC CAPITAL LETTER GHE
<U0425> \xe8 |0 CYRILLIC CAPITAL LETTER HA
<U0418> \xe9 |0 CYRILLIC CAPITAL LETTER I
<U0419> \xea |0 CYRILLIC CAPITAL LETTER SHORT I
<U041A> \xeb |0 CYRILLIC CAPITAL LETTER KA
<U041B> \xec |0 CYRILLIC CAPITAL LETTER EL
<U041C> \xed |0 CYRILLIC CAPITAL LETTER EM
<U041D> \xee |0 CYRILLIC CAPITAL LETTER EN
<U041E> \xef |0 CYRILLIC CAPITAL LETTER O
<U041F> \xf0 |0 CYRILLIC CAPITAL LETTER PE
<U042F> \xf1 |0 CYRILLIC CAPITAL LETTER YA
<U0420> \xf2 |0 CYRILLIC CAPITAL LETTER ER
<U0421> \xf3 |0 CYRILLIC CAPITAL LETTER ES
<U0422> \xf4 |0 CYRILLIC CAPITAL LETTER TE
<U0423> \xf5 |0 CYRILLIC CAPITAL LETTER U
<U0416> \xf6 |0 CYRILLIC CAPITAL LETTER ZHE
<U0412> \xf7 |0 CYRILLIC CAPITAL LETTER VE
<U042C> \xf8 |0 CYRILLIC CAPITAL LETTER SOFT SIGN
<U042B> \xf9 |0 CYRILLIC CAPITAL LETTER YERU
<U0417> \xfa |0 CYRILLIC CAPITAL LETTER ZE
<U0428> \xfb |0 CYRILLIC CAPITAL LETTER SHA
<U042D> \xfc |0 CYRILLIC CAPITAL LETTER E
<U0429> \xfd |0 CYRILLIC CAPITAL LETTER SHCHA
<U0427> \xfe |0 CYRILLIC CAPITAL LETTER CHE
<U042A> \xff |0 CYRILLIC CAPITAL LETTER HARD SIGN
<UFF01> \x21 |1
<UFF02> \x22 |1
<UFF03> \x23 |1
<UFF04> \x24 |1
<UFF05> \x25 |1
<UFF06> \x26 |1
<UFF07> \x27 |1
<UFF08> \x28 |1
<UFF09> \x29 |1
<UFF0A> \x2A |1
<UFF0B> \x2B |1
<UFF0C> \x2C |1
<UFF0D> \x2D |1
<UFF0E> \x2E |1
<UFF0F> \x2F |1
<UFF10> \x30 |1
<UFF11> \x31 |1
<UFF12> \x32 |1
<UFF13> \x33 |1
<UFF14> \x34 |1
<UFF15> \x35 |1
<UFF16> \x36 |1
<UFF17> \x37 |1
<UFF18> \x38 |1
<UFF19> \x39 |1
<UFF1A> \x3A |1
<UFF1B> \x3B |1
<UFF1C> \x3C |1
<UFF1D> \x3D |1
<UFF1E> \x3E |1
<UFF1F> \x3F |1
<UFF20> \x40 |1
<UFF21> \x41 |1
<UFF22> \x42 |1
<UFF23> \x43 |1
<UFF24> \x44 |1
<UFF25> \x45 |1
<UFF26> \x46 |1
<UFF27> \x47 |1
<UFF28> \x48 |1
<UFF29> \x49 |1
<UFF2A> \x4A |1
<UFF2B> \x4B |1
<UFF2C> \x4C |1
<UFF2D> \x4D |1
<UFF2E> \x4E |1
<UFF2F> \x4F |1
<UFF30> \x50 |1
<UFF31> \x51 |1
<UFF32> \x52 |1
<UFF33> \x53 |1
<UFF34> \x54 |1
<UFF35> \x55 |1
<UFF36> \x56 |1
<UFF37> \x57 |1
<UFF38> \x58 |1
<UFF39> \x59 |1
<UFF3A> \x5A |1
<UFF3B> \x5B |1
<UFF3C> \x5C |1
<UFF3D> \x5D |1
<UFF3E> \x5E |1
<UFF3F> \x5F |1
<UFF40> \x60 |1
<UFF41> \x61 |1
<UFF42> \x62 |1
<UFF43> \x63 |1
<UFF44> \x64 |1
<UFF45> \x65 |1
<UFF46> \x66 |1
<UFF47> \x67 |1
<UFF48> \x68 |1
<UFF49> \x69 |1
<UFF4A> \x6A |1
<UFF4B> \x6B |1
<UFF4C> \x6C |1
<UFF4D> \x6D |1
<UFF4E> \x6E |1
<UFF4F> \x6F |1
<UFF50> \x70 |1
<UFF51> \x71 |1
<UFF52> \x72 |1
<UFF53> \x73 |1
<UFF54> \x74 |1
<UFF55> \x75 |1
<UFF56> \x76 |1
<UFF57> \x77 |1
<UFF58> \x78 |1
<UFF59> \x79 |1
<UFF5A> \x7A |1
<UFF5B> \x7B |1
<UFF5C> \x7C |1
<UFF5D> \x7D |1
<UFF5E> \x7E |1
END CHARMAP
+9
View File
@@ -0,0 +1,9 @@
CP1251.cs
CP1257.cs
CP1258.cs
CP20866.cs
CP21866.cs
CP28594.cs
CP28595.cs
CP57002.cs
CP874.cs
+13
View File
@@ -0,0 +1,13 @@
topdir = ../../..
LIBRARY = $(topdir)/class/lib/I18N.Other.dll
LIB_LIST = list.unix
LIB_FLAGS = -r corlib -r mscorlib -r I18N
SOURCES_INCLUDE=*.cs
SOURCES_EXCLUDE=
export MONO_PATH_PREFIX = $(topdir)/class/lib:
include $(topdir)/class/library.make
+158
View File
@@ -0,0 +1,158 @@
I18N: Pnetlib Internationalization Framework Libary
===================================================
Using the library
-----------------
This library provides plug-in i18n module support for C# base class
libraries such as pnetlib's "runtime". The base class library uses
it as follows:
- Load the "I18N.dll" assembly using "System.Reflection.Assembly.Load".
- Obtain the value of the static "PrimaryManager" property within the
"I18N.Common.Manager" class using "System.Reflection" facilities.
- Invoke methods on the manager class to obtain i18n-sensitive
objects such as "CultureInfo" and "Encoding" instances.
- The "I18N.Common.Manager" class loads the requested i18n object
and returns it to the base class library, which can then use it
in the usual fashion.
A more detailed example is given in a later section.
I18N handlers
-------------
Because there are so many i18n-sensitive cases to be handled, the culture
information has been split across several region-specific assemblies:
I18N.CJK.dll
I18N.MidEast.dll
I18N.Other.dll
I18N.Rare.dll
I18N.West.dll
The "I18N.dll" assembly only loads those region-specific assemblies that
it needs, based on the user's requests.
I18N handlers within these assemblies use the naming convention
"I18N.<Region>.<Prefix><Value>" where:
<Region>
The region handler. e.g. "West", "CJK", "India", etc.
<Prefix>
The prefix for the handler type.
<Value>
The identifier value which is supplied by the caller.
e.g. a culture identifier, an encoding name, etc.
The following prefixes are supported:
CP
Code page handler. e.g. "CP1252".
ENC
Web encoding handler. e.g. "ENCiso_8869_8".
CID
Culture, based on identifier. e.g. "CID2c01".
CIDO
Culture, based on identifier, with user overrides. e.g. "CIDO2c01".
Falls back to the "CID" handler if no override handler.
CN
Culture, based on name. e.g. "CNar_jo".
CNO
Culture, based on name, with user overrides. e.g. "CNOar_jo".
Falls back to the "CN" handler if no override handler.
Handlers that are based on name will normalize the name to be in all
lower case, with all instances of '-' replaced with '_'.
The "I18N.dll" assembly knows which region assembly to load from the
"I18N-handlers.def" file. This file is automatically generated during
the build process and contains a list of all I18N handler classes.
It must reside in the same directory as "I18N.dll".
Example
-------
As an example of the I18N loading process, we will describe what happens
when code page 932 is requested:
- The user's code calls "System.Text.Encoding.GetEncoding(932)".
- The "Encoding" class loads "I18N.dll" using reflection.
- The "Encoding" class accesses the "PrimaryManager" property via
reflection to get an instance of "I18N.Common.Manager".
- The "Encoding" class calls the "GetEncoding(int)" method on
the "I18N.Common.Manager" instance using reflection.
- "I18N.Common.Manager" constructs the name of the handler class - "CP932".
- The file "I18N-handlers.def" is consulted to determine the full
namespace and name of the "CP932" class - "I18N.CJK.CP932".
- The region assembly "I18N.CJK.dll" is loaded using reflection.
- An instance of the class "I18N.CJK.CP923" in the loaded assembly
is constructed and returned to the caller.
The results of previous requests are cached to smooth overall performance
of the system.
Dependencies
------------
This section describes the facilities that must be available from the
base class library to make the I18N framework function.
The framework makes heavy use of facilities from "System.Reflection"
to load assemblies and to access their contents.
String resources are assumed to be embedded as manifest string resources,
based on tag names. The "I18N.Common.Strings" class takes care of the
resource needs of all of the I18N assemblies. It relies upon a working
implementation of "ResourceManager", that can load and process manifest
string resources.
It is assumed that the base class library contains its own implementation
of the invariant culture. i.e. the invariant culture cannot be loaded
dynamically.
The "I18N.CJK.dll" assembly contains a single "InternalCall" method in
the "I18N.CJK.CodeTable" class if the "__PNET__" symbol is defined when
the assembly is compiled. This gives more efficient access to conversion
CJK tables when running on the Portable.NET runtime engine. If the
"__PNET__" symbol is not defined, then the implementation will fall back
to a less efficient way of loading the tables.
The method "System.Reflection.Assembly.GetFile(String)" is assumed to
have slightly different semantics to the .NET Framework SDK. Normally,
this method accesses a file that is listed in the assembly manifest.
We have extended it so that it can also access files in the same directory
as the assembly, even if not mentioned in the manifest.
The altered semantics is necessary to access the "I18N-handlers.def" file,
which defines which assembly contains which I18N handler. This file can
be altered by third parties to install new handler assemblies.
If the runtime engine does not implement the altered "GetFile" semantics,
the library will fall back to an internal list that must be maintained
internally and which cannot be dynamically extended by third parties.
Security considerations
-----------------------
The "GetAddress" and "GetFile" methods need to be implemented carefully
to prevent arbitrary applications using them to circumvent system security.
+13
View File
@@ -0,0 +1,13 @@
Note: the I18N assemblies code is imported from the pnetlib sources.
The code was donated by Rhys Weatherley <[email protected]>
for use in mono.
_Any_ change and bugfix to these assemblies that is not mono-specific
should be also sent to the pnetlib maintainers to keep the sources in
sync as much as possible.
The code was initially imported with the command:
cvs -d [email protected]:/cvs/public import -m "First import" \
mcs/class/I18N SAVANNAH_CVS RHYS_20020821
Please follow the same convention for future imports. Thanks.
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1026.cs - IBM EBCDIC (Turkish) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1026.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1026 : ByteEncoding
{
public CP1026()
: base(1026, ToChars, "IBM EBCDIC (Turkish)",
"ibm1026", "ibm1026", "ibm1026",
false, false, false, false, 1254)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u007B', '\u00F1', '\u00C7', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u011E', '\u0130', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u005B', '\u00D1', '\u015F', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0131', '\u003A', '\u00D6', '\u015E', '\u0027',
'\u003D', '\u00DC', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u007D', '\u0060', '\u00A6', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u00A4', '\u00B5', '\u00F6',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u005D', '\u0024',
'\u0040', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
'\u00E7', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u007E', '\u00F2', '\u00F3', '\u00F5', '\u011F', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u005C', '\u00F9',
'\u00FA', '\u00FF', '\u00FC', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u0023', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u0022', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0xFC; break;
case 0x0023: ch = 0xEC; break;
case 0x0024: ch = 0xAD; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xAE; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x68; break;
case 0x005C: ch = 0xDC; break;
case 0x005D: ch = 0xAC; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x8D; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x48; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x8C; break;
case 0x007E: ch = 0xCC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A4: ch = 0x9F; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x8E; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x4A; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0x7B; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0x7F; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0xC0; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xA1; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xE0; break;
case 0x00FF: ch = 0xDF; break;
case 0x011E: ch = 0x5A; break;
case 0x011F: ch = 0xD0; break;
case 0x0130: ch = 0x5B; break;
case 0x0131: ch = 0x79; break;
case 0x015E: ch = 0x7C; break;
case 0x015F: ch = 0x6A; break;
case 0x203E: ch = 0xBC; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0xFC; break;
case 0xFF03: ch = 0xEC; break;
case 0xFF04: ch = 0xAD; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xAE; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x68; break;
case 0xFF3C: ch = 0xDC; break;
case 0xFF3D: ch = 0xAC; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x8D; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x48; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x8C; break;
case 0xFF5E: ch = 0xCC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0xFC; break;
case 0x0023: ch = 0xEC; break;
case 0x0024: ch = 0xAD; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xAE; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x68; break;
case 0x005C: ch = 0xDC; break;
case 0x005D: ch = 0xAC; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x8D; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x48; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x8C; break;
case 0x007E: ch = 0xCC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A4: ch = 0x9F; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x8E; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x4A; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0x7B; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0x7F; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0xC0; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xA1; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xE0; break;
case 0x00FF: ch = 0xDF; break;
case 0x011E: ch = 0x5A; break;
case 0x011F: ch = 0xD0; break;
case 0x0130: ch = 0x5B; break;
case 0x0131: ch = 0x79; break;
case 0x015E: ch = 0x7C; break;
case 0x015F: ch = 0x6A; break;
case 0x203E: ch = 0xBC; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0xFC; break;
case 0xFF03: ch = 0xEC; break;
case 0xFF04: ch = 0xAD; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xAE; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x68; break;
case 0xFF3C: ch = 0xDC; break;
case 0xFF3D: ch = 0xAC; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x8D; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x48; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x8C; break;
case 0xFF5E: ch = 0xCC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1026
public class ENCibm1026 : CP1026
{
public ENCibm1026() : base() {}
}; // class ENCibm1026
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1047.cs - IBM EBCDIC (Open Systems Latin 1) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1047.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1047 : ByteEncoding
{
public CP1047()
: base(1047, ToChars, "IBM EBCDIC (Open Systems Latin 1)",
"ibm1047", "ibm1047", "ibm1047",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u00E7', '\u00F1', '\u00A2', '\u002E', '\u003C', '\u0028',
'\u002B', '\u007C', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u0021', '\u0024', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00A6', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0060', '\u003A', '\u0023', '\u0040', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u00A4', '\u00B5', '\u007E',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u005B',
'\u00DE', '\u00AE', '\u00AC', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00DD', '\u00A8', '\u00AF', '\u005D', '\u00B4', '\u00D7',
'\u007B', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u007D', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u00F9',
'\u00FA', '\u00FF', '\u005C', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x5A; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xAD; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0xBD; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xA1; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0x4A; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A4: ch = 0x9F; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBB; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xB0; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xBA; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0xFF01: ch = 0x5A; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xAD; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0xBD; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xA1; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x5A; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xAD; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0xBD; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xA1; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0x4A; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A4: ch = 0x9F; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBB; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xB0; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xBA; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0xFF01: ch = 0x5A; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xAD; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0xBD; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xA1; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1047
public class ENCibm1047 : CP1047
{
public ENCibm1047() : base() {}
}; // class ENCibm1047
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1140.cs - IBM EBCDIC (US-Canada with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1140.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1140 : ByteEncoding
{
public CP1140()
: base(1140, ToChars, "IBM EBCDIC (US-Canada with Euro)",
"IBM01140", "IBM01140", "IBM01140",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u00E7', '\u00F1', '\u00A2', '\u002E', '\u003C', '\u0028',
'\u002B', '\u007C', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u0021', '\u0024', '\u002A', '\u0029', '\u003B', '\u00AC',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00A6', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0060', '\u003A', '\u0023', '\u0040', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u20AC', '\u00B5', '\u007E',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u005E', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u005B', '\u005D', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
'\u007B', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u007D', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u00F9',
'\u00FA', '\u00FF', '\u005C', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x5A; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xBA; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0xBB; break;
case 0x005E: ch = 0xB0; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xA1; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0x4A; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0x5F; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x5A; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xBA; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0xBB; break;
case 0xFF3E: ch = 0xB0; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xA1; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x5A; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xBA; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0xBB; break;
case 0x005E: ch = 0xB0; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xA1; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0x4A; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0x5F; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x5A; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xBA; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0xBB; break;
case 0xFF3E: ch = 0xB0; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xA1; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1140
public class ENCibm01140 : CP1140
{
public ENCibm01140() : base() {}
}; // class ENCibm01140
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1141.cs - IBM EBCDIC (Germany with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1141.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1141 : ByteEncoding
{
public CP1141()
: base(1141, ToChars, "IBM EBCDIC (Germany with Euro)",
"IBM01141", "IBM01141", "IBM01141",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u007B', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u00E7', '\u00F1', '\u00C4', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u007E',
'\u00DC', '\u0024', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u005B', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00F6', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0060', '\u003A', '\u0023', '\u00A7', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u20AC', '\u00B5', '\u00DF',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u0040', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
'\u00E4', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00A6', '\u00F2', '\u00F3', '\u00F5', '\u00FC', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u007D', '\u00F9',
'\u00FA', '\u00FF', '\u00D6', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u005C', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u005D', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xB5; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x63; break;
case 0x005C: ch = 0xEC; break;
case 0x005D: ch = 0xFC; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x43; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0xDC; break;
case 0x007E: ch = 0x59; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xCC; break;
case 0x00A7: ch = 0x7C; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x4A; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xE0; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0x5A; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0xA1; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0xC0; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0x6A; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xD0; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xB5; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x63; break;
case 0xFF3C: ch = 0xEC; break;
case 0xFF3D: ch = 0xFC; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x43; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0xDC; break;
case 0xFF5E: ch = 0x59; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xB5; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x63; break;
case 0x005C: ch = 0xEC; break;
case 0x005D: ch = 0xFC; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x43; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0xDC; break;
case 0x007E: ch = 0x59; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xCC; break;
case 0x00A7: ch = 0x7C; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x4A; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xE0; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0x5A; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0xA1; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0xC0; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0x6A; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xD0; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xB5; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x63; break;
case 0xFF3C: ch = 0xEC; break;
case 0xFF3D: ch = 0xFC; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x43; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0xDC; break;
case 0xFF5E: ch = 0x59; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1141
public class ENCibm01141 : CP1141
{
public ENCibm01141() : base() {}
}; // class ENCibm01141
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1142.cs - IBM EBCDIC (Denmark/Norway with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1142.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1142 : ByteEncoding
{
public CP1142()
: base(1142, ToChars, "IBM EBCDIC (Denmark/Norway with Euro)",
"IBM01142", "IBM01142", "IBM01142",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u007D',
'\u00E7', '\u00F1', '\u0023', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u20AC', '\u00C5', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u0024', '\u00C7', '\u00D1', '\u00F8', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00A6', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0060', '\u003A', '\u00C6', '\u00D8', '\u0027',
'\u003D', '\u0022', '\u0040', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u007B', '\u00B8', '\u005B', '\u005D', '\u00B5', '\u00FC',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
'\u00E6', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u00E5', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u007E', '\u00F9',
'\u00FA', '\u00FF', '\u005C', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x4A; break;
case 0x0024: ch = 0x67; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x80; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x9E; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0x9F; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x9C; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x47; break;
case 0x007E: ch = 0xDC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x70; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x5B; break;
case 0x00C6: ch = 0x7B; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x7C; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0xD0; break;
case 0x00E6: ch = 0xC0; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x6A; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xA1; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x5A; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x4A; break;
case 0xFF04: ch = 0x67; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x80; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x9E; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0x9F; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x9C; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x47; break;
case 0xFF5E: ch = 0xDC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x4A; break;
case 0x0024: ch = 0x67; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x80; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x9E; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0x9F; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x9C; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x47; break;
case 0x007E: ch = 0xDC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x70; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x5B; break;
case 0x00C6: ch = 0x7B; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x7C; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0xD0; break;
case 0x00E6: ch = 0xC0; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x6A; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xA1; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x5A; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x4A; break;
case 0xFF04: ch = 0x67; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x80; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x9E; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0x9F; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x9C; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x47; break;
case 0xFF5E: ch = 0xDC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1142
public class ENCibm01142 : CP1142
{
public ENCibm01142() : base() {}
}; // class ENCibm01142
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1143.cs - IBM EBCDIC (Finland/Sweden with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1143.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1143 : ByteEncoding
{
public CP1143()
: base(1143, ToChars, "IBM EBCDIC (Finland/Sweden with Euro)",
"IBM01143", "IBM01143", "IBM01143",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u007B', '\u00E0', '\u00E1', '\u00E3', '\u007D',
'\u00E7', '\u00F1', '\u00A7', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u0060', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u20AC', '\u00C5', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u0023', '\u00C0', '\u00C1',
'\u00C3', '\u0024', '\u00C7', '\u00D1', '\u00F6', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u005C',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u00E9', '\u003A', '\u00C4', '\u00D6', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u005D', '\u00B5', '\u00FC',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u005B', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
'\u00E4', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00A6', '\u00F2', '\u00F3', '\u00F5', '\u00E5', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u007E', '\u00F9',
'\u00FA', '\u00FF', '\u00C9', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u0040', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x63; break;
case 0x0024: ch = 0x67; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xEC; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xB5; break;
case 0x005C: ch = 0x71; break;
case 0x005D: ch = 0x9F; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x51; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x43; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x47; break;
case 0x007E: ch = 0xDC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xCC; break;
case 0x00A7: ch = 0x4A; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x7B; break;
case 0x00C5: ch = 0x5B; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0xE0; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0x7C; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0xC0; break;
case 0x00E5: ch = 0xD0; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x79; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0x6A; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xA1; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x5A; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x63; break;
case 0xFF04: ch = 0x67; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xEC; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xB5; break;
case 0xFF3C: ch = 0x71; break;
case 0xFF3D: ch = 0x9F; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x51; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x43; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x47; break;
case 0xFF5E: ch = 0xDC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x63; break;
case 0x0024: ch = 0x67; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xEC; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xB5; break;
case 0x005C: ch = 0x71; break;
case 0x005D: ch = 0x9F; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x51; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x43; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x47; break;
case 0x007E: ch = 0xDC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xCC; break;
case 0x00A7: ch = 0x4A; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x7B; break;
case 0x00C5: ch = 0x5B; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0xE0; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0x7C; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0xC0; break;
case 0x00E5: ch = 0xD0; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x79; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0x6A; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xA1; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x5A; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x63; break;
case 0xFF04: ch = 0x67; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xEC; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xB5; break;
case 0xFF3C: ch = 0x71; break;
case 0xFF3D: ch = 0x9F; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x51; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x43; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x47; break;
case 0xFF5E: ch = 0xDC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1143
public class ENCibm01143 : CP1143
{
public ENCibm01143() : base() {}
}; // class ENCibm01143
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1144.cs - IBM EBCDIC (Italy with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1144.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1144 : ByteEncoding
{
public CP1144()
: base(1144, ToChars, "IBM EBCDIC (Italy with Euro)",
"ibm1144", "ibm1144", "ibm1144",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u007B', '\u00E1', '\u00E3', '\u00E5',
'\u005C', '\u00F1', '\u00B0', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u005D', '\u00EA', '\u00EB',
'\u007D', '\u00ED', '\u00EE', '\u00EF', '\u007E', '\u00DF',
'\u00E9', '\u0024', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00F2', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u00F9', '\u003A', '\u00A3', '\u00A7', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u005B', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u20AC', '\u00B5', '\u00EC',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u0023', '\u00A5', '\u00B7',
'\u00A9', '\u0040', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
'\u00E0', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00A6', '\u00F3', '\u00F5', '\u00E8', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u0060',
'\u00FA', '\u00FF', '\u00E7', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0xB1; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xB5; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x90; break;
case 0x005C: ch = 0x48; break;
case 0x005D: ch = 0x51; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0xDD; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x44; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x54; break;
case 0x007E: ch = 0x58; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0x7B; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xCD; break;
case 0x00A7: ch = 0x7C; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x4A; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0xC0; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0xE0; break;
case 0x00E8: ch = 0xD0; break;
case 0x00E9: ch = 0x5A; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0xA1; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0x6A; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0x79; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0xB1; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xB5; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x90; break;
case 0xFF3C: ch = 0x48; break;
case 0xFF3D: ch = 0x51; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0xDD; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x44; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x54; break;
case 0xFF5E: ch = 0x58; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0xB1; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xB5; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x90; break;
case 0x005C: ch = 0x48; break;
case 0x005D: ch = 0x51; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0xDD; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x44; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x54; break;
case 0x007E: ch = 0x58; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0x7B; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xCD; break;
case 0x00A7: ch = 0x7C; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x4A; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0xC0; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0xE0; break;
case 0x00E8: ch = 0xD0; break;
case 0x00E9: ch = 0x5A; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0xA1; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0x6A; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0x79; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0xB1; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xB5; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x90; break;
case 0xFF3C: ch = 0x48; break;
case 0xFF3D: ch = 0x51; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0xDD; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x44; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x54; break;
case 0xFF5E: ch = 0x58; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1144
public class ENCibm1144 : CP1144
{
public ENCibm1144() : base() {}
}; // class ENCibm1144
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1145.cs - IBM EBCDIC (Latin America/Spain with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1145.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1145 : ByteEncoding
{
public CP1145()
: base(1145, ToChars, "IBM EBCDIC (Latin America/Spain with Euro)",
"ibm1145", "ibm1145", "ibm1145",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u00E7', '\u00A6', '\u005B', '\u002E', '\u003C', '\u0028',
'\u002B', '\u007C', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u005D', '\u0024', '\u002A', '\u0029', '\u003B', '\u00AC',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u0023', '\u00F1', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0060', '\u003A', '\u00D1', '\u0040', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u20AC', '\u00B5', '\u00A8',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u005E', '\u0021', '\u00AF', '\u007E', '\u00B4', '\u00D7',
'\u007B', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u007D', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u00F9',
'\u00FA', '\u00FF', '\u005C', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0xBB; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x69; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x4A; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0x5A; break;
case 0x005E: ch = 0xBA; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xBD; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x49; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xA1; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0x5F; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x7B; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x6A; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0xBB; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x69; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x4A; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0x5A; break;
case 0xFF3E: ch = 0xBA; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xBD; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0xBB; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x69; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x4A; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0x5A; break;
case 0x005E: ch = 0xBA; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xBD; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x49; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xA1; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0x5F; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x7B; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x6A; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0xBB; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x69; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x4A; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0x5A; break;
case 0xFF3E: ch = 0xBA; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xBD; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1145
public class ENCibm1145 : CP1145
{
public ENCibm1145() : base() {}
}; // class ENCibm1145
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1146.cs - IBM EBCDIC (United Kingdom with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1146.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1146 : ByteEncoding
{
public CP1146()
: base(1146, ToChars, "IBM EBCDIC (United Kingdom with Euro)",
"ibm1146", "ibm1146", "ibm1146",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u00E7', '\u00F1', '\u0024', '\u002E', '\u003C', '\u0028',
'\u002B', '\u007C', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u0021', '\u00A3', '\u002A', '\u0029', '\u003B', '\u00AC',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00A6', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0060', '\u003A', '\u0023', '\u0040', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u20AC', '\u00B5', '\u00AF',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u005B', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u005E', '\u005D', '\u007E', '\u00A8', '\u00B4', '\u00D7',
'\u007B', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u007D', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u00F9',
'\u00FA', '\u00FF', '\u005C', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x5A; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x4A; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xB1; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0xBB; break;
case 0x005E: ch = 0xBA; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xBC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0x5B; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0x5F; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xA1; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xA1; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x5A; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x4A; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xB1; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0xBB; break;
case 0xFF3E: ch = 0xBA; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xBC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x5A; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x4A; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xB1; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0xBB; break;
case 0x005E: ch = 0xBA; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0x4F; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xBC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0x5B; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0x5F; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xA1; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xA1; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x5A; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x4A; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xB1; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0xBB; break;
case 0xFF3E: ch = 0xBA; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0x4F; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xBC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1146
public class ENCibm1146 : CP1146
{
public ENCibm1146() : base() {}
}; // class ENCibm1146
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1147.cs - IBM EBCDIC (France with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1147.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1147 : ByteEncoding
{
public CP1147()
: base(1147, ToChars, "IBM EBCDIC (France with Euro)",
"ibm1147", "ibm1147", "ibm1147",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u0040', '\u00E1', '\u00E3', '\u00E5',
'\u005C', '\u00F1', '\u00B0', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u007B', '\u00EA', '\u00EB',
'\u007D', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u00A7', '\u0024', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00F9', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u00B5', '\u003A', '\u00A3', '\u00E0', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u005B', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u20AC', '\u0060', '\u00A8',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u0023', '\u00A5', '\u00B7',
'\u00A9', '\u005D', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u007E', '\u00B4', '\u00D7',
'\u00E9', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u00E8', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u00A6',
'\u00FA', '\u00FF', '\u00E7', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0xB1; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x44; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x90; break;
case 0x005C: ch = 0x48; break;
case 0x005D: ch = 0xB5; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0xA0; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x51; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x54; break;
case 0x007E: ch = 0xBD; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0x7B; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xDD; break;
case 0x00A7: ch = 0x5A; break;
case 0x00A8: ch = 0xA1; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x4A; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0x79; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x7C; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0xE0; break;
case 0x00E8: ch = 0xD0; break;
case 0x00E9: ch = 0xC0; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0x6A; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0xB1; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x44; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x90; break;
case 0xFF3C: ch = 0x48; break;
case 0xFF3D: ch = 0xB5; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0xA0; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x51; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x54; break;
case 0xFF5E: ch = 0xBD; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0xB1; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x44; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x90; break;
case 0x005C: ch = 0x48; break;
case 0x005D: ch = 0xB5; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0xA0; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x51; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x54; break;
case 0x007E: ch = 0xBD; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0x7B; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0xDD; break;
case 0x00A7: ch = 0x5A; break;
case 0x00A8: ch = 0xA1; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x4A; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0x79; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x7C; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0xE0; break;
case 0x00E8: ch = 0xD0; break;
case 0x00E9: ch = 0xC0; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0x6A; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0xB1; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x44; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x90; break;
case 0xFF3C: ch = 0x48; break;
case 0xFF3D: ch = 0xB5; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0xA0; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x51; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x54; break;
case 0xFF5E: ch = 0xBD; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1147
public class ENCibm1147 : CP1147
{
public ENCibm1147() : base() {}
}; // class ENCibm1147
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1148.cs - IBM EBCDIC (International with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1148.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1148 : ByteEncoding
{
public CP1148()
: base(1148, ToChars, "IBM EBCDIC (International with Euro)",
"ibm1148", "ibm1148", "ibm1148",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u00E7', '\u00F1', '\u005B', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u005D', '\u0024', '\u002A', '\u0029', '\u003B', '\u005E',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00A6', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u0060', '\u003A', '\u0023', '\u0040', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u00E6', '\u00B8', '\u00C6', '\u20AC', '\u00B5', '\u007E',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
'\u00DE', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
'\u007B', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u007D', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u00F9',
'\u00FA', '\u00FF', '\u005C', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x4A; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0x5A; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xA1; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x4A; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0x5A; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xA1; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0x7C; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0x4A; break;
case 0x005C: ch = 0xE0; break;
case 0x005D: ch = 0x5A; break;
case 0x005E: ch = 0x5F; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x79; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0xC0; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0xD0; break;
case 0x007E: ch = 0xA1; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xBE; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x9E; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0xAC; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0xEC; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0xAE; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0x9C; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x8C; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xCC; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0x8E; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0x7C; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0x4A; break;
case 0xFF3C: ch = 0xE0; break;
case 0xFF3D: ch = 0x5A; break;
case 0xFF3E: ch = 0x5F; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x79; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0xC0; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0xD0; break;
case 0xFF5E: ch = 0xA1; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1148
public class ENCibm1148 : CP1148
{
public ENCibm1148() : base() {}
}; // class ENCibm1148
}; // namespace I18N.Rare
+895
View File
@@ -0,0 +1,895 @@
/*
* CP1149.cs - IBM EBCDIC (Icelandic with Euro) code page.
*
* Copyright (c) 2002 Southern Storm Software, Pty Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
// Generated from "ibm-1149.ucm".
namespace I18N.Rare
{
using System;
using I18N.Common;
public class CP1149 : ByteEncoding
{
public CP1149()
: base(1149, ToChars, "IBM EBCDIC (Icelandic with Euro)",
"ibm1149", "ibm1149", "ibm1149",
false, false, false, false, 1252)
{}
private static readonly char[] ToChars = {
'\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
'\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
'\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
'\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
'\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
'\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
'\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
'\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
'\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
'\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
'\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u00A0',
'\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u00E5',
'\u00E7', '\u00F1', '\u00DE', '\u002E', '\u003C', '\u0028',
'\u002B', '\u0021', '\u0026', '\u00E9', '\u00EA', '\u00EB',
'\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
'\u00C6', '\u0024', '\u002A', '\u0029', '\u003B', '\u00D6',
'\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
'\u00C3', '\u00C5', '\u00C7', '\u00D1', '\u00A6', '\u002C',
'\u0025', '\u005F', '\u003E', '\u003F', '\u00F8', '\u00C9',
'\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
'\u00CC', '\u00F0', '\u003A', '\u0023', '\u00D0', '\u0027',
'\u003D', '\u0022', '\u00D8', '\u0061', '\u0062', '\u0063',
'\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
'\u00AB', '\u00BB', '\u0060', '\u00FD', '\u007B', '\u00B1',
'\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
'\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
'\u007D', '\u00B8', '\u005D', '\u20AC', '\u00B5', '\u00F6',
'\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
'\u0079', '\u007A', '\u00A1', '\u00BF', '\u0040', '\u00DD',
'\u005B', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
'\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
'\u00AC', '\u007C', '\u00AF', '\u00A8', '\u005C', '\u00D7',
'\u00FE', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
'\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
'\u007E', '\u00F2', '\u00F3', '\u00F5', '\u00E6', '\u004A',
'\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
'\u0051', '\u0052', '\u00B9', '\u00FB', '\u00FC', '\u00F9',
'\u00FA', '\u00FF', '\u00B4', '\u00F7', '\u0053', '\u0054',
'\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
'\u00B2', '\u00D4', '\u005E', '\u00D2', '\u00D3', '\u00D5',
'\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
'\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
'\u00DC', '\u00D9', '\u00DA', '\u009F',
};
protected override void ToBytes(char[] chars, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(chars[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xAC; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xAE; break;
case 0x005C: ch = 0xBE; break;
case 0x005D: ch = 0x9E; break;
case 0x005E: ch = 0xEC; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x8C; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x8E; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x9C; break;
case 0x007E: ch = 0xCC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xE0; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x5A; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0x7C; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0x5F; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0x4A; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0xD0; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x79; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xA1; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0xC0; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xAC; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xAE; break;
case 0xFF3C: ch = 0xBE; break;
case 0xFF3D: ch = 0x9E; break;
case 0xFF3E: ch = 0xEC; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x8C; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x8E; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x9C; break;
case 0xFF5E: ch = 0xCC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
protected override void ToBytes(String s, int charIndex, int charCount,
byte[] bytes, int byteIndex)
{
int ch;
while(charCount > 0)
{
ch = (int)(s[charIndex++]);
if(ch >= 4) switch(ch)
{
case 0x000B:
case 0x000C:
case 0x000D:
case 0x000E:
case 0x000F:
case 0x0010:
case 0x0011:
case 0x0012:
case 0x0013:
case 0x0018:
case 0x0019:
case 0x001C:
case 0x001D:
case 0x001E:
case 0x001F:
case 0x00B6:
break;
case 0x0004: ch = 0x37; break;
case 0x0005: ch = 0x2D; break;
case 0x0006: ch = 0x2E; break;
case 0x0007: ch = 0x2F; break;
case 0x0008: ch = 0x16; break;
case 0x0009: ch = 0x05; break;
case 0x000A: ch = 0x25; break;
case 0x0014: ch = 0x3C; break;
case 0x0015: ch = 0x3D; break;
case 0x0016: ch = 0x32; break;
case 0x0017: ch = 0x26; break;
case 0x001A: ch = 0x3F; break;
case 0x001B: ch = 0x27; break;
case 0x0020: ch = 0x40; break;
case 0x0021: ch = 0x4F; break;
case 0x0022: ch = 0x7F; break;
case 0x0023: ch = 0x7B; break;
case 0x0024: ch = 0x5B; break;
case 0x0025: ch = 0x6C; break;
case 0x0026: ch = 0x50; break;
case 0x0027: ch = 0x7D; break;
case 0x0028: ch = 0x4D; break;
case 0x0029: ch = 0x5D; break;
case 0x002A: ch = 0x5C; break;
case 0x002B: ch = 0x4E; break;
case 0x002C: ch = 0x6B; break;
case 0x002D: ch = 0x60; break;
case 0x002E: ch = 0x4B; break;
case 0x002F: ch = 0x61; break;
case 0x0030:
case 0x0031:
case 0x0032:
case 0x0033:
case 0x0034:
case 0x0035:
case 0x0036:
case 0x0037:
case 0x0038:
case 0x0039:
ch += 0x00C0;
break;
case 0x003A: ch = 0x7A; break;
case 0x003B: ch = 0x5E; break;
case 0x003C: ch = 0x4C; break;
case 0x003D: ch = 0x7E; break;
case 0x003E: ch = 0x6E; break;
case 0x003F: ch = 0x6F; break;
case 0x0040: ch = 0xAC; break;
case 0x0041:
case 0x0042:
case 0x0043:
case 0x0044:
case 0x0045:
case 0x0046:
case 0x0047:
case 0x0048:
case 0x0049:
ch += 0x0080;
break;
case 0x004A:
case 0x004B:
case 0x004C:
case 0x004D:
case 0x004E:
case 0x004F:
case 0x0050:
case 0x0051:
case 0x0052:
ch += 0x0087;
break;
case 0x0053:
case 0x0054:
case 0x0055:
case 0x0056:
case 0x0057:
case 0x0058:
case 0x0059:
case 0x005A:
ch += 0x008F;
break;
case 0x005B: ch = 0xAE; break;
case 0x005C: ch = 0xBE; break;
case 0x005D: ch = 0x9E; break;
case 0x005E: ch = 0xEC; break;
case 0x005F: ch = 0x6D; break;
case 0x0060: ch = 0x8C; break;
case 0x0061:
case 0x0062:
case 0x0063:
case 0x0064:
case 0x0065:
case 0x0066:
case 0x0067:
case 0x0068:
case 0x0069:
ch += 0x0020;
break;
case 0x006A:
case 0x006B:
case 0x006C:
case 0x006D:
case 0x006E:
case 0x006F:
case 0x0070:
case 0x0071:
case 0x0072:
ch += 0x0027;
break;
case 0x0073:
case 0x0074:
case 0x0075:
case 0x0076:
case 0x0077:
case 0x0078:
case 0x0079:
case 0x007A:
ch += 0x002F;
break;
case 0x007B: ch = 0x8E; break;
case 0x007C: ch = 0xBB; break;
case 0x007D: ch = 0x9C; break;
case 0x007E: ch = 0xCC; break;
case 0x007F: ch = 0x07; break;
case 0x0080:
case 0x0081:
case 0x0082:
case 0x0083:
case 0x0084:
ch -= 0x0060;
break;
case 0x0085: ch = 0x15; break;
case 0x0086: ch = 0x06; break;
case 0x0087: ch = 0x17; break;
case 0x0088:
case 0x0089:
case 0x008A:
case 0x008B:
case 0x008C:
ch -= 0x0060;
break;
case 0x008D: ch = 0x09; break;
case 0x008E: ch = 0x0A; break;
case 0x008F: ch = 0x1B; break;
case 0x0090: ch = 0x30; break;
case 0x0091: ch = 0x31; break;
case 0x0092: ch = 0x1A; break;
case 0x0093:
case 0x0094:
case 0x0095:
case 0x0096:
ch -= 0x0060;
break;
case 0x0097: ch = 0x08; break;
case 0x0098:
case 0x0099:
case 0x009A:
case 0x009B:
ch -= 0x0060;
break;
case 0x009C: ch = 0x04; break;
case 0x009D: ch = 0x14; break;
case 0x009E: ch = 0x3E; break;
case 0x009F: ch = 0xFF; break;
case 0x00A0: ch = 0x41; break;
case 0x00A1: ch = 0xAA; break;
case 0x00A2: ch = 0xB0; break;
case 0x00A3: ch = 0xB1; break;
case 0x00A5: ch = 0xB2; break;
case 0x00A6: ch = 0x6A; break;
case 0x00A7: ch = 0xB5; break;
case 0x00A8: ch = 0xBD; break;
case 0x00A9: ch = 0xB4; break;
case 0x00AA: ch = 0x9A; break;
case 0x00AB: ch = 0x8A; break;
case 0x00AC: ch = 0xBA; break;
case 0x00AD: ch = 0xCA; break;
case 0x00AE: ch = 0xAF; break;
case 0x00AF: ch = 0xBC; break;
case 0x00B0: ch = 0x90; break;
case 0x00B1: ch = 0x8F; break;
case 0x00B2: ch = 0xEA; break;
case 0x00B3: ch = 0xFA; break;
case 0x00B4: ch = 0xE0; break;
case 0x00B5: ch = 0xA0; break;
case 0x00B7: ch = 0xB3; break;
case 0x00B8: ch = 0x9D; break;
case 0x00B9: ch = 0xDA; break;
case 0x00BA: ch = 0x9B; break;
case 0x00BB: ch = 0x8B; break;
case 0x00BC: ch = 0xB7; break;
case 0x00BD: ch = 0xB8; break;
case 0x00BE: ch = 0xB9; break;
case 0x00BF: ch = 0xAB; break;
case 0x00C0: ch = 0x64; break;
case 0x00C1: ch = 0x65; break;
case 0x00C2: ch = 0x62; break;
case 0x00C3: ch = 0x66; break;
case 0x00C4: ch = 0x63; break;
case 0x00C5: ch = 0x67; break;
case 0x00C6: ch = 0x5A; break;
case 0x00C7: ch = 0x68; break;
case 0x00C8: ch = 0x74; break;
case 0x00C9: ch = 0x71; break;
case 0x00CA: ch = 0x72; break;
case 0x00CB: ch = 0x73; break;
case 0x00CC: ch = 0x78; break;
case 0x00CD: ch = 0x75; break;
case 0x00CE: ch = 0x76; break;
case 0x00CF: ch = 0x77; break;
case 0x00D0: ch = 0x7C; break;
case 0x00D1: ch = 0x69; break;
case 0x00D2: ch = 0xED; break;
case 0x00D3: ch = 0xEE; break;
case 0x00D4: ch = 0xEB; break;
case 0x00D5: ch = 0xEF; break;
case 0x00D6: ch = 0x5F; break;
case 0x00D7: ch = 0xBF; break;
case 0x00D8: ch = 0x80; break;
case 0x00D9: ch = 0xFD; break;
case 0x00DA: ch = 0xFE; break;
case 0x00DB: ch = 0xFB; break;
case 0x00DC: ch = 0xFC; break;
case 0x00DD: ch = 0xAD; break;
case 0x00DE: ch = 0x4A; break;
case 0x00DF: ch = 0x59; break;
case 0x00E0: ch = 0x44; break;
case 0x00E1: ch = 0x45; break;
case 0x00E2: ch = 0x42; break;
case 0x00E3: ch = 0x46; break;
case 0x00E4: ch = 0x43; break;
case 0x00E5: ch = 0x47; break;
case 0x00E6: ch = 0xD0; break;
case 0x00E7: ch = 0x48; break;
case 0x00E8: ch = 0x54; break;
case 0x00E9: ch = 0x51; break;
case 0x00EA: ch = 0x52; break;
case 0x00EB: ch = 0x53; break;
case 0x00EC: ch = 0x58; break;
case 0x00ED: ch = 0x55; break;
case 0x00EE: ch = 0x56; break;
case 0x00EF: ch = 0x57; break;
case 0x00F0: ch = 0x79; break;
case 0x00F1: ch = 0x49; break;
case 0x00F2: ch = 0xCD; break;
case 0x00F3: ch = 0xCE; break;
case 0x00F4: ch = 0xCB; break;
case 0x00F5: ch = 0xCF; break;
case 0x00F6: ch = 0xA1; break;
case 0x00F7: ch = 0xE1; break;
case 0x00F8: ch = 0x70; break;
case 0x00F9: ch = 0xDD; break;
case 0x00FA: ch = 0xDE; break;
case 0x00FB: ch = 0xDB; break;
case 0x00FC: ch = 0xDC; break;
case 0x00FD: ch = 0x8D; break;
case 0x00FE: ch = 0xC0; break;
case 0x00FF: ch = 0xDF; break;
case 0x203E: ch = 0xBC; break;
case 0x20AC: ch = 0x9F; break;
case 0xFF01: ch = 0x4F; break;
case 0xFF02: ch = 0x7F; break;
case 0xFF03: ch = 0x7B; break;
case 0xFF04: ch = 0x5B; break;
case 0xFF05: ch = 0x6C; break;
case 0xFF06: ch = 0x50; break;
case 0xFF07: ch = 0x7D; break;
case 0xFF08: ch = 0x4D; break;
case 0xFF09: ch = 0x5D; break;
case 0xFF0A: ch = 0x5C; break;
case 0xFF0B: ch = 0x4E; break;
case 0xFF0C: ch = 0x6B; break;
case 0xFF0D: ch = 0x60; break;
case 0xFF0E: ch = 0x4B; break;
case 0xFF0F: ch = 0x61; break;
case 0xFF10:
case 0xFF11:
case 0xFF12:
case 0xFF13:
case 0xFF14:
case 0xFF15:
case 0xFF16:
case 0xFF17:
case 0xFF18:
case 0xFF19:
ch -= 0xFE20;
break;
case 0xFF1A: ch = 0x7A; break;
case 0xFF1B: ch = 0x5E; break;
case 0xFF1C: ch = 0x4C; break;
case 0xFF1D: ch = 0x7E; break;
case 0xFF1E: ch = 0x6E; break;
case 0xFF1F: ch = 0x6F; break;
case 0xFF20: ch = 0xAC; break;
case 0xFF21:
case 0xFF22:
case 0xFF23:
case 0xFF24:
case 0xFF25:
case 0xFF26:
case 0xFF27:
case 0xFF28:
case 0xFF29:
ch -= 0xFE60;
break;
case 0xFF2A:
case 0xFF2B:
case 0xFF2C:
case 0xFF2D:
case 0xFF2E:
case 0xFF2F:
case 0xFF30:
case 0xFF31:
case 0xFF32:
ch -= 0xFE59;
break;
case 0xFF33:
case 0xFF34:
case 0xFF35:
case 0xFF36:
case 0xFF37:
case 0xFF38:
case 0xFF39:
case 0xFF3A:
ch -= 0xFE51;
break;
case 0xFF3B: ch = 0xAE; break;
case 0xFF3C: ch = 0xBE; break;
case 0xFF3D: ch = 0x9E; break;
case 0xFF3E: ch = 0xEC; break;
case 0xFF3F: ch = 0x6D; break;
case 0xFF40: ch = 0x8C; break;
case 0xFF41:
case 0xFF42:
case 0xFF43:
case 0xFF44:
case 0xFF45:
case 0xFF46:
case 0xFF47:
case 0xFF48:
case 0xFF49:
ch -= 0xFEC0;
break;
case 0xFF4A:
case 0xFF4B:
case 0xFF4C:
case 0xFF4D:
case 0xFF4E:
case 0xFF4F:
case 0xFF50:
case 0xFF51:
case 0xFF52:
ch -= 0xFEB9;
break;
case 0xFF53:
case 0xFF54:
case 0xFF55:
case 0xFF56:
case 0xFF57:
case 0xFF58:
case 0xFF59:
case 0xFF5A:
ch -= 0xFEB1;
break;
case 0xFF5B: ch = 0x8E; break;
case 0xFF5C: ch = 0xBB; break;
case 0xFF5D: ch = 0x9C; break;
case 0xFF5E: ch = 0xCC; break;
default: ch = 0x3F; break;
}
bytes[byteIndex++] = (byte)ch;
--charCount;
}
}
}; // class CP1149
public class ENCibm1149 : CP1149
{
public ENCibm1149() : base() {}
}; // class ENCibm1149
}; // namespace I18N.Rare
Loaded 100 of 1521 files, more files were not shown because too many files have changed in this diff. Show more