Groovy 1.7.0

org.codehaus.groovy.tools
Class StringHelper

java.lang.Object
  org.codehaus.groovy.tools.StringHelper

class StringHelper
extends Object

Constructor Summary
StringHelper()

 
Method Summary
static String[] tokenizeUnquoted(String s)

This method tokenizes a string by space characters, but ignores spaces in quoted parts,that are parts in '' or "".

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Constructor Detail

StringHelper

StringHelper()


 
Method Detail

tokenizeUnquoted

public static String[] tokenizeUnquoted(String s)
This method tokenizes a string by space characters, but ignores spaces in quoted parts,that are parts in '' or "". The method does allows the usage of "" in '' and '' in "". The space character between tokens is not returned.
param:
s the string to tokenize
return:
the tokens


 

Copyright © 2003-2009 The Codehaus. All rights reserved.