--- a/String.st Mon May 30 16:31:34 2016 +0200
+++ b/String.st Mon May 30 17:40:31 2016 +0200
@@ -130,7 +130,7 @@
"
Strings are ByteArrays storing Characters.
- Strings are kind of kludgy: to allow for easy handling by c-functions,
+ Strings are kind of kludgy: to allow for easy handling by C functions,
there is always one 0-byte added at the end, which is not counted
in the strings size, and is not accessible from the smalltalk level.
This guarantees, that a smalltalk string can always be passed to a
@@ -148,12 +148,17 @@
For strings with other encodings, either keep the encoding separately,
or use instances of encodedString.
+ Be careful when using the 0-byte in a String. This is not prohibited, but
+ the implementations of some String methods use C functions and may
+ therefore yield unexpected results (e.g. compareWith:collating:) when
+ processing a String containing the 0-byte.
+
[author:]
- Claus Gittinger
+ Claus Gittinger
[see also:]
- Text StringCollection TwoByteString JISEncodedString
- Symbol
+ Text StringCollection TwoByteString JISEncodedString
+ Symbol
"
! !
@@ -560,7 +565,6 @@
"Modified: / 12-01-2011 / 12:33:58 / cg"
! !
-
!String methodsFor:'accessing'!
at:index
@@ -4848,3 +4852,4 @@
version_CVS
^ '$Header$'
! !
+