diff dwtx/core/runtime/Path.d @ 70:46a6e0e6ccd4

Merge with d-fied sources of 3.4M7
author Frank Benoit <benoit@tionex.de>
date Thu, 22 May 2008 01:36:46 +0200
parents ea8ff534f622
children 5df4896124c7
line wrap: on
line diff
--- a/dwtx/core/runtime/Path.d	Mon May 19 13:41:06 2008 +0200
+++ b/dwtx/core/runtime/Path.d	Thu May 22 01:36:46 2008 +0200
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -38,6 +38,7 @@
  * may be instantiated.
  * </p>
  * @see IPath
+ * @noextend This class is not intended to be subclassed by clients.
  */
 public class Path : IPath, Cloneable {
     /** masks for separator values */
@@ -59,7 +60,6 @@
     /** Mask for all bits that are involved in the hash code */
     private static const int HASH_MASK = ~HAS_TRAILING;
 
-
     /** Constant root path string (<code>"/"</code>). */
     private static const String ROOT_STRING = "/"; //$NON-NLS-1$
 
@@ -120,7 +120,7 @@
      * @since 3.1
      */
     public static IPath fromPortableString(String pathString) {
-        int firstMatch = pathString.indexOf(DEVICE_SEPARATOR) +1;
+        int firstMatch = pathString.indexOf(DEVICE_SEPARATOR) + 1;
         //no extra work required if no device characters
         if (firstMatch <= 0)
             return (new Path()).initialize(null, pathString);
@@ -507,6 +507,7 @@
         }
         return newSegments;
     }
+
     /**
      * Returns the platform-neutral encoding of the given segment onto
      * the given string buffer. This escapes literal colon characters with double colons.
@@ -947,7 +948,7 @@
                 encodeSegment(segments_[i], result);
             else
                 result.append(segments_[i]);
-            if (i < len-1 || (separators & HAS_TRAILING) !is 0)
+            if (i < len - 1 || (separators & HAS_TRAILING) !is 0)
                 result.append(SEPARATOR);
         }
         return result.toString();