[jawsscripts] Re: StringContains. can an Ending position be determined?

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 25 Jul 2010 19:08:50 +1000

wo! right! hang on, I gotta check through this one! thanks Jim so much for
the, "code fragment," man eh.
Sorry I'm soooo far behind my acknowledgments!

Geoff c.


----- Original Message ----- 
From: "Jim Bauer" <holdsworthfan@xxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, July 20, 2010 4:20 AM
Subject: [jawsscripts] Re: StringContains. can an Ending position be
determined?


> If pos = stringContains(s, someString) and lSomeString =
stringLength(someString), SomeString's ending position in S will be pos +
lSomeString - 1.
>
>
> On Tue, 20 Jul 2010 03:29:52 +1000, Geoff Chapman wrote:
> > Mighty Scripters.
> > In wanting to first isolate and reprocess the textual, and also numeric
Caller ID Numeric components, of a mixed line containing firstly a 3 digit
number, that's ok as this is constant, then a couple of words that I need to
isolate, , then sometimes, not always though, a bunch of numbers as a Caller
ID at the end of these lines, with nothing but what jaws speaks as, Blank,
or character 0 if you queery it, between these 3 separate components as
known delimiters,
> > well, A much more advanced scripter friend of mine pulled me out of
trouble bybuilding a little function of his own which annilizes whether a
given string contains numeric components or not. And I hope to test this
tomorrow, now that I've finally formed up all the processing around text it
needs to look for in the Text String status component section, of these
lines.
> > etc.
> >
> > However, it occurred to me, to wanna ask, well,
> > you know how the StringContains BuiltIn,
> > returns the starting position in a given string, where the second
parameter string your searching for, starts to match,
> > well, I wondered, whether any fancy dude up here, may've ever divined
some magic code/way, of, say, building something which could return the
number of the ending position of such a string as well?
> >
> > Would not others find this a handy feature to have sometimes?
> >
> > I just wondered eh.
> >
> > Thanks for any thoughts.
> >
> > geoff c.
> >
> >
> >
> > __________�
> >
> > View the list's information and change your settings at
> > http://www.freelists.org/list/jawsscripts
>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: