The UPPERCASE macro converts a string or a part of it to upper case. It has two arguments:
  • The string to convert;
  • A length, indicating how many characters (starting from the beginning of the string) should be converted.
  • The length indicator can be smaller than one or larger than the length of the string; in that case, the whole string is convertered. Example:
    UPPERCASE(hello world)(1)
    UPPERCASE(hello world)(5)
    UPPERCASE(hello world)(0)
    

    This code sample expands to:

    Hello world
    HELLO world
    HELLO WORLD
    

    Go back to index of Yodl.

    Please send Yodl questions and comments to yodl@icce.rug.nl.

    Please send comments on these web pages to (address unknown)

    Copyright (c) 1997, 1998, 1999 Karel Kubat and Jan Nieuwenhuizen.

    Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


    This page was built from Yodl-1.31.18 by

    Stefan van der Eijk <(address unknown)>, Sun Jan 1 19:37:38 2006 CET.