Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Unicode e acute example - testing for equality (Smalltalk)
Last updated at 8:27 am UTC on 11 December 2015

Comparison without NFD

"Voulez-vous un café?"
eAcuteQuestion  := 'Voulez-vous un caf', 16rE9 asCharacter asString, '?'.
combinedEAcuteQuestion := 'Voulez-vous un cafe', 16r301 asCharacter asString, '?'.


eAcuteQuestion = combinedEAcuteQuestion 
 false


Comparsion with NFD

"Voulez-vous un café?"
eAcuteQuestion  := 'Voulez-vous un caf', 16rE9 asCharacter asString, '?'.
combinedEAcuteQuestion := 'Voulez-vous un cafe', 16r301 asCharacter asString, '?'.


eAcuteQuestion asDecomposedUnicode =
    combinedEAcuteQuestion  asDecomposedUnicode

 true

String_asDecomposedUnicode_e_acute_example_2015-12-11.png


Go to Unicode e acute example (Swift)