Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #1050

problem with simple string search

X-Received by 10.182.158.73 with SMTP id ws9mr13880887obb.46.1418577497511; Sun, 14 Dec 2014 09:18:17 -0800 (PST)
X-Received by 10.140.23.70 with SMTP id 64mr419514qgo.1.1418577497478; Sun, 14 Dec 2014 09:18:17 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!h15no20580048igd.0!news-out.google.com!r1ni50qat.1!nntp.google.com!w8no7496647qac.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.soft-sys.math.maple
Date Sun, 14 Dec 2014 09:18:17 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=177.179.166.253; posting-account=LB-LMAoAAAADp8MbHKd7RTjItXV1unFl
NNTP-Posting-Host 177.179.166.253
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <e33ec356-2115-4da9-a1d2-ccbecfe72d75@googlegroups.com> (permalink)
Subject problem with simple string search
From mahesh.marguii@gmail.com
Injection-Date Sun, 14 Dec 2014 17:18:17 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Lines 39
Xref csiph.com comp.soft-sys.math.maple:1050

Show key headers only | View raw


Hello,

I am having a difficulty with what seems to me as a simple string search...

My problem starts here:
L:="cálculo"; # this is the string

And this is the search I am trying to do:
searchtext("á",L);

For which I am getting the result "0" (without quotes).

I think it should be "2".

So I did this, just to check what I really have in the string L:
searchtext("Ã",L);
searchtext("¡",L);

And the results are respectively "2" and "3".

So it seems it is finding the individual characters but not both together... 

For me this seems really strange...!

CONTEXT: I am trying to write some simple routine to substitute "á" for "á", for example, according to a table of similar substitutions.

I am having the same problem with all these "composite characters" - like "ç","õ","³","ê","ã","é","á", etc.

Does any gentleman or lady here understands and is willing to help me with this problem that is blocking this work?

Thank you in advance for all your kind attention !

Mahesh  


Back to comp.soft-sys.math.maple | Previous | NextNext in thread | Find similar


Thread

problem with simple string search mahesh.marguii@gmail.com - 2014-12-14 09:18 -0800
  Re: problem with simple string search William Unruh <unruh@invalid.ca> - 2014-12-14 18:46 +0000
  Re: problem with simple string search Axel Vogt <&noreply@axelvogt.de> - 2014-12-14 21:45 +0100
    Re: problem with simple string search William Unruh <unruh@invalid.ca> - 2014-12-14 21:04 +0000
      Re: problem with simple string search Axel Vogt <&noreply@axelvogt.de> - 2014-12-14 22:15 +0100

csiph-web