CharArray.st
changeset 4429 564b0fd9168e
parent 4410 2bdc0c89a42e
child 4662 bbddd04872e1
equal deleted inserted replaced
4428:d612ee1f2b32 4429:564b0fd9168e
  4184     "Created: / 15.6.1998 / 17:22:13 / cg"
  4184     "Created: / 15.6.1998 / 17:22:13 / cg"
  4185 ! !
  4185 ! !
  4186 
  4186 
  4187 !CharacterArray methodsFor:'queries'!
  4187 !CharacterArray methodsFor:'queries'!
  4188 
  4188 
       
  4189 bitsPerCharacter
       
  4190     "return the underlying strings bitsPerCharacter 
       
  4191      (i.e. is it a regular String or a TwoByteString)"
       
  4192 
       
  4193     ^ self string bitsPerCharacter
       
  4194 
       
  4195     "
       
  4196      'hello' bitsPerCharacter        
       
  4197      'hello' asText allBold bitsPerCharacter 
       
  4198     "
       
  4199 !
       
  4200 
  4189 encoding
  4201 encoding
  4190     "return the strings encoding, as a symbol.
  4202     "return the strings encoding, as a symbol.
  4191      Here, by default, we assume #iso8859 encoding.
  4203      Here, by default, we assume #iso8859 encoding.
  4192      This has to be redefined in XXXEncodedString subclasses."
  4204      This has to be redefined in XXXEncodedString subclasses."
  4193 
  4205 
  5367 ! !
  5379 ! !
  5368 
  5380 
  5369 !CharacterArray class methodsFor:'documentation'!
  5381 !CharacterArray class methodsFor:'documentation'!
  5370 
  5382 
  5371 version
  5383 version
  5372     ^ '$Header: /cvs/stx/stx/libbasic/Attic/CharArray.st,v 1.164 1999-07-19 18:25:50 cg Exp $'
  5384     ^ '$Header: /cvs/stx/stx/libbasic/Attic/CharArray.st,v 1.165 1999-07-22 15:53:29 cg Exp $'
  5373 ! !
  5385 ! !
  5374 CharacterArray initialize!
  5386 CharacterArray initialize!