Comment #8 on issue 2353 by
[hidden email]:
#findString:startingAt:caseSensitive: broken for WideStrings
http://code.google.com/p/pharo/issues/detail?id=2353The 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