[Java] Class StringHelper

  • org.codehaus.groovy.tools.StringHelper
public class StringHelper
extends Object

Methods Summary

Methods
Type Params Return Type Name and description
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 "".

Inherited Methods Summary

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

Method Detail

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.

Parameters:
s - the string to tokenize
Returns:
the tokens

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/tools/StringHelper.html