Re: Lowercase equivalent to uppercase, or vice versa




"Rick Smith" <ricksmith@xxxxxxx> wrote in message news:1225lhe6r38lj5f@xxxxxxxxxxxxxxxxxxxxx
The COPY statement, for 2002, 7.1.2.3 General rules,
10, c), 3, states, in part, "... each lowercase letter is
equivalent to its corresponding uppercase letter, as
specified for the COBOL character repertoire in 8.1.2,
COBOL character repertoire.", and, the REPLACE
statement, 7.1.3.3 General rules, 8, c), 3, states, in part,
"... each lowercase letter is equivalent to its corresponding
uppercase letter, as specified for the COBOL character
repertoire in 8.1.2, COBOL character repertoire.".

However, COBOL character repertoire, 8.1.2.1 General
rules, 3, states, in part, "Equivalence of uppercase and
lowercase basic letters is achieved by folding from
uppercase to lowercase in accordance with the case
mapping described in Annex D."

Thus, it seems to me, that the wording in both the COPY
and REPLACE statements should be reversed to say
"each uppercase letter is equivalent to its corresponding
lowercase letter, ...", since folding is from uppercase to
lowercase, then equivalence should be from uppercase
to lowercase.

The same references apply to WD 1.5, except Annex C
instead of Annex D.

Not sure if "equivalence" has some special meaning in COBOL, but in math, equivalence is a symmetric relationship. So if A is equivalent to B, then it is always true that B is equivalent to A.

- Oliver

.



Relevant Pages

  • Lowercase equivalent to uppercase, or vice versa
    ... COBOL character repertoire.", and, the REPLACE ... each lowercase letter is equivalent to its corresponding ... uppercase letter, as specified for the COBOL character ... However, COBOL character repertoire, 8.1.2.1 General ...
    (comp.lang.cobol)
  • Re: Case-insensitivity considered harmful
    ... In many environments of the 1960s, monocase, specifically uppercase, ... you could get a lowercase print chain mounted, ... Bell Labs UNIX & C ... While there are some exceptions, older languages tend to ...
    (comp.arch)
  • Re: Case-insensitivity considered harmful
    ... - it is fastest to type lowercase ... CamelCase, either UpperCamelCase, or lowerCamelCase, are not too bad, ... and almost all of them were lowercase. ... UPPERCASE, and, and occasionally, ...
    (comp.arch)
  • Re: How to prevent cdr from capitalizing symbols?
    ... The original character set for Lisp was ... I don't think the IBM 704 or 709 even had a typewriter option. ... Uppercase only looks strange if you're used to lowercase. ...
    (comp.lang.lisp)
  • Re: gethostbyname
    ... If you need lowercase then call a routine to convert. ... uppercase, then these queried records will return as uppercase. ... Microsoft MVP - Directory Services ... Instead of the website you're using, I suggest to use OEx (Outlook Express ...
    (microsoft.public.win2000.active_directory)