ISO IEC TR 19769-2004 Information technology - Programming languages their environments and system software inferfaces - Extensions for the programming language.pdf
《ISO IEC TR 19769-2004 Information technology - Programming languages their environments and system software inferfaces - Extensions for the programming language.pdf》由会员分享,可在线阅读,更多相关《ISO IEC TR 19769-2004 Information technology - Programming languages their environments and system software inferfaces - Extensions for the programming language.pdf(16页珍藏版)》请在麦多课文档分享上搜索。
1、 Reference numberISO/IEC TR 19769:2004(E)ISO/IEC 2004TECHNICAL REPORT ISO/IECTR19769First edition2004-07-15Information technology Programming languages, their environments and system software interfaces Extensions for the programming language C to support new character data types Technologies de lin
2、formation Langages de programmation, leurs environnements et interfaces de logiciel systme Extensions pour que le langage de programmation C supporte des types de donnes de caractres nouveaux Copyright International Organization for Standardization Reproduced by IHS under license with ISO Not for Re
3、saleNo reproduction or networking permitted without license from IHS-,-ISO/IEC TR 19769:2004(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded
4、are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Deta
5、ils of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem r
6、elating to it is found, please inform the Central Secretariat at the address given below. ISO/IEC 2004 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfil
7、m, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2
8、004 All rights reservedCopyright International Organization for Standardization Reproduced by IHS under license with ISO Not for ResaleNo reproduction or networking permitted without license from IHS-,-Contents Page Foreword iv Introduction. v 1 Scope 1 2 Normative references. 1 3 The new typedefs 2
9、 4 Encoding . 3 5 String literals and character constants. 4 5.1 String literals and character constants notations. 4 5.2 The string concatenation. 4 6 Library functions. 5 6.1 The mbrtoc16 function . 5 6.2 The c16rtomb function . 6 6.3 The mbrtoc32 function . 7 6.4 The c32rtomb function . 8 7 ANNEX
10、 A Unicode encoding forms: UTF-16, UTF-32 . 9 ISO/IEC TR 19769:2004(E) ISO/IEC 2004 All rights reserved iiiCopyright International Organization for Standardization Reproduced by IHS under license with ISO Not for ResaleNo reproduction or networking permitted without license from IHS-,-ISO/IEC TR 197
11、69:2004(E) iv ISO/IEC 2004 All rights reservedForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the develop
12、ment of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmenta
13、l, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of the
14、joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote. In
15、exceptional circumstances, the joint technical committee may propose the publication of a Technical Report of one of the following types: type 1, when the required support cannot be obtained for the publication of an International Standard, despite repeated efforts; type 2, when the subject is still
16、 under technical development or where for any other reason there is the future but not immediate possibility of an agreement on an International Standard; type 3, when the joint technical committee has collected data of a different kind from that which is normally published as an International Stand
17、ard (“state of the art”, for example). Technical Reports of types 1 and 2 are subject to review within three years of publication, to decide whether they can be transformed into International Standards. Technical Reports of type 3 do not necessarily have to be reviewed until the data they provide ar
18、e considered to be no longer valid or useful. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. ISO/IEC TR 19769, which is a Technical Report o
19、f type 2, was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 22, Programming languages, their environments and system software interfaces. Copyright International Organization for Standardization Reproduced by IHS under license with ISO Not for ResaleNo
20、reproduction or networking permitted without license from IHS-,-Introduction The C language has evolved over the last decades, various code pages and multibyte libraries have been introduced, and extended character set support has been introduced; however, the support for extended character data typ
21、es in the C language is still limited. Today, the introduction and the success of the Unicode/ISO10646 standard and of its implementation in modern computer languages create ever increasing demands on the C language to give Unicode/ISO10646 better support. This paper addresses the introduction of ne
22、w extended character data types in the C language in order to support future character encoding forms, including Unicode/ISO10646. The Unicode standard supports 3 encoding forms: UTF-8 UTF-16 UTF-32 Each encoding form has advantages and disadvantages, so the choice of the encoding form should be lef
23、t to the application. Currently, some C applications implement UTF-8 using char type, UTF-16 using unsigned short or wchar_t, and UTF-32 using unsigned long or wchar_t. The current situation, however, faces the following major problems: The size of wchar_t is implementation defined. While wchar_t of
24、fers a form of platform portability for C applications, Unicode offers the possibility to write platform independent applications using a platform independent data format. There is no string literal for 16- or 32-bit based integer types, but the Unicode encoding forms require string literals. It is
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ISOIECTR197692004INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESTHEIRENVIRONMENTSANDSYSTEMSOFTWAREINFERFACESEXTENSIONSFORTHEPROGRAMMINGLANGUAGEPDF

链接地址:http://www.mydoc123.com/p-1257404.html