• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert first char to lower case
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert first char to lower case


  • Subject: Re: Convert first char to lower case
  • From: Arthur J Knapp <email@hidden>
  • Date: Fri, 11 Jan 2002 10:13:01 -0500

> Date: Thu, 10 Jan 2002 19:54:18 +0000
> From: has <email@hidden>
> Subject: Re: Convert first char to lower case

> BTW, I think I've found a simple way of doing a comparison of strings
> longer than 32KB:
>
> if a contains b and b contains a then
> true
> else
> false

> Has it been done before? Is this a reliable way to get round AS's inability
> to compare long strings for equality? Or does anyone know if there's
> instances where it doesn't work?

As I can recall, "contains" would fail to work within different
combinations of considering and ignoring statements for 32K+
strings.

It's been a while since I've tested or even thought about the 32K
limit. In truth, it's hard to even think of a good reason for needing
to compare strings that large. If I had to, I would almost certainly
use BBEdit. (Yes, it's ME saying this...) ;-)


> As far as I can tell, 'contains' is not subject to the 32KB limit (i.e. it
> seems to work ok here on OS8.6). But if it's known to break on other
> versions of AS I'd sure like to hear before I use it for anything important.

Try creating 32K strings where a single "letter" character is
different. This is how I discovered a number of interesting aspects
of AppleScript's comparison abilities.



{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://home.earthlink.net/~eagrant/>
on error number -128
end try
}


  • Prev by Date: Whoops! & thanks Paul (OE script)
  • Next by Date: Re: HD name change for X
  • Previous by thread: Re: Convert first char to lower case
  • Next by thread: Akua Sweets
  • Index(es):
    • Date
    • Thread