線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:3071
推到 Plurk!
推到 Facebook!

Units UnicodeCodecs- Source

 
conundrum
尊榮會員


發表:893
回覆:1272
積分:643
註冊:2004-01-06

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-04-17 20:12:53 IP:218.175.xxx.xxx 未訂閱
引言: Units UnicodeCodecs- Source http://fundementals.sourceforge.net/cUnicodeCodecs.html } { Unicode codecs v3.12 } { } { This unit is copyright c 2002-2004 by } { David J Butler and Dieter Kohler. } { } { This unit is part of Delphi Fundamentals. } { Its original file name is cUnicodeCodecs.pas } { The latest version is available from the Fundamentals home page } { http://fundementals.sourceforge.net/ } { A forum is available on SourceForge for general discussion } { http://sourceforge.net/forum/forum.php?forum_id=2117 } { } { This unit is also part of the Open XML Utility Library. } { http://www.philo.de/xml/ } { } { } { LICENSE } { } { The contents of this file are subject to the Mozilla Public License Version } { 1.1 (the "License"); you may not use this file except in compliance with } { the License. You may obtain a copy of the License at } { "http://www.mozilla.org/MPL/" } { } { Software distributed under the License is distributed on an "AS IS" basis, } { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for } { the specific language governing rights and limitations under the License. } { } { The Original Code is "cUnicodeCodecs.pas". } { } { The Initial Developers of the Original Code are David J Butler (Pretoria, } { South Africa, "http://fundementals.sourceforge.net/") and Dieter Kohler } { (Heidelberg, Germany, "http://www.philo.de/"). Portions created by the } { Initial Developers are Copyright (C) 2002-2004 David J Butler and } { Dieter Kohler. All Rights Reserved. } { } { Alternatively, the contents of this file may be used under the terms of the } { GNU General Public License Version 2 or later (the "GPL"), in which case the } { provisions of the GPL are applicable instead of those above. If you wish to } { allow use of your version of this file only under the terms of the GPL, and } { not to allow others to use your version of this file under the terms of the } { MPL, indicate your decision by deleting the provisions above and replace } { them with the notice and other provisions required by the GPL. If you do not } { delete the provisions above, a recipient may use your version of this file } { under the terms of any one of the MPL or the GPL. } { } { } { DESCRIPTION } { } { Codecs (encoders/decoders) for Unicode text. } { } { To decode or encode Unicode text, use one of the EncodingToUTF16 or } { UTF16ToEncoding functions. } { } { For example, to convert an ISO-8859-1 string into an Unicode string: } { } { WideStr := EncodingToUTF16(TISO8859_1Codec, 'ISO-8859-1 String'); } { } { or alternatively, using an alias: } { } { WideStr := EncodingToUTF16('iso-8859-1', 'ISO-8859-1 String'); } { WideStr := EncodingToUTF16('latin1', 'ISO-8859-1 String'); } { } { } { REVISION HISTORY } { } { 17/04/2002 0.01 Initial version. ISO8859, Mac, Win1250-1252, UTF. } { 20/04/2002 0.02 EBCDIC-US. } { 28/10/2002 3.03 Refactored. } { 29/10/2002 3.04 UTF-8 string functions. } { 04/11/2002 3.05 Test cases. Fixed bug in UTF-8 encoding function. } { 23/05/2003 3.06 Detection routines. } { 28/09/2003 3.07 Renamed ASCII to USASCII for clarity. } { 30/10/2003 3.08 Moved character mappings to unit cUnicodeMaps. } { 10/01/2004 3.09 Moved generic functions to cUnicodeChar and cUnicode. } { Revision of codec classes. } { 15/03/2004 3.10 Moved character mappings into codec classes. } { UCS2 codec. } { 11/04/2004 3.11 Improved Read/Write functions. } { 19/04/2004 3.12 Small revisions. } { {$INCLUDE cDefines.inc}
發表人 - conundrum 於 2005/04/17 20:14:09
系統時間:2024-04-29 12:38:41
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!