Re: Issue 2353 in pharo: #findString:startingAt:caseSensitive: broken for WideStrings

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

Re: Issue 2353 in pharo: #findString:startingAt:caseSensitive: broken for WideStrings

pharo

Comment #8 on issue 2353 by [hidden email]:  
#findString:startingAt:caseSensitive: broken for WideStrings
http://code.google.com/p/pharo/issues/detail?id=2353

The example given in comment #7 seems to work now (Pharo 1.2.2).

I tried the following, the all seem to work as expected:

| str |
str := WideString from: 'élève en Français'.
str findString: 'en' startingAt: 1 caseSensitive: true.

| str |
str := (String with: $$ with: (16r00A2 asCharacter) with: (16r20AC  
asCharacter) with: (16r024B62 asCharacter)), 'élève en Français'.
str findString: 'en' startingAt: 1 caseSensitive: true.

| str |
str := (String with: $$ with: (16r00A2 asCharacter) with: (16r20AC  
asCharacter) with: (16r024B62 asCharacter)), 'élève en Français'.
str findString: (WideString from: 'en') startingAt: 1 caseSensitive: true.

| str |
str := (String with: $$ with: (16r00A2 asCharacter) with: (16r20AC  
asCharacter) with: (16r024B62 asCharacter)), 'élève en Français'.
str findString: (String with: (16r20AC asCharacter) with: (16r024B62  
asCharacter)) startingAt: 1 caseSensitive: true.

So, is this still a problem ?

Sven


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 2353 in pharo: #findString:startingAt:caseSensitive: broken for WideStrings

pharo
Updates:
        Status: Closed

Comment #9 on issue 2353 by [hidden email]:  
#findString:startingAt:caseSensitive: broken for WideStrings
http://code.google.com/p/pharo/issues/detail?id=2353

I tested this again with 1.4 and the examples given here all seem to work.

Furthermore, this seems to be covered in WideStringTest>>#testFindSubstring

For me, this can be closed.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker