org.jmol.jcamp.utils

Class StringDataUtils

public class StringDataUtils extends Object

Copyright (c) 2005, Shravan Sadasivan & Richard Spinney Department of Chemisty - The Ohio State University
Method Summary
static intcompareStrings(String str1, String str2)
Compares two strings provided and returns an expected integer value based on the comparison
static StringjcampSubString(String str, int i, int j)
Returns the sub-string of the string provided
static StringreduceDataPrecision(String data)
Reduces the precision of numerical data strings provided
static StringtruncateEndBlanks(String str)
Truncates blank spaces at the end of the string provided

Method Detail

compareStrings

public static int compareStrings(String str1, String str2)
Compares two strings provided and returns an expected integer value based on the comparison

Parameters: str1 str2

Returns: int

jcampSubString

public static String jcampSubString(String str, int i, int j)
Returns the sub-string of the string provided

Parameters: str i j

Returns: String

reduceDataPrecision

public static String reduceDataPrecision(String data)
Reduces the precision of numerical data strings provided

Parameters: data

Returns: String

truncateEndBlanks

public static String truncateEndBlanks(String str)
Truncates blank spaces at the end of the string provided

Parameters: str

Returns: String