String.st
changeset 9182 bb8b1eeb08b6
parent 8932 76089ecc282d
child 9233 d6ecec348ca9
equal deleted inserted replaced
9181:90f5b5e63cb5 9182:bb8b1eeb08b6
   524     ^ self == String
   524     ^ self == String
   525 
   525 
   526     "Modified: 23.4.1996 / 16:00:38 / cg"
   526     "Modified: 23.4.1996 / 16:00:38 / cg"
   527 ! !
   527 ! !
   528 
   528 
       
   529 !String methodsFor:'Compatibility-VW5.4'!
       
   530 
       
   531 asGUID
       
   532     "return self as a UUID"
       
   533 
       
   534     ^ self asUUID
       
   535 
       
   536     "
       
   537      '{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}' asGUID
       
   538     "
       
   539 ! !
       
   540 
   529 !String methodsFor:'accessing'!
   541 !String methodsFor:'accessing'!
   530 
   542 
   531 at:index
   543 at:index
   532     "return the character at position index, an Integer.
   544     "return the character at position index, an Integer.
   533      Reimplemented here to avoid the additional at:->basicAt: send
   545      Reimplemented here to avoid the additional at:->basicAt: send
  1792 %}.
  1804 %}.
  1793     self primitiveFailed
  1805     self primitiveFailed
  1794     "
  1806     "
  1795      'hello' asSymbolIfInterned
  1807      'hello' asSymbolIfInterned
  1796      'fooBarBaz' asSymbolIfInterned
  1808      'fooBarBaz' asSymbolIfInterned
       
  1809     "
       
  1810 !
       
  1811 
       
  1812 asUUID
       
  1813     "return self as a UUID"
       
  1814 
       
  1815     ^ UUID fromString:self
       
  1816 
       
  1817     "
       
  1818      '{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}' asUUID
  1797     "
  1819     "
  1798 !
  1820 !
  1799 
  1821 
  1800 literalArrayEncoding
  1822 literalArrayEncoding
  1801     "encode myself as an array literal, from which a copy of the receiver
  1823     "encode myself as an array literal, from which a copy of the receiver
  3430 ! !
  3452 ! !
  3431 
  3453 
  3432 !String class methodsFor:'documentation'!
  3454 !String class methodsFor:'documentation'!
  3433 
  3455 
  3434 version
  3456 version
  3435     ^ '$Header: /cvs/stx/stx/libbasic/String.st,v 1.229 2005-07-13 08:42:50 mb Exp $'
  3457     ^ '$Header: /cvs/stx/stx/libbasic/String.st,v 1.230 2006-02-21 19:07:46 cg Exp $'
  3436 ! !
  3458 ! !