• 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
character (Offset of stringA in stringB) of stringB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

character (Offset of stringA in stringB) of stringB


  • Subject: character (Offset of stringA in stringB) of stringB
  • From: Matthew Stuckwisch <email@hidden>
  • Date: Sun, 29 Dec 2002 16:37:33 -0600

Has anyone else found that, when working with Unicode strings (here we go again...) that if you were to, say, load three files, on a document, and the other two being a list of characters, one a scrambled version of the other, and try to replace the document's characters based on the other two files (basically, a cryptoquote deal), either "character" or "offset" doesn't work properly?

In trying to figure this, I literally came into a situation like the following:

A = character (offset of A in B) of C -- A _is_ in B, and B=C
--> False

Logically speaking, I see no reason that this should happen. Worst of all, it only fails on about half the runs, so when looping through a text file coding it up, half the characters end up correctly, the other half do not. Perhaps I've missed something?


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: character (Offset of stringA in stringB) of stringB
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: BUG: Store script Perversity - Bug found
  • Next by Date: Re: Basic instinct
  • Previous by thread: Re: How to close-quit an osascript making a dialog box?
  • Next by thread: Re: character (Offset of stringA in stringB) of stringB
  • Index(es):
    • Date
    • Thread