#match: and WideString

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

#match: and WideString

Philippe Marschall
Hi

Can it be that #match: works only with ByteStrings as argument?
try the following:
'#:\*' match: (String with: (Character value: 50976) with: (Character
value: 47532) with: (Character value: 47484))

Cheers
Philippe

Reply | Threaded
Open this post in threaded view
|

Re: #match: and WideString

Nicolas Cellier-3
Yes, you ran into very same problem as
http://bugs.squeak.org/view.php?id=6366

findString:startingAt: (caseSensitive:) will not work with WideString

Nicolas

Philippe Marschall a écrit :

> Hi
>
> Can it be that #match: works only with ByteStrings as argument?
> try the following:
> '#:\*' match: (String with: (Character value: 50976) with: (Character
> value: 47532) with: (Character value: 47484))
>
> Cheers
> Philippe
>
>


Reply | Threaded
Open this post in threaded view
|

RE: #match: and WideString

Boris Popov, DeepCove Labs (SNN)
In reply to this post by Philippe Marschall
Returns false on VisualWorks 7.5,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: [hidden email]
[mailto:squeak-dev-

> [hidden email]] On Behalf Of Philippe Marschall
> Sent: Tuesday, July 24, 2007 12:59 PM
> To: The general-purpose Squeak developers list
> Subject: #match: and WideString
>
> Hi
>
> Can it be that #match: works only with ByteStrings as argument?
> try the following:
> '#:\*' match: (String with: (Character value: 50976) with: (Character
> value: 47532) with: (Character value: 47484))
>
> Cheers
> Philippe


Reply | Threaded
Open this post in threaded view
|

Re: #match: and WideString

Philippe Marschall
In reply to this post by Nicolas Cellier-3
2007/7/24, nice <[hidden email]>:
> Yes, you ran into very same problem as
> http://bugs.squeak.org/view.php?id=6366
>
> findString:startingAt: (caseSensitive:) will not work with WideString

It's frightening how bugged WideStrings still are.

Philipe

> Nicolas
>
> Philippe Marschall a écrit :
> > Hi
> >
> > Can it be that #match: works only with ByteStrings as argument?
> > try the following:
> > '#:\*' match: (String with: (Character value: 50976) with: (Character
> > value: 47532) with: (Character value: 47484))
> >
> > Cheers
> > Philippe
> >
> >
>
>
>