[Swift-commit] r2936 - trunk/src/org/griphyn/vdl/karajan/lib/swiftscript

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri May 15 06:26:34 CDT 2009


Author: benc
Date: 2009-05-15 06:26:33 -0500 (Fri, 15 May 2009)
New Revision: 2936

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
Log:
make strsplit whitespace consistent with rest of file

Modified: trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2009-05-15 11:24:49 UTC (rev 2935)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2009-05-15 11:26:33 UTC (rev 2936)
@@ -99,21 +99,21 @@
 	}
 	
 	public DSHandle swiftscript_strsplit(VariableStack stack) throws ExecutionException, NoSuchTypeException,
-            InvalidPathException {
-        String str = TypeUtil.toString(PA_INPUT.getValue(stack));
-        String pattern = TypeUtil.toString(PA_PATTERN.getValue(stack));
-        
-        String[] split = str.split(pattern);
-        
-        DSHandle handle = new RootArrayDataNode(Types.STRING.arrayType());
-        for (int i = 0; i < split.length; i++) {
-            DSHandle el = handle.getField(Path.EMPTY_PATH.addFirst(String.valueOf(i), true));
-            el.setValue(split[i]);
-        }
-        handle.closeDeep();
-        return handle;
-    }
+		InvalidPathException {
+		String str = TypeUtil.toString(PA_INPUT.getValue(stack));
+		String pattern = TypeUtil.toString(PA_PATTERN.getValue(stack));
 
+		String[] split = str.split(pattern);
+
+		DSHandle handle = new RootArrayDataNode(Types.STRING.arrayType());
+		for (int i = 0; i < split.length; i++) {
+			DSHandle el = handle.getField(Path.EMPTY_PATH.addFirst(String.valueOf(i), true));
+			el.setValue(split[i]);
+		}
+		handle.closeDeep();
+		return handle;
+	}
+
 	public DSHandle swiftscript_regexp(VariableStack stack) throws ExecutionException, NoSuchTypeException,
 			InvalidPathException {
 		String inputString = TypeUtil.toString(PA_INPUT.getValue(stack));




More information about the Swift-commit mailing list