#DOCUMENTATION
authorClaus Gittinger <cg@exept.de>
Sun, 20 Mar 2016 11:07:13 +0100
changeset 19383 4ef397143f9d
parent 19382 a471e303346c
child 19384 97dff1ec3a70
#DOCUMENTATION class: String changed: #print
String.st
--- a/String.st	Sun Mar 20 11:06:49 2016 +0100
+++ b/String.st	Sun Mar 20 11:07:13 2016 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1988 by Claus Gittinger
 	      All Rights Reserved
@@ -531,6 +529,7 @@
 ! !
 
 
+
 !String methodsFor:'Compatibility-VW5.4'!
 
 asByteString
@@ -1247,7 +1246,7 @@
      'hello world' indexOfAny:'AOE' startingAt:1
      'hello world' indexOfAny:'o' startingAt:6
      'hello world' indexOfAny:'o' startingAt:6
-     'hello world§' indexOfAny:'#§$' startingAt:6
+     'hello world§' indexOfAny:'#§$' startingAt:6
     "
 !
 
@@ -3074,10 +3073,10 @@
 	'abcde1234' utf8EncodedOn:w
      ].
      String streamContents:[:w|
-	 'abcdeäöüß' utf8EncodedOn:w
+	 'abcdeäöüß' utf8EncodedOn:w
      ].
      String streamContents:[:w|
-	 'abcdeäöüß' asUnicode16String utf8EncodedOn:w
+	 'abcdeäöüß' asUnicode16String utf8EncodedOn:w
      ].
     "
 ! !
@@ -3540,8 +3539,8 @@
     "
       'hello world' asUnicode16String errorPrint
       (Character value:356) asString errorPrint
-      'Bönnigheim' errorPrint
-      'Bönnigheim' asUnicodeString errorPrint
+      'Bönnigheim' errorPrint
+      'Bönnigheim' asUnicodeString errorPrint
     "
 !
 
@@ -3576,8 +3575,8 @@
 
 print
     "print the receiver on standard output, if the global Stdout is nil;
-     otherwise, fall back to the inherited errorPrint, which sends the string to
-     the Stdout stream.
+     otherwise, fall back to the inherited print, 
+     which sends the string to the Stdout stream.
      This method does NOT (by purpose) use the stream classes and
      will therefore work even in case of emergency during early startup
      (but only, as long as Stdout is nil, which is set later after startup)."
@@ -3585,16 +3584,16 @@
 %{  /* NOCONTEXT */
 #ifdef __SCHTEAM__
     if (STSmalltalkEnvironment.GetBindingOrNull(STSymbol._new("Stdout")) == null) {
-	org.exept.stj.STSystem.out.print(self.toString());
-	return context._RETURN(self);
+        org.exept.stj.STSystem.out.print(self.toString());
+        return context._RETURN(self);
     }
 #else
     if (@global(Stdout) == nil) {
-	if (__qIsStringLike(self)) {
-	    console_fprintf(stdout, "%s" , __stringVal(self));
-	    console_fflush(stdout);
-	    RETURN (self);
-	}
+        if (__qIsStringLike(self)) {
+            console_fprintf(stdout, "%s" , __stringVal(self));
+            console_fflush(stdout);
+            RETURN (self);
+        }
     }
 #endif
 %}.