CharacterArray.st
changeset 15656 82aca5063e96
parent 15628 4fe28df5850d
child 15712 8aa66f2ff56c
child 18086 33a050555eb1
equal deleted inserted replaced
15655:a044910b6f38 15656:82aca5063e96
  3854 
  3854 
  3855     "
  3855     "
  3856      'hello world' rot:13
  3856      'hello world' rot:13
  3857      ('hello world' rot:13) rot:13
  3857      ('hello world' rot:13) rot:13
  3858     "
  3858     "
       
  3859 !
       
  3860 
       
  3861 utf16Encoded
       
  3862     "Return my UTF-16 representation as a new TwoByteString"
       
  3863 
       
  3864     |s|
       
  3865 
       
  3866     s := WriteStream on:(TwoByteString uninitializedNew:self size).
       
  3867     s nextPutAllUtf16:self.
       
  3868     ^ s contents
       
  3869 
       
  3870     "
       
  3871      'abcde1234' utf16Encoded
       
  3872      'abcdeäöüß' utf16Encoded
       
  3873     "
       
  3874 
       
  3875     "Modified: / 11-05-2010 / 19:12:37 / cg"
  3859 !
  3876 !
  3860 
  3877 
  3861 utf8Decoded
  3878 utf8Decoded
  3862     "Interpreting myself as an UTF-8 representation, decode and return the decoded string."
  3879     "Interpreting myself as an UTF-8 representation, decode and return the decoded string."
  3863 
  3880 
  6414 ! !
  6431 ! !
  6415 
  6432 
  6416 !CharacterArray class methodsFor:'documentation'!
  6433 !CharacterArray class methodsFor:'documentation'!
  6417 
  6434 
  6418 version
  6435 version
  6419     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.510 2013-08-13 17:31:00 cg Exp $'
  6436     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.511 2013-08-20 13:46:36 stefan Exp $'
  6420 !
  6437 !
  6421 
  6438 
  6422 version_CVS
  6439 version_CVS
  6423     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.510 2013-08-13 17:31:00 cg Exp $'
  6440     ^ '$Header: /cvs/stx/stx/libbasic/CharacterArray.st,v 1.511 2013-08-20 13:46:36 stefan Exp $'
  6424 ! !
  6441 ! !
  6425 
  6442 
  6426 
  6443 
  6427 CharacterArray initialize!
  6444 CharacterArray initialize!