Appendix C. Case-Sensitivity, Sort Order, Diacritical Marks, and Space-Sensitivity

This appendix covers the idiosyncrasies of uppercase and lowercase characters, sort order ranking, spacing, and diacritical marks in Director.

Case-Sensitivity

For the most part, Director is case-insensitive (that is, not case-sensitive).

The following are all case-insensitive:

  • Handler names

  • Variable names

  • String comparison using =, <>, contains, starts, or offset(), and clause evaluation in case statements.

  • Symbol names (see exceptions below)

  • Symbol lookup using deleteOne(), getOne(), getPos(), findPos(), and findPosNear(); refer to Chapter 6, and Chapter 19.

  • External local filenames, including Lingo properties that use external files

  • Macintosh hard drive names

  • Castmember names

  • Marker label names

  • Xtras’ names and methods

  • XObject names and methods

  • Lingo keywords

  • Strings recognized by Director, such as “left,” “right,” and “center”

  • VBScript and JavaScript using Microsoft Internet Explorer only

  • HTML tags

  • e-mail addresses

The following items are case-sensitive to some degree:

  • Symbols—converting a symbol to a string using string(#symbolName) will always return a string with the same case with which the symbol was first declared. Refer to Chapter 19.

  • String lookup using deleteOne(), getOne(), getPos(), findPos(), findPosNear(), and sort(); refer to Chapter 6.

  • String comparisons using <, <=, >, >=, min(), and max().

  • Macintosh File Type and Creator Codes (as used in the FileIO Xtra’s setFinderInfo, getFinderInfo(), and setFilterMask ...

Get Lingo in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.