CharacterEncoderImplementations__ISO10646_to_UTF8.st
changeset 9928 46cf4350beb2
parent 8773 267612096a52
child 10531 7a799d53e932
equal deleted inserted replaced
9927:a94746219baa 9928:46cf4350beb2
   267             ].
   267             ].
   268         ].
   268         ].
   269         newString at:idx put:(Character value:ascii).
   269         newString at:idx put:(Character value:ascii).
   270         idx := idx + 1.
   270         idx := idx + 1.
   271     ].
   271     ].
   272 self assert:newString isString.
       
   273     ^ newString
   272     ^ newString
   274 
   273 
   275     "
   274     "
   276      CharacterArray fromUTF8Bytes:#[ 16r41 16r42 ]
   275      CharacterArray fromUTF8Bytes:#[ 16r41 16r42 ]
   277      CharacterArray fromUTF8Bytes:#[ 16rC1 16r02 ]
   276      CharacterArray fromUTF8Bytes:#[ 16rC1 16r02 ]
   285 
   284 
   286    invalid:
   285    invalid:
   287      CharacterArray fromUTF8Bytes:#[ 16rC0 16r80 ]
   286      CharacterArray fromUTF8Bytes:#[ 16rC0 16r80 ]
   288      CharacterArray fromUTF8Bytes:#[ 16rE0 16r80 16r80 ]
   287      CharacterArray fromUTF8Bytes:#[ 16rE0 16r80 16r80 ]
   289     "
   288     "
       
   289 
       
   290     "Modified: / 18-09-2006 / 19:55:52 / cg"
   290 !
   291 !
   291 
   292 
   292 encode:aCode
   293 encode:aCode
   293     self shouldNotImplement "/ no single byte conversion possible
   294     self shouldNotImplement "/ no single byte conversion possible
   294 !
   295 !
   381 ! !
   382 ! !
   382 
   383 
   383 !ISO10646_to_UTF8 class methodsFor:'documentation'!
   384 !ISO10646_to_UTF8 class methodsFor:'documentation'!
   384 
   385 
   385 version
   386 version
   386     ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoderImplementations__ISO10646_to_UTF8.st,v 1.11 2005-03-08 10:58:56 cg Exp $'
   387     ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoderImplementations__ISO10646_to_UTF8.st,v 1.12 2006-09-18 18:35:00 cg Exp $'
   387 ! !
   388 ! !