CAN CSA-ISO IEC 1539-2-2002 Information Technology - Programming Languages - Fortran - Part 2 Varying Length Character Strings.pdf

上传人:feelhesitate105 文档编号:590597 上传时间:2018-12-15 格式:PDF 页数:31 大小:296.54KB
下载 相关 举报
CAN CSA-ISO IEC 1539-2-2002 Information Technology - Programming Languages - Fortran - Part 2 Varying Length Character Strings.pdf_第1页
第1页 / 共31页
CAN CSA-ISO IEC 1539-2-2002 Information Technology - Programming Languages - Fortran - Part 2 Varying Length Character Strings.pdf_第2页
第2页 / 共31页
CAN CSA-ISO IEC 1539-2-2002 Information Technology - Programming Languages - Fortran - Part 2 Varying Length Character Strings.pdf_第3页
第3页 / 共31页
CAN CSA-ISO IEC 1539-2-2002 Information Technology - Programming Languages - Fortran - Part 2 Varying Length Character Strings.pdf_第4页
第4页 / 共31页
CAN CSA-ISO IEC 1539-2-2002 Information Technology - Programming Languages - Fortran - Part 2 Varying Length Character Strings.pdf_第5页
第5页 / 共31页
亲,该文档总共31页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、Reference numberISO/IEC 1539-2:2000(E)ISO/IEC 2000Information technology Programminglanguages Fortran Part 2:Varying length character stringsTechnologies de linformation Langages de programmation Fortran Partie 2: Chanes de caractres de longueur variableNational Standard of CanadaCAN/CSA-ISO/IEC 153

2、9-2:02(ISO/IEC 1539-2:2000)International Standard ISO/IEC 1539-2:2000 (second edition, 2000-06-01) has been adopted withoutmodification (IDT) as CSA Standard CAN/CSA-ISO/IEC 1539-2:02, which has been approved as a NationalStandard of Canada by the Standards Council of Canada.ISBN 1-55324-904-6 Decem

3、ber 2002The Canadian Standards Association (CSA), The Standards Council of Canada is theunder whose auspices this National Standard has been coordinating body of the National Standards system, produced, was chartered in 1919 and accredited by a federation of independent, autonomousthe Standards Coun

4、cil of Canada to the National organizations working towards the furtherStandards system in 1973. It is a not-for-profit, development and improvement of voluntarynonstatutory, voluntary membership association standardization in the national interest.engaged in standards development and certification

5、The principal objects of the Council are to foster activities. and promote voluntary standardization as a means CSA standards reflect a national consensus of of advancing the national economy, benefiting theproducers and users including manufacturers, health, safety, and welfare of the public, assis

6、ting consumers, retailers, unions and professional and protecting the consumer, facilitating domestic organizations, and governmental agencies. The and international trade, and furthering internationalstandards are used widely by industry and commerce cooperation in the field of standards.and often

7、adopted by municipal, provincial, and A National Standard of Canada is a standard whichfederal governments in their regulations, particularly has been approved by the Standards Council ofin the fields of health, safety, building and Canada and one which reflects a reasonableconstruction, and the env

8、ironment. agreement among the views of a number of capableIndividuals, companies, and associations across individuals whose collective interests provide to theCanada indicate their support for CSAs standards greatest practicable extent a balance ofdevelopment by volunteering their time and skills to

9、 representation of producers, users, consumers, andCSA Committee work and supporting the Associations others with relevant interests, as may be appropriateobjectives through sustaining memberships. The to the subject in hand. It normally is a standardmore than 7000 committee volunteers and the 2000

10、which is capable of making a significant and timelysustaining memberships together form CSAs total contribution to the national interest.membership from which its Directors are chosen. Approval of a standard as a National Standard ofSustaining memberships represent a major source of Canada indicates

11、 that a standard conforms to theincome for CSAs standards development activities. criteria and procedures established by the StandardsThe Association offers certification and testing Council of Canada. Approval does not refer to theservices in support of and as an extension to its technical content

12、of the standard; this remains thestandards development activities. To ensure the continuing responsibility of the accreditedintegrity of its certification process, the Association standards-development organization.regularly and continually audits and inspects products Those who have a need to apply

13、 standards arethat bear the CSA Mark. encouraged to use National Standards of CanadaIn addition to its head office and laboratory complex whenever practicable. These standards are subject in Toronto, CSA has regional branch offices in major to periodic review; therefore, users are cautioned centres

14、across Canada and inspection and testing to obtain the latest edition from the organizationagencies in eight countries. Since 1919, the preparing the standard.Association has developed the necessary expertise to The responsibility for approving National Standards meet its corporate mission: CSA is a

15、n independent of Canada rests with theservice organization whose mission is to provide an Standards Council of Canadaopen and effective forum for activities facilitating the 270 Albert Street, Suite 200exchange of goods and services through the use of Ottawa, Ontario, K1P 6N7standards, certification

16、 and related services to meet Canadanational and international needs.For further information on CSA services, write toCanadian Standards Association5060 Spectrum Way, Suite 100Mississauga, Ontario, L4W 5N6CanadaAlthough the intended primary application of this Standard is stated in its Scope, it is

17、importantto note that it remains the responsibility of the users to judge its suitability for their particular purpose.Registered trade-mark of Canadian Standards AssociationCAN/CSA-ISO/IEC 1539-2:02 Fortran Part 2: Varying length character stringsInformation technology Programming languages Decembe

18、r 2002 Canadian Standards Association CSA/1CAN/CSA-ISO/IEC 1539-2:02Information technology Programming languages Fortran Part 2: Varying lengthcharacter stringsCSA PrefaceStandards development within the Information Technology sector is harmonized with internationalstandards development. Through the

19、 CSA Technical Committee on Information Technology (TCIT),Canadians serve as the Canadian Advisory Committee (CAC) on ISO/IEC Joint Technical Committee 1 onInformation Technology (ISO/IEC JTC1) for the Standards Council of Canada (SCC), the ISO memberbody for Canada and sponsor of the Canadian Natio

20、nal Committee of the IEC. Also, as a member of theInternational Telecommunication Union (ITU), Canada participates in the International Telegraph andTelephone Consultative Committee (ITU-T).This Standard supersedes CAN/CSA-ISO/IEC 1539-2-97 (adoption of ISO/IEC 1539-2:1994).This International Standa

21、rd was reviewed by the CSA TCIT under the jurisdiction of the StrategicSteering Committee on Information Technology and deemed acceptable for use in Canada. (Acommittee membership list is available on request from the CSA Project Manager.) From time to time,ISO/IEC may publish addenda, corrigenda, e

22、tc. The CSA TCIT will review these documents for approvaland publication. For a listing, refer to the CSA Information Products catalogue or CSA Info Update orcontact a CSA Sales representative. This Standard has been formally approved, without modification, bythe Technical Committee and has been app

23、roved as a National Standard of Canada by the StandardsCouncil of Canada.December 2002 Canadian Standards Association 2002All rights reserved. No part of this publication may be reproduced in any form whatsoever without the priorpermission of the publisher. ISO/IEC material is reprinted with permiss

24、ion. Where the words “thisInternational Standard” appear in the text, they should be interpreted as “this National Standard ofCanada”. Inquiries regarding this National Standard of Canada should be addressed to Canadian Standards Association 5060 Spectrum Way, Suite 100, Mississauga, Ontario, Canada

25、 L4W 5N6 1-800-463-6727 416-747-4044www.csa.caReference numberISO/IEC 1539-2:2000(E)ISO/IEC 2000INTERNATIONALSTANDARDISO/IEC1539-2Second edition2000-06-01Information technology Programminglanguages Fortran Part 2:Varying length character stringsTechnologies de linformation Langages de programmation

26、Fortran Partie 2: Chanes de caractres de longueur variableISO/IEC 1539-2:2000(E)PDF disclaimerThis PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall notbe edited unless the typefaces which are embedded are licensed to an

27、d installed on the computer performing the editing. In downloading thisfile, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in thisarea.Adobe is a trademark of Adobe Systems Incorporated.Details of the software pr

28、oducts used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameterswere optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely eventthat a problem relating to it is found,

29、please inform the Central Secretariat at the address given below. ISO/IEC 2000All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronicor mechanical, including photocopying and microfilm, without permission in w

30、riting from either ISO at the address below or ISOs member bodyin the country of the requester.ISO copyright officeCase postale 56 Gb7 CH-1211 Geneva 20Tel. + 41 22 749 01 11Fax + 41 22 734 10 79E-mail copyrightiso.chWeb www.iso.chii ISO/IEC 2000 All rights reservedISO/IEC 1539-2:2000(E)CONTENTS1 Sc

31、ope 12 Normative References 23 Requirements 33.1 The Name of the Module 33.2 The Type 33.3 Extended Meanings for Intrinsic Operators 33.3.1 Assignment 33.3.2 Concatenation 43.3.3 Comparisons 43.4 Extended Meanings for Generic Intrinsic Procedures 53.4.1 ADJUSTL (string) 53.4.2 ADJUSTR (string) 53.4.

32、3 CHAR (string , length) 53.4.4 IACHAR (c) 63.4.5 ICHAR (c) 63.4.6 INDEX (string, substring , back) 63.4.7 LEN (string) 73.4.8 LEN_TRIM (string) 73.4.9 LGE (string_a, string_b) 73.4.10 LGT (string_a, string_b) 73.4.11 LLE (string_a, string_b) 83.4.12 LLT (string_a, string_b) 83.4.13 REPEAT (string,

33、ncopies) 93.4.14 SCAN (string, set , back) 93.4.15 TRIM (string) 93.4.16 VERIFY (string, set , back) 103.5 Additional Generic Procedure for Type Conversion 103.5.1 VAR_STR (char) 103.6 Additional Generic Procedures for Input/Output 113.6.1 GET (string , maxlen, iostat) orGET (unit, string , maxlen,

34、iostat) orGET (string, set , separator, maxlen, iostat) orGET (unit, string, set , separator, maxlen, iostat) 113.6.2 PUT (string , iostat) or PUT (unit, string , iostat) 123.6.3 PUT_LINE (string , iostat) or PUT_LINE (unit, string , iostat) 123.7 Additional Generic Procedures for Substring Manipula

35、tion 123.7.1 EXTRACT (string , start, finish) 133.7.2 INSERT (string, start, substring) 133.7.3 REMOVE (string , start, finish) 133.7.4 REPLACE (string, start, substring) orREPLACE (string, start, finish, substring) orREPLACE (string, target, substring ,every, back) 14 ISO/IEC 2000 All rights reserv

36、ed iiiISO/IEC 1539-2:2000(E)3.7.5 SPLIT (string, word, set , separator, back) 15Annex A (informative). Module ISO_VARYING_STRING 16Annex B (informative). Two examples 17B.1 Word count 17B.2 Vocabulary list 18iv ISO/IEC 2000 All rights reservedISO/IEC 1539-2:2000(E) ISO/IEC 2000 All rights reserved v

37、ForewordISO (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 IECparticipate in the development of International Standards through technical

38、 committees established by therespective organization to deal with particular fields of technical activity. ISO and IEC technical committeescollaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, inliaison with ISO and IEC, also take part in th

39、e work.International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 3.In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1.Draft International Standards adopted by the joint technical committee are c

40、irculated to national bodies for voting.Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote.Attention is drawn to the possibility that some of the elements of this part of ISO/IEC 1539 may be the subject ofpatent rights. ISO and IEC shall

41、 not be held responsible for identifying any or all such patent rights.International Standard ISO/IEC 1539-2 was prepared by Joint Technical Committee ISO/IEC JTC 1, Informationtechnology, Subcommittee SC 22, Programming languages, their environments and system software interfaces.This second editio

42、n cancels and replaces the first edition (ISO/IEC 1539-2:1994), which has been technicallyrevised. The following summarises the changes made to the facilities provided by this part of ISO/IEC 1539:The assignment, concatenation, and comparison operations are extended to describe elemental semantics.C

43、HAR is extended to describe pure semantics.ADJUSTL, ADJUSTR, EXTRACT, IACHAR, ICHAR, INDEX, INSERT, LEN, LEN_TRIM, LGE, LGT, LLE, LLT,REMOVE, REPEAT, REPLACE, SCAN, SPLIT, TRIM, VAR_STR, and VERIFY are all extended to describeelemental semantics.ISO/IEC 1539 consists of the following parts, under th

44、e general title Information technology Programminglanguages Fortran:Gbe Part 1: Base languageGbe Part 2: Varying length character stringsAnnexes A and B of this part of ISO/IEC 1539 are for information only.ISO/IEC 1539-2:2000(E)IntroductionThis part of ISO/IEC 1539 has been prepared by ISO/IEC JTC1

45、/SC22/WG5, the technical working group forthe Fortran language. This part of ISO/IEC 1539 is an auxiliary standard to ISO/IEC 1539-1 : 1997, whichdefines the latest revision of the Fortran language, and is the first part of the multipart Fortran family ofstandards; this part of ISO/IEC 1539 is the s

46、econd part. The revised language defined by ISO/IEC 1539-1 :1997 is informally known as Fortran 95.This part of ISO/IEC 1539 defines the interface and semantics for a module that provides facilities for themanipulation of character strings of arbitrary and dynamically variable length. Annex A refers to a possibleimplementation, in Fortran 95, of a module that conforms to this part of ISO/IEC 1539. It should be noted,however, that this is purely for purposes of demonstrating the fe

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 标准规范 > 国际标准 > 其他

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1